Momentum accelerates Stochastic Gradient Descent by accumulating a velocity vector in directions of persistent gradient:
Typical .
Intuition: a ball rolling downhill accumulates speed. Gradients that consistently point the same direction build up velocity; oscillating gradients cancel out.
Benefits:
- Dampens oscillations across narrow ravines
- Accelerates movement along consistent gradient directions
- Helps escape shallow local minima and saddle points
Nesterov momentum (lookahead variant):
Evaluates the gradient at the "future" position rather than the current position. This corrective step often converges faster.
Relation to Adam: Adam Optimizer combines momentum (first moment) with per-parameter adaptive learning rates (second moment). Momentum is the "m" in Adam.
See also: Stochastic Gradient Descent, Adam Optimizer