When there is more than one valley
Most interesting models are not convex. Their objectives have several local minima, saddle points and flat plateaus, and gradient descent simply rolls into whichever valley it starts in. Take . Its derivative vanishes at , and . The first and last are minima with and , and the middle one is a hump between them. Descent with a small step from ends at , which is only a local minimum, and from it ends at , the global one. Two starts as close as and , on either side of the hump at , end in different valleys.
Saddle points are the other trap. There the gradient is zero but the Hessian has eigenvalues of both signs, so the function falls in some directions and rises in others. In high dimensions most stationary points are saddles, and plain gradient descent slows to a crawl near them. Momentum, noise from mini-batches and second-order information all help it escape. Plateaus, where the gradient is tiny over a wide region, look like convergence but are not.
The standard remedy is to restart. Run the optimiser from different starting points and keep the result with the lowest objective value. If each start independently lands in the global valley with probability , then at least one of starts does so with probability . For and this is , and reaching takes , so 21 starts. Better starting points help too: a solution from a convex relaxation, yesterday's calibration, or a grid search over the few parameters that matter most.
- Local minima: descent ends in the valley where it starts, so the start decides the answer.
- Saddles and plateaus: zero or tiny gradient without a minimum; momentum and noise help.
- Restarts: starts succeed with probability ; keep the best objective value.
Lab · what's graded
- The global minimum value15 pts
- Starting at x = 215 pts
- Two close starts15 pts
- Success of random restarts15 pts
- How many restarts15 pts
- Near a saddle point10 pts
- Comparing restart results15 pts