Gradient Descent versus Heavy-Ball Momentum in an Ill-Conditioned Valley: Convergence Rate and Step Size
Two balls roll down the same elongated quadratic valley: one takes plain gradient-descent steps, the other adds heavy-ball momentum. Change the valley condition number, the step size and the momentum and watch zig-zagging, convergence, overshoot and divergence. Spectral-radius rates, the optimal step and the square-root speed-up of momentum are checked numerically.
Two balls roll down the same elongated quadratic valley: one takes plain gradient-descent steps, the other adds heavy-ball momentum. Change the valley condition number, the step size and the momentum and watch zig-zagging, convergence, overshoot and divergence. Spectral-radius rates, the optimal step and the square-root speed-up of momentum are checked numerically.
Two balls roll down the same elongated quadratic valley: one takes plain gradient-descent steps, the other adds heavy-ball momentum. Change the valley condition number, the step size and the momentum and watch zig-zagging, convergence, overshoot and divergence. Spectral-radius rates, the optimal step and the square-root speed-up of momentum are checked numerically.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install