Derive why the direction of fastest local decrease of at is , using a first-order Taylor expansion and the Cauchy–Schwarz inequality. For at , compare the rate of decrease along with the one along ?
Linear algebra and optimisation, Gradient methods
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you can derive the steepest-descent direction rather than just quote it, and check it on a small example.
Key idea
For a small step in a unit direction , . Cauchy–Schwarz gives , with equality at .
Steps
- This is the derivation behind `why-negative-gradient`, which gives the picture. Write the first-order Taylor approximation with . The change in is, to first order, times the directional derivative .
- To decrease as fast as possible, minimise over unit vectors. Cauchy–Schwarz says , so the smallest possible value is .
- Equality needs to be parallel to with the opposite sign: . That is the steepest descent direction.
- Numbers. at , and . Along the slope is . Along the slope is , which is less steep. Along it is only .
- Sanity check. , so the direction achieves about 95% of the best rate. It is close because the gradient is mostly in the direction.
- State the condition. The result is local, since the Taylor step is valid only for small . The word steepest also depends on measuring step length with the Euclidean norm; other norms give other directions.
Common mistakes
- Saying points to the minimum. It is only the best direction locally.
- Forgetting to normalise . Without you can make as negative as you like by scaling .
- Using the Taylor expansion with a large step. The approximation then fails and the function can go up.
How long your answer should be
Half a page; about 3 minutes, with the Cauchy–Schwarz step and the numerical check.
Read this
Previous in Linear algebra and optimisation: If is known, how do you derive the Sherman–Morrison formula for ? How do you verify it for and , and why does it matter for online ridge regression?
Next in Linear algebra and optimisation: Prove that for a convex function on a convex set , every local minimum is a global minimum. Then show on that the minimiser need not be unique, and what extra condition makes it unique?