Md. Asif Uddin
    Problem I.7.B01

    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:

    L(θ)=12θTHθ,H=diag(20, 0.2)\mathcal{L}(\vec{\theta}) = \tfrac{1}{2}\vec{\theta}^{\mathsf{T}}\mat{H}\vec{\theta}, \qquad \mat{H} = \mathrm{diag}(20,\ 0.2)

    with the optimum at the origin and the starting point θ0=(1,1)\vec{\theta}_0 = (1, 1).

    FIND

    The stability threshold; the condition number; the error norm after 1, 5, 10, 50 and 100 steps at η∈{0.01, 0.09, 0.0990, 0.11, 0.2}\eta \in \{0.01,\ 0.09,\ 0.0990,\ 0.11,\ 0.2\}; the per-step multiplier in each eigendirection at η=0.09\eta = 0.09 and η=0.11\eta = 0.11; 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 ∇L=Hθ\nabla\mathcal{L} = \mat{H}\vec{\theta} into (I.7.1):

    θt+1=θt−ηHθt=(I−ηH)θt\vec{\theta}_{t+1} = \vec{\theta}_t - \eta\mat{H}\vec{\theta}_t = (\mat{I} - \eta\mat{H})\vec{\theta}_t

    which is (I.7.3). In the eigenbasis — here the coordinate axes — each component is multiplied by 1−ηλi1 - \eta\lambda_i every step.

    Step 2 — the threshold. A geometric sequence converges when ∣1−ηλ∣<1|1 - \eta\lambda| < 1, that is 0<η<2/λ0 < \eta < 2/\lambda. Every coordinate must converge, so the binding constraint is the largest eigenvalue:

    η<2λmax⁡=220=0.1\eta < \frac{2}{\lambda_{\max}} = \frac{2}{20} = 0.1

    The condition number is κ=20/0.2=100\kappa = 20/0.2 = 100.

    Step 3 — either side of it. Error norms:

    η\etat=1t=1t=5t=5t=10t=10t=50t=50t=100t=100
    0.01000.01001.2791.2791.0431.0430.98600.98600.90480.90480.81860.8186
    0.09000.09001.2671.2670.97020.97020.84080.84080.40330.40330.16260.1626
    0.09900.09901.3861.3861.2801.2801.1581.1580.52020.52020.19140.1914
    0.11000.11001.5481.5482.6442.6446.2436.2439.100×1039.100\times10^{3}8.282×1078.282\times10^{7}
    0.20000.20003.1503.1502.430×1022.430\times10^{2}5.905×1045.905\times10^{4}7.179×10237.179\times10^{23}5.154×10475.154\times10^{47}

    Step 4 — why the boundary is sharp. The multipliers:

    η\etasteep directionflat direction
    0.090.090.80000.80000.98200.9820converges
    0.110.111.20001.20000.97800.9780diverges

    A two-percent change in η\eta moves the steep multiplier from 0.80.8 to 1.21.2. Both are close to one; the difference is which side. Raised to the hundredth power, 0.8100≈2×10−100.8^{100} \approx 2 \times 10^{-10} and 1.2100≈8×1071.2^{100} \approx 8 \times 10^{7} — 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 max⁡i∣1−ηλi∣\max_i |1 - \eta\lambda_i| balances the two extremes, giving

    η∗=2λmax⁡+λmin⁡=0.0990099,contraction κ−1κ+1=0.980198\eta^* = \frac{2}{\lambda_{\max} + \lambda_{\min}} = 0.0990099, \qquad \text{contraction } \frac{\kappa - 1}{\kappa + 1} = 0.980198

    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 κ=100\kappa = 100 being charged for.

    Answer

    Threshold η<2/λmax⁡=0.1\eta < 2/\lambda_{\max} = 0.1 exactly; κ=100\kappa = 100.

    At η=0.09\eta = 0.09 the error falls to 0.16260.1626 by step 100; at η=0.11\eta = 0.11 it reaches 8.282×1078.282 \times 10^{7}. The multipliers in the steep direction are 0.80000.8000 and 1.20001.2000 respectively.

    Optimal η∗=0.0990099\eta^* = 0.0990099, contraction 0.9801980.980198 per step, 346 steps for a thousandfold reduction.

    Check — sanity

    The smallest rate is not the safest choice. At η=0.01\eta = 0.01 the error after 100 steps is 0.81860.8186 — barely moved, and worse than η=0.09\eta = 0.09 by a factor of five. Stability and progress are different requirements, and satisfying the first with room to spare fails the second.

    η=0.0990\eta = 0.0990 is worse than η=0.09\eta = 0.09 at t=100t = 100. 0.19140.1914 against 0.16260.1626, even though 0.09900.0990 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 λmax⁡\lambda_{\max} 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 θ\vec{\theta}, so there is no single λmax⁡\lambda_{\max} 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 κ\kappa computed honestly is enormous and the bound above becomes vacuous rather than merely pessimistic. And it is non-convex, so there is no θ∗\vec{\theta}^* 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 H\mat{H} to diag(20,20)\mathrm{diag}(20, 20), so κ=1\kappa = 1. 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.

    Draws on