The learning rate at which descent stops converging
numeric▲△△Four significant figures; the threshold is exact.
STATEMENT
Find the exact learning rate above which gradient descent diverges on a quadratic, then run descent either side of it. Show that the boundary is not a gradual degradation but a change of sign in an exponent.
GIVEN
A quadratic loss with a diagonal Hessian:
with the optimum at the origin and the starting point .
FIND
The stability threshold; the condition number; the error norm after 1, 5, 10, 50 and 100 steps at ; the per-step multiplier in each eigendirection at and ; and the optimal rate with its contraction factor.
STRATEGY
Because the Hessian is diagonal the two coordinates never interact, so the iteration is two independent scalar recurrences. Each is multiplied by a fixed number every step, and a geometric sequence converges exactly when that number is below one in magnitude. The whole problem reduces to that comparison.
SOLUTION
Step 1 — the recurrence. Substituting into (I.7.1):
which is (I.7.3). In the eigenbasis — here the coordinate axes — each component is multiplied by every step.
Step 2 — the threshold. A geometric sequence converges when , that is . Every coordinate must converge, so the binding constraint is the largest eigenvalue:
The condition number is .
Step 3 — either side of it. Error norms:
Step 4 — why the boundary is sharp. The multipliers:
| steep direction | flat direction | ||
|---|---|---|---|
| converges | |||
| diverges |
A two-percent change in moves the steep multiplier from to . Both are close to one; the difference is which side. Raised to the hundredth power, and — seventeen orders of magnitude apart, from a rate difference of two percent.
Note also that the flat direction converges in both rows. Divergence is entirely the steep direction’s doing, and it is invisible in the flat one.
Step 5 — the best a scalar rate can do. Minimising balances the two extremes, giving
which is (I.7.4). At that rate the error shrinks by a factor of a thousand in 346 steps — for a two-dimensional quadratic with an exactly known Hessian. The slowness is not the algorithm being poorly implemented; it is being charged for.
Answer
Threshold exactly; .
At the error falls to by step 100; at it reaches . The multipliers in the steep direction are and respectively.
Optimal , contraction per step, 346 steps for a thousandfold reduction.
Check — sanity
The smallest rate is not the safest choice. At the error after 100 steps is — barely moved, and worse than by a factor of five. Stability and progress are different requirements, and satisfying the first with room to spare fails the second.
is worse than at . against , even though is the theoretical optimum. The optimum minimises the asymptotic rate, and at 100 steps the iteration has not reached its asymptote: the larger multiplier in the steep direction is still costing more than the smaller one in the flat direction is saving.
The threshold uses and the rate uses both. Stability is decided by the steepest direction alone; speed is decided by their ratio. Two different eigenvalues answering two different questions, which is why quoting a single “curvature” for a model explains neither.
Where this breaks
A neural network loss is not a quadratic, and the ways it is not matter here. Its Hessian changes with , so there is no single and no fixed threshold — the stable rate at initialisation may be unstable after a thousand steps, which is one reason schedules decay. Its eigenvalues span many orders of magnitude with a long tail, so computed honestly is enormous and the bound above becomes vacuous rather than merely pessimistic. And it is non-convex, so there is no to contract towards.
What survives the move to a real network is the qualitative shape and not the numbers: there is an edge, crossing it diverges rather than degrades, and the edge is set by the largest curvature rather than the typical one. A rate that “nearly worked” is not near-optimal — it is on the wrong side of a boundary.
The demonstration is also noiseless. With minibatch gradients the iteration is stochastic, the error does not contract monotonically, and a rate slightly below the deterministic threshold can still diverge because a single noisy gradient overshoots. I.7.X09 measures that noise; the interaction is what makes the usable band narrower in practice than this problem suggests.
Variation
Change to , so . Predict the optimal rate and the contraction factor before computing them, then say how many steps a thousandfold reduction takes. The answer explains why preconditioning is worth its cost.