Convergence Rates of Gradient Descent
Smoothness, strong convexity, condition numbers and linear rates.
How fast gradient descent converges depends entirely on what you assume about the function. This lesson proves the three classical rates (a rate to stationarity for smooth nonconvex functions, in value for convex ones, linear under strong convexity), shows that a 1963 condition of Polyak gives linear rates with no convexity at all, and asks how tight the bounds are and where deep learning escapes their assumptions.
What you’ll learn
- State the smoothness, convexity, strong convexity and Polyak–Łojasiewicz conditions, and derive the inequalities each one provides.
- Prove , and .
- Prove linear convergence under the Polyak–Łojasiewicz inequality, and place it among related conditions.
- Judge how tight these rates are, using the exact worst case of gradient descent and first-order lower bounds, and recognize where neural-network training breaks the assumptions.
Function classes and what they buy
Smoothness bounds the gradient by the gap. Apply the quadratic upper bound at and use :
Strong convexity implies PL. Minimize the right side of the strong-convexity inequality over (the minimum is at ); the left side is at least for every :
Strong convexity pins down the minimizer. At the gradient vanishes, so the same inequality with and swapped gives quadratic growth; adding the two versions gives a lower bound on the gradient:
Together: on an -smooth, -strongly convex function, and . Distance, suboptimality and gradient norm are all equivalent up to factors of , which is why the convergence rate can be stated in any of them.
Nonconvex: a 1/T rate to stationarity
The descent lemma with , for each :
Sum over ; the right side telescopes and :
The minimum is at most the average.
Three remarks. The guarantee is about the best iterate (or a random one), not the last. A small gradient certifies a stationary point, which may be a saddle; the Convergence lesson Nonconvex Optimization & Saddle Points handles that. And the cannot be improved by any first-order method without further assumptions: Carmon, Duchi, Hinder & Sidford (2020) construct -smooth functions in high dimension on which every algorithm, even a randomized one, needs order queries to find an -stationary point (Lower Bounds & Oracle Complexity).
and . How many gradient steps with does the theorem need to guarantee some iterate with ?
Show the answer
10000 steps
. Halving quadruples the count: the scaling of stationarity.
Convex: the 1/T rate in function value
Combine the descent lemma with convexity at , , where :
Complete the square, using . The left side is nonnegative, so the distance to cannot grow:
Sum over ; the distances telescope:
The descent lemma makes nonincreasing, so the last term is the smallest, and copies of it are bounded by the sum.
How tight is it? For gradient descent itself, Drori & Teboulle (2014) computed the worst case exactly by posing it as an optimization problem over functions (a performance estimation problem). With step , , they proved and exhibited convex -smooth functions attaining it. So the rate is real, and the textbook constant is about twice too pessimistic.
Can another method do better? Yes. Nesterov's lower bound says no first-order method can beat on all smooth convex functions (for ), and accelerated methods attain order : see Momentum & Nesterov Acceleration. Gradient descent with cleverly varied steps also beats : Altschuler & Parrilo (2024) showed that a recursively defined "silver" schedule of occasional long steps reaches an -minimizer in iterations, between the textbook and the accelerated .
A convex has and . How many steps of size does the textbook bound need to guarantee ?
Show the answer
500 steps
gives . Drori and Teboulle's exact worst case, , needs only (rounding up 249.5). Either way the count grows like : a tenfold smaller target costs ten times more steps.
Strong convexity, and PL without convexity
Descent lemma, then PL in the form :
Iterate. Since , accuracy needs at most steps.
The proof never used convexity, only PL. PL says that the gradient is large wherever the function value is far from optimal. It forces every stationary point to be a global minimizer, yet allows nonconvex functions and non-unique minimizers:
- is not convex ( dips to ), but Karimi et al. show it satisfies PL with , so gradient descent converges linearly from anywhere.
- Least squares with a rank-deficient has a whole affine set of minimizers, so it is not strongly convex. Writing , with the projection onto the range of , gives and ; since lies in the range of , , where is the smallest nonzero singular value. So PL holds with .
- More generally, with smooth and -strongly convex satisfies PL with , whatever the rank of : the same projection argument applies to .
Which function satisfies the PL inequality for some , but is not strongly convex?
- with rank-deficient
Show the answer
B. with rank-deficient
Its minimizers form an affine set, so it cannot be strongly convex, yet . Gradient descent converges linearly in function value and, from , to the minimizer closest to .
Beyond the classical picture
| Class (gradient descent, ) | Rate | Iterations for | Best first-order method |
|---|---|---|---|
| -smooth, bounded below | same order: is optimal | ||
| -smooth, convex | , accelerated | ||
| -smooth, -strongly convex or PL | , accelerated (strongly convex) |
Overparameterized models. For losses with minimum , Liu, Zhu & Belkin (2022) introduced the PL condition, , argued that overparameterized systems satisfy it on most (but not all) of their parameter space, and showed that sufficiently wide neural networks satisfy it, with high probability, in a ball of constant radius around their random initialization. That ball contains a global minimizer, which explains why (stochastic) gradient descent started at the center drives the training loss to zero. Such guarantees hold near initialization in the wide limit; whether they describe networks that learn features far from initialization is less clear.
The edge of stability. The classical theory runs gradient descent with , so that it decreases the loss monotonically. Cohen, Kaur, Li, Kolter & Talwalkar (2021) observed that full-batch gradient descent on neural networks typically does something else: the sharpness, the top eigenvalue of the Hessian, rises until it hovers just above , and the loss decreases non-monotonically over short timescales but consistently over long ones. This edge of stability lies outside every theorem in this lesson.
Key takeaways
- For -smooth , gradient descent with gives , with no convexity; order is optimal for first-order methods on this class.
- For convex -smooth , , proved by combining the descent lemma, convexity and a telescoping distance argument. The exact worst case is (Drori–Teboulle).
- Strong convexity implies PL, and PL plus smoothness gives : about iterations.
- PL needs no convexity: it covers , rank-deficient least squares and, in the PL form, wide neural networks near initialization.
- Accelerated methods improve to and to ; neural-network training at the edge of stability violates the step-size assumptions behind all of these rates.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
In the convex proof, why may we bound the last iterate , while the nonconvex theorem only bounds the best gradient norm?
- Because convex functions have no stationary points other than minimizers
- Because is nonincreasing under the descent lemma, while need not be monotone
- Because the convex rate is faster
- Because the last iterate of gradient descent is always the best one in every sense
Show the answer
B. Because is nonincreasing under the descent lemma, while need not be monotone
The convex proof bounds the sum of the gaps ; since these only decrease, the last one is at most the average. In the nonconvex proof the summed quantity is , which can go up and down along the path, so only the minimum (or a random iterate) inherits the bound.
A -strongly convex, -smooth has and . Roughly how many steps with does the guarantee need to shrink by a factor ?
- About 10
- About 100
- About 1,000
- About 10,000
Show the answer
C. About 1,000
needs : about . Accelerated methods would need on the order of .
Gradient descent with a small fixed step is run on from . How does approach the minimizer ?
- Linearly: for some
- In finitely many steps
- Sublinearly, roughly like , because the curvature vanishes at the minimum
- It does not converge for any step size
Show the answer
C. Sublinearly, roughly like , because the curvature vanishes at the minimum
: the contraction factor tends to 1 as . Solving the recursion gives . is convex but neither strongly convex nor PL, so only the convex bound applies.
Further reading
- B. T. Polyak, "Gradient methods for the minimisation of functionals," USSR Computational Mathematics and Mathematical Physics 3(4), 864–878 (1963).
- H. Karimi, J. Nutini & M. Schmidt, "Linear convergence of gradient and proximal-gradient methods under the Polyak–Łojasiewicz condition," ECML PKDD 2016, Lecture Notes in Computer Science 9851, 795–811 (2016).
- Y. Drori & M. Teboulle, "Performance of first-order methods for smooth convex minimization: a novel approach," Mathematical Programming 145, 451–482 (2014).
- Y. Nesterov, Lectures on Convex Optimization, 2nd ed. (Springer, 2018), chapters 1–2.
- S. Bubeck, Convex Optimization: Algorithms and Complexity (Foundations and Trends in Machine Learning, 2015), chapter 3.