Find all stationary points of , and use the Hessian at each stationary point to classify it as a local minimum, local maximum or saddle point. What happens if gradient descent is initialised at versus ?
Linear algebra and optimisation, Non-convex optimisation
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can find stationary points, apply the second-derivative (Hessian) test on a diagonal Hessian, and trace gradient descent along the line .
Key idea
Set to find the stationary points, then evaluate the Hessian matrix at each point: if all eigenvalues of the Hessian are positive the point is a local minimum, if all are negative it is a local maximum, and if they have opposite signs it is a saddle point (for a diagonal Hessian the eigenvalues are just the diagonal entries).
Steps
- Find stationary points: , giving and . The two stationary points are and .
- Compute the Hessian: . Because is diagonal, its eigenvalues are simply and .
- Classify : . Both eigenvalues are positive (), so is a strict local minimum with (though not a global minimum, as when ).
- Classify : . One eigenvalue is negative () and one is positive (), so is a saddle point with .
- Trace gradient descent: at , , so exact gradient descent stays put forever. At , : because the -slope is zero everywhere along the line , for we get , so deterministic gradient descent walks straight into the saddle unless noise nudges off .
Common mistakes
- Concluding that is the global minimum just because it is the only local minimum; the term makes as .
- Thinking gradient descent can never converge to a saddle point; starting on the exact line leads deterministic gradient descent straight into .
How long your answer should be
Half a page; 4–5 minutes.
Read this
Previous in Linear algebra and optimisation: How does projected gradient descent handle a closed convex constraint set , what is the Euclidean projection onto (a) a box and (b) the non-negative orthant , and what does one step from with give for ?
Next in Linear algebra and optimisation: For a matrix the inverse is (when ). How do you use it to solve and ?