A zero gradient is only a candidate
The topics Gradients, Jacobians and Hessians and Matrix calculus gave us the gradient of any loss we can write down, and Multiple integrals and change of variables turned expected losses into integrals. One question is still open: when we reach a point with zero gradient, have we found the best one?
A zero gradient and a positive second derivative are local facts. Take a one-dimensional "loss":
It has three critical points:
Two of them pass the second-derivative test. Gradient descent with step started at settles at . Started at , it settles at . Both runs end with a gradient of zero up to machine precision. Only one of them found the deeper well, and nothing measured at the end point tells them apart.
This topic describes functions for which local information is global: convex functions. The losses of least squares, logistic regression and support vector machines are convex. Neural network losses are not, and by the end of the topic we will see why.