Starting from , perform two steps of gradient descent on with learning rate . Does the iterate overshoot the minimum, and do the iterates still converge?
Linear algebra and optimisation, Gradient methods
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can compute gradient-descent iterates by hand and distinguish damped oscillation (overshooting that still converges) from divergence.
Key idea
With , the update multiplies the error by at each step. A negative factor between and flips the sign—overshooting the minimum on every step—yet shrinks the error by each time, so it converges.
Steps
- Find the derivative and minimum: and . Setting gives the minimum , with .
- Step 1 from : , so . Notice , so it jumped across the minimum .
- Step 2 from : , so . The objective drops from to to .
- Check convergence: . Since , the distance , so the iterates oscillate across and converge.
Common mistakes
- Assuming any overshoot means gradient descent diverges. Here the smoothness constant is : overshooting happens whenever , while failure to converge starts only at (persistent oscillation at , divergence for ).
- Sign mistakes on step 2 when is negative: subtracting a negative quantity increases .
How long your answer should be
Half a page; 3 minutes.
Read this
Previous in Linear algebra and optimisation: Geometrically, why must the gradient of the objective be parallel to the gradient of the constraint at a smooth optimum of subject to ?
Next in Linear algebra and optimisation: Minimise starting from with initial velocity , learning rate and momentum . Compute and using (a) heavy-ball momentum (, ) and (b) Nesterov accelerated gradient (, ). How do the two updates differ?