For a quadratic loss J(w)=12(w−w∗)⊤H(w−w∗) with symmetric positive definite Hessian H (whose largest eigenvalue is λmax⁡(H)), started at w0=0 with gradient descent step size 0<η<1/λmax⁡(H), how do you show that stopping after t iterations acts approximately like L2 regularisation with penalty λ≈1ηt?

Deep learning, Regularisation
Level L4 Advanced. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can carry out Goodfellow’s eigendecomposition comparison between finite-time gradient descent and ridge regression.

Key idea

Diagonalising H=QΛQ⊤ decouples each eigen-coordinate i: after t steps of GD from 0, w~t=(1−(1−ηλi)t)w~i∗, whereas L2 regularisation with penalty λ gives w~L2,i=λiλi+λw~i∗. Both suppress directions with small curvature λi and match closely when λ≈1ηt.

Steps

  1. Write the GD update: ∇J(w)=H(w−w∗), so wt−w∗=(I−ηH)(wt−1−w∗). Starting from w0=0, induction gives wt=(I−(I−ηH)t)w∗.
  2. Rotate to the eigenbasis of H: let H=QΛQ⊤ with orthogonal Q and eigenvalues λi>0, and write w~=Q⊤w. Along coordinate i, w~t,i=(1−(1−ηλi)t)w~i∗.
  3. Compare with L2 regularisation: minimising J(w)+λ2∥w∥22 solves (H+λI)wL2=Hw∗, so in the eigenbasis w~L2,i=λiλi+λw~i∗=(1−λλi+λ)w~i∗.
  4. Match the two shrinkage factors using (1−ηλi)t≈e−ηλit. For low curvature, λi≪1ηt, early stopping keeps the fraction 1−e−ηλit≈ηtλi of w~i∗, and L2 keeps λiλi+λ≈λi/λ, which are equal when λ=1ηt. For high curvature, λi≫1ηt, both factors are close to 1.

Common mistakes

How long your answer should be

About one page; 6–8 minutes.

Last checked on 4 December 2026.

Read this

Previous in Deep learning: Why is standard test-time weight scaling in dropout only an exact ensemble average for a single linear layer, and how does Monte Carlo (MC) dropout use dropout at inference time to estimate predictive uncertainty?
Next in Deep learning: Taking ϵ→0, how do you prove that batch normalisation makes a layer’s output invariant to positive scalar rescaling of its weights, BN⁡(cWx)=BN⁡(Wx) for any c>0, and what does this imply for the weight gradient ∇cWL and the effective learning rate during SGD?