Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.A heavy ball, not a careful hiker
A careful hiker in a narrow valley steps straight downhill each time, which mostly means bouncing from wall to wall. A heavy ball rolling down the same valley keeps its speed. Its side-to-side wobbles cancel out, while its motion along the valley floor keeps building. It reaches the bottom much sooner.
That memory of past motion is momentum. A clever version, Nesterov’s method, looks a little ahead before deciding which way is downhill.
Almost every neural network is trained with momentum (SGD + momentum, or Adam’s first moment). Accelerated gradient methods are used in fast MPC solvers, image reconstruction and large-scale estimation. For badly conditioned problems they can be 10–100× faster than plain gradient descent.
- 1. Momentum adds to each step a fraction of…
- 2. In a narrow valley, momentum makes side-to-side wobbles…
- 3. Too much momentum can cause…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.Heavy ball (Polyak, 1964)
The term is the velocity, and is the momentum coefficient (typically 0.9).
Nesterov’s accelerated gradient (1983)
The gradient is evaluated at the extrapolated point , which is the look-ahead.
- Strongly convex: .
- Convex: with , which is about .
Speed-up
Per-step contraction: GD gives , accelerated methods give . At that’s 0.99 vs 0.9: about 10× fewer iterations.
- 1. Nesterov evaluates the gradient at…
- 2. Accelerated per-step contraction at κ = 100 is about…
- 3. Iterations needed scale like … for accelerated methods
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.Guarantees
- Heavy ball with , converges like on quadratics. On general strongly convex functions it can fail to converge (Lessard, Recht and Packard, 2016).
- Nesterov: on all L-smooth convex functions, , which matches the lower bound up to constants. On strongly convex functions the rate is .
Momentum as physics
Heavy ball discretizes , a mass on a potential with friction. Nesterov’s method corresponds to , whose vanishing friction gives (Su, Boyd and Candès, 2016).
Practice
- Deep learning: SGD + momentum with . With stochastic gradients, acceleration’s gains shrink, but momentum still damps oscillations.
- Non-monotone: accelerated methods overshoot. Without knowing , adaptive restart (reset momentum when increases or ) recovers linear convergence (O’Donoghue and Candès, 2015).
- Robustness: with inexact gradients, accelerated methods accumulate errors faster than GD (Devolder, Glineur and Nesterov, 2014).
- 1. Nesterov's rate on smooth convex f is…
- 2. The heavy ball's optimal-parameter guarantee holds for…
- 3. Adaptive restart resets momentum when…
Level 3: Advanced
★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.Heavy-ball analysis on a quadratic
In each eigen-direction with curvature , the error obeys . The characteristic roots satisfy . When the roots are complex, . Choosing so that the extreme eigenvalues sit exactly on the boundary between real and complex roots gives the optimal parameters and contraction . ∎
Why is GD not optimal?
Nesterov’s worst-case function is a quadratic with a tridiagonal Hessian. After steps, any gradient-span method has touched only coordinates, so the error is at least of order . GD’s is a factor away. Momentum methods reach the bound by combining past gradients cleverly (a Chebyshev-polynomial view).
Estimate sequences (sketch)
Nesterov’s proof builds lower models of with , , and maintains . Then .
Exercise 3.1: Heavy-ball root modulus with β = 0.81
For complex roots, per step. That corresponds to optimal tuning for , so , where GD would contract only by .
- 1. For complex characteristic roots, the heavy-ball contraction is…
- 2. Nesterov's lower-bound function has a Hessian that is…
- 3. Nesterov's ODE has friction coefficient…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Acceleration without knowing μ: restart
For a least-squares calibration problem with κ ≈ 1500, the convex momentum schedule (which needs no μ) overshoots: the objective oscillates, and it reaches a 10⁻⁸ gap only after about 2300 iterations. Restarting the momentum whenever the objective rises cuts that to under 500, nearly the strongly-convex optimal rate, without ever estimating μ. GD doesn’t finish in 3000. Restart schemes are standard in first-order solvers (O’Donoghue and Candès, 2015).
Momentum in AI, robotics and aerospace
- Neural network training: SGD + momentum (Sutskever et al., 2013) and Adam’s first moment (A6.3-4).
- Fast MPC: the fast gradient method (Nesterov) gives certified iteration bounds for embedded QPs on drones and spacecraft (Richter, Jones and Morari, 2012).
- Imaging and reconstruction: FISTA (A6.2-7) is accelerated proximal gradient.
- Control-theoretic analysis: integral quadratic constraints analyse and design optimizers as feedback systems (Lessard, Recht and Packard, 2016).
References
- B. Polyak (1964). “Some methods of speeding up the convergence of iteration methods.” USSR Computational Mathematics and Mathematical Physics, 4(5).
- Y. Nesterov (1983). “A method of solving a convex programming problem with convergence rate O(1/k²).” Soviet Mathematics Doklady, 27.
- Y. Nesterov (2004). Introductory Lectures on Convex Optimization. Kluwer.
- I. Sutskever, J. Martens, G. Dahl, G. Hinton (2013). “On the importance of initialization and momentum in deep learning.” ICML.
- W. Su, S. Boyd, E. Candès (2016). “A differential equation for modeling Nesterov’s accelerated gradient method.” JMLR, 17.
- L. Lessard, B. Recht, A. Packard (2016). “Analysis and design of optimization algorithms via integral quadratic constraints.” SIAM Journal on Optimization, 26(1).
- B. O’Donoghue, E. Candès (2015). “Adaptive restart for accelerated gradient schemes.” Foundations of Computational Mathematics, 15.
- O. Devolder, F. Glineur, Y. Nesterov (2014). “First-order methods of smooth convex optimization with inexact oracle.” Mathematical Programming, 146.
- G. Goh (2017). “Why momentum really works.” Distill.
- S. Richter, C. Jones, M. Morari (2012). “Computational complexity certification for real-time MPC with input constraints based on the fast gradient method.” IEEE Transactions on Automatic Control, 57(6).