You minimise by gradient descent with a fixed learning rate , starting from . (a) What is the largest learning rate for which gradient descent converges? (b) What do the iterates do at that learning rate, and above it?
Linear algebra and optimisation, Gradient methods
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can write the gradient-descent update for a separable quadratic, find the stability condition , and describe what happens at and beyond the limit with actual numbers.
Key idea
The gradient is , so each coordinate updates independently and is multiplied by a fixed factor every step: and . A sequence multiplied by each step shrinks to only when , so we need and , giving .
Steps
- Find the gradient and minimum: (the second derivatives along and are and ). The minimum is at with ; at the start, .
- Write the update for each coordinate: , so . Likewise .
- Find when both multipliers are smaller than in magnitude: , and . Both must hold, so gradient descent converges exactly when (the steeper -coordinate sets the limit).
- Check an example inside the range, : the multipliers are and , so .
- At the boundary : the multipliers are and , giving . Here reaches in one step, while jumps between and forever with stuck at .
- Above the limit, e.g. : the -multiplier is , so goes with and (even though the -multiplier still shrinks ).
Common mistakes
- Using the smaller curvature : is the limit for alone, but above the -coordinate already diverges.
- Taking the derivative of as instead of , which gives the wrong limit .
- Saying gradient descent diverges at ; at the exact boundary it oscillates with constant amplitude.
- Giving as the convergence limit; is the threshold for converging without oscillating, whereas convergence holds up to .
How long your answer should be
Half a page; 4–5 minutes. Show the update rule, the two inequalities, and a few iterates for each case.
Read this
Previous in Linear algebra and optimisation: Why is every covariance matrix symmetric positive semidefinite, and when is it singular?
Next in Linear algebra and optimisation: A matrix has a null space of dimension , and lies in the column space of . What is the rank of , how many free parameters does the solution to have, and could have a solution for every ?