What is Local minimum?
In Turkish: Yerel minimum · Topic: Math foundations
A point in a loss function that is lower than everything around it but is not necessarily the lowest point of the whole function. During training, an optimization algorithm can get stuck there.
How does it work?
A loss function can be pictured as a mountainous landscape: each parameter setting of the model is a location and the loss is the height. Gradient descent moves in the steepest downhill direction at each step. When it reaches a pit, every direction leads uphill and the slope approaches zero, so the algorithm stops. If that pit is not the deepest point in the landscape, the algorithm has landed in a local minimum. The lowest point of the entire landscape is the global minimum. Convex functions have only one minimum, while the loss surfaces of deep networks are far more complicated.
Why does it matter?
This is a basic idea for understanding why optimization can fail. Still, in high-dimensional deep networks, research suggests that what makes training hard is often saddle points and flat regions rather than bad local minima. The topic is still being studied.
Example
Training the same neural network twice with different random starting values can send it into different pits of the loss surface and produce slightly different results.
FAQ
What is the difference between a local minimum and a global minimum?
A local minimum is lower only than the points in its immediate neighborhood. The global minimum is the lowest value of the function over its whole domain. Every global minimum is also a local minimum, but not the other way around.
How can training avoid getting stuck in a local minimum?
Techniques such as momentum, learning rate schedules and the noise from mini-batch stochastic gradient descent can reduce the chance of getting stuck in pits. Training several times from different starting values is also used. None of them guarantees finding the global minimum.