Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.How fast is fast?
Suppose an algorithm halves its error every step. After 10 steps the error is 1000× smaller, and after 20 a million times smaller. That’s linear (geometric) convergence: each step buys a fixed number of new digits.
A slower algorithm might only make the error shrink like 1/k: twice the steps, half the error. Going from 1% to 0.1% then takes ten times as many steps. That’s sublinear convergence.
Which one you get depends on the shape of the problem (how curved it is) and on whether your gradients are exact or noisy.
Rates turn into budgets. An MPC solver must finish in 5 ms, a training run must fit in a week of GPU time. Knowing whether you’re in a linear or a sublinear regime tells you whether more iterations will help, whether to improve conditioning, or whether to reduce gradient noise.
- 1. Halving the error every step is…
- 2. With a 1/k rate, doubling the steps…
- 3. Noisy gradients usually make convergence…
Level 1: Beginner
★★☆☆☆ Basic⏱ 25 minSecondary-school mathematics: arithmetic and elementary algebra.The headline rates (η = 1/L unless noted)
| Setting | Method | Rate | Iterations to ε |
|---|---|---|---|
| L-smooth, convex | GD | L R²/(2k) | O(1/ε) |
| L-smooth, μ-strongly convex (or PL) | GD | (1 − μ/L)ᵏ | O(κ log 1/ε) |
| convex, G-Lipschitz, noisy | SGD / subgradient, η ∝ 1/√k | RG/√k | O(1/ε²) |
| μ-strongly convex, noisy | SGD, η = 1/(μk) | O(σ²/(μk)) | O(1/ε) |
| L-smooth, convex | Nesterov (A6.3-3) | O(L R²/k²) | O(1/√ε) |
Here , , and is the gradient-noise variance.
Reading a rate
- Convex GD: , : . Each additional digit costs 10× more.
- Strongly convex: : 132 steps per factor of . Each digit costs about more steps.
- Noisy convex: each digit costs 100× more.
- 1. GD on convex L-smooth f has gap ≤
- 2. Iterations for ε accuracy under strong convexity scale as…
- 3. Noisy convex optimization needs…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.Three tools behind every proof
- Descent lemma (smoothness): .
- Convexity: .
- Expanding a square: .
Combine them and telescope.
Variants of the setting
- PL instead of strong convexity: still gives the linear rate (A6.2-2). This covers some non-convex problems.
- Non-convex smooth: GD finds an ε-stationary point () in iterations; SGD needs (Ghadimi and Lan, 2013).
- SGD with a constant step: linear convergence to a neighbourhood of radius , the noise ball (A6.3-1).
- Polyak–Ruppert averaging: averaging the iterates of a slowly decaying schedule achieves the optimal robustly, without knowing .
Lower bounds
For any first-order method whose iterates lie in the span of past gradients, there are smooth convex functions where (Nesterov, 2004). GD’s is therefore not optimal, while Nesterov’s accelerated is. For strongly convex functions the optimal rate is .
- 1. The optimal first-order rate on smooth convex functions is…
- 2. The PL inequality gives GD…
- 3. Polyak–Ruppert averaging means…
Level 3: Advanced
★★★★☆ Advanced⏱ 50 minGraduate level, with full derivations and proofs.Proof: GD on convex L-smooth f (η = 1/L)
Using the descent lemma and convexity, with :
The last step expands . Sum over ; the right side telescopes. Since is non-increasing, . ∎
Proof: linear rate under strong convexity
The descent lemma gives . Strong convexity implies PL: . Hence . ∎
Proof: SGD on convex, G-Lipschitz f
Let with and a constant step . Expanding the square and taking expectations:
Sum and divide by , then use Jensen for the average iterate: . With this is . ∎
SGD O(1/k) on strongly convex quadratics
For with : . Induction gives , so .
Exercise 3.1: Why can’t SGD with any schedule beat O(1/k) on strongly convex problems?
Even knowing the exact problem structure, estimating a mean from noisy samples has variance (the Cramér–Rao bound, A5.1-4). The optimizer is at least estimating the minimizer from noisy data, so is information-theoretically unavoidable (Nemirovski and Yudin, 1983).
- 1. The convex GD proof telescopes…
- 2. The SGD convex bound balances…
- 3. SGD can't beat O(1/k) on strongly convex problems because…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.SGD schedules, measured
On with gradient noise σ = 1, averaging 2000 runs:
- A constant step 0.1 stalls at exactly the predicted floor .
- tracks to within a few percent.
- Polyak–Ruppert averaging of the more forgiving schedule matches the optimal rate without needing .
This is why practitioners use decaying or averaged schedules (and SWA, stochastic weight averaging, in deep learning).
Rates in AI, robotics and aerospace
- Real-time MPC certification: iteration bounds from linear rates guarantee a solver meets its deadline (Richter, Jones and Morari, 2012).
- Training budgets: scaling laws and learning-rate schedules are designed around the noise-floor and averaging behaviour (Izmailov et al., 2018, SWA).
- Non-convex guarantees: O(1/ε²) and O(1/ε⁴) stationarity rates underpin analyses of GD and SGD on neural networks (Ghadimi and Lan, 2013).
- Distributed/federated training analyses extend these proofs with communication and heterogeneity terms (Stich, 2019).
References
- Y. Nesterov (2004). Introductory Lectures on Convex Optimization: A Basic Course. Kluwer.
- S. Bubeck (2015). “Convex optimization: algorithms and complexity.” Foundations and Trends in Machine Learning, 8(3–4).
- A. Nemirovski, D. Yudin (1983). Problem Complexity and Method Efficiency in Optimization. Wiley.
- B. Polyak, A. Juditsky (1992). “Acceleration of stochastic approximation by averaging.” SIAM Journal on Control and Optimization, 30(4).
- S. Ghadimi, G. Lan (2013). “Stochastic first- and zeroth-order methods for nonconvex stochastic programming.” SIAM Journal on Optimization, 23(4).
- H. Karimi, J. Nutini, M. Schmidt (2016). “Linear convergence of gradient and proximal-gradient methods under the Polyak–Łojasiewicz condition.” ECML-PKDD.
- F. Bach, E. Moulines (2011). “Non-asymptotic analysis of stochastic approximation algorithms for machine learning.” NeurIPS.
- P. Izmailov et al. (2018). “Averaging weights leads to wider optima and better generalization.” UAI.
- S. Stich (2019). “Local SGD converges fast and communicates little.” ICLR.
- 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).