Home▸Physics & Mechanics▸Gradient Descent versus Heavy-Ball Momentum in an Ill-Conditioned Valley: Convergence Rate and Step Size

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.

Physics & Mechanics3DAdvanced60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
Gradient Descent versus Heavy-Ball Momentum in an Ill-Conditioned Valley: Convergence Rate and Step Size ↗ Open standalone

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.

⚙ Under the hood

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.

симуляціяфізиканавчанняінтерактивні ігринаукові експериментиматематичні моделіThree.jsGradient DescentMomentumCondition NumberOptimizationConvergence Rate

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)