Gradient Descent and Its Convergence Rates
Four complete convergence proofs — convex, strongly convex, non-smooth and non-convex — with the exact assumptions each one needs.
The algorithm is
and the question is how fast goes to zero. The answer depends entirely on which assumptions hold, and the four theorems below give four qualitatively different answers. The table is the summary.
| Assumptions | Quantity bounded | Rate | Steps for |
|---|---|---|---|
| convex, -smooth | |||
| -strongly convex, -smooth | |||
| convex, -Lipschitz (non-smooth) | |||
| -smooth only |
The descent lemma applied
Let be -smooth and let with . Then
Assumptions
-smoothness only. No convexity is used, which is why this lemma is the starting point of the non-convex analysis as well. The step-size restriction is essential and is not a technical convenience — see the divergence proposition at the end of the page.
Convex and smooth: the rate
Let be convex, -smooth, with a minimiser . Run gradient descent with . Then for all ,
Key idea
Step 1 is the move to internalise: the squared distance to the optimum acts as a potential function (a Lyapunov function), and each step decreases it by an amount proportional to the suboptimality. Telescoping then converts a per-step decrease into a rate. Every convergence proof in this section — including the momentum and stochastic ones — is an instance of the same template with a cleverer potential.
What this does not say
The rate is sublinear: reaching takes steps, so three more digits of accuracy costs a thousand times more work. There is no contradiction with the linear rate below; the difference is entirely the presence of strong convexity. Also note that the bound depends on , so it is not scale-free, and it says nothing about — a convex smooth function can have a flat valley of near-minimisers far apart from each other.
Strongly convex and smooth: the linear rate
Let be -strongly convex and -smooth, , and run gradient descent with . Then
and consequently, by quadratic growth, .
Non-convex and smooth: stationarity only
Let be -smooth and bounded below by , and run gradient descent with . Then
What this does not say
Read the conclusion very carefully. It says: some iterate among the first has small gradient. It does not say
- that the last iterate has small gradient (though the monotonicity of makes it plausible),
- that any iterate is near a local minimum — a saddle point also has zero gradient,
- that is close to — the iterates may converge to a strictly suboptimal stationary point,
- that anything converges at all, in the sense of the iterates having a limit.
This is the strongest general statement available for smooth non-convex optimisation with a first-order method, and the gap between it and what practitioners want is the subject of the deep learning theory page. A concrete example of the gap: on has a local minimum at and a local maximum at ; started at , gradient descent stays there forever, satisfying the theorem exactly and finding nothing.
Non-smooth convex: the subgradient method
is a subgradient of a convex at if for all . The set of subgradients is the subdifferential , which is non-empty for convex on the interior of its domain and equals where is differentiable.
Let be convex and -Lipschitz (equivalently, for all and all ), with minimiser and . Run with and fixed for a horizon . Then the average iterate satisfies
Step size and lower bounds
Let on , so is -smooth and -strongly convex. Gradient descent with step satisfies , hence converges if and only if , is stationary if , and diverges if .
Key idea
The threshold is exact, not an artefact. It is also the reason "learning rate too high" produces divergence rather than slow progress: past the threshold the dynamics are unstable, and the failure is qualitative. In deep learning the empirical counterpart is the "edge of stability" phenomenon, where training settles at a sharpness — the largest value compatible with stability. That is an empirical observation, discussed as such on the deep learning theory page.
Consider any method that, at step , outputs a point in the affine span of .
- For convex -smooth in dimension , there is an instance with .
- For -strongly convex -smooth , there is an instance with .
Quoted from Nesterov's lectures; the instances are quadratics built from a tridiagonal matrix that "reveals" only one new coordinate per gradient query. The consequences are important:
- Plain gradient descent's is not optimal; is achievable and is attained by Nesterov acceleration.
- The in the strongly convex lower bound is also achieved by acceleration, so the gap between and closes exactly.
- No first-order method can do better. Beating these rates requires a stronger oracle — second-order information, as in Newton's method, or structure beyond smoothness and convexity.
Problems
Prove the O(1/t) rate for gradient descentProof · Advanced · 1 hour Linear convergence under strong convexityProof · Intermediate · 30 min Non-convex gradient descent reaches an approximate stationary pointProof · Intermediate · 30 min The exact step-size threshold on a quadraticProof · Beginner · 15 min Why the subgradient method needs averagingProof · Advanced · 30 min Implement gradient descent and verify all four ratesCoding · Advanced · 3 hours Gradient descent with exact line search on a quadraticProof · Advanced · 1 hourReferences
- BookYurii Nesterov (2018). Lectures on Convex OptimizationThe source of the complexity framework and of the lower bounds quoted here.
- SurveySébastien Bubeck (2015). Convex Optimization: Algorithms and Complexity
- BookStephen Boyd and Lieven Vandenberghe (2004). Convex Optimization
These works are cited as sources to read, not reproduced. All exposition, examples and problems on this site are written independently; where an argument is standard, the citation points to a canonical treatment.
Results stated on this page
- LemmaOne step of gradient descent decreases the objectiveproof includedWith step size at most 1/L each gradient step reduces f by at least half the step times the squared gradient norm.
- TheoremGradient descent on convex smooth functionsproof includedWith step 1/L the suboptimality after t steps is at most L times the initial squared distance over 2t.
- TheoremGradient descent on smooth strongly convex functionsproof includedWith step 1/L the iterates converge geometrically at rate (1 - 1/kappa).
- TheoremGradient descent on smooth non-convex functionsproof includedThe smallest gradient norm among the first t iterates is O(1/sqrt t); no statement about minima is possible.
- TheoremSubgradient method on non-smooth convex functionsproof includedWith a fixed horizon and tuned step the averaged iterate attains O(1/sqrt t) suboptimality.
- TheoremLower bound for first-order methodsNo method that only queries gradients can beat O(1/t^2) on convex smooth problems or (1 - 1/sqrt kappa)^t on strongly convex ones.
- PropositionDivergence above the step-size thresholdproof includedOn a quadratic, gradient descent diverges precisely when the step exceeds 2/L.
Experiments
Problems (7)
All problems- Prove the O(1/t) rate for gradient descentProofAdvanced⏱ 1 hour
- Gradient descent with exact line search on a quadraticProofAdvanced⏱ 1 hour
- Implement gradient descent and verify all four ratesCodingAdvanced⏱ 3 hours
- Non-convex gradient descent reaches an approximate stationary pointProofIntermediate⏱ 30 min
- The exact step-size threshold on a quadraticProofBeginner⏱ 15 min
- Linear convergence under strong convexityProofIntermediate⏱ 30 min
- Why the subgradient method needs averagingProofAdvanced⏱ 30 min