Momentum and Adaptive Gradient Moments

Compare a smoothed gradient direction with coordinatewise scaling and account for moment bias at early steps.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Exponential averages retain recent history
  2. A second moment scales each coordinate

Exponential averages retain recent history

A first-moment accumulator can update \(m_t=\beta m_{t-1}+(1-\beta)g_t\). It emphasizes recent gradients while smoothing immediate noise. Starting at zero with constant gradient \(g\), its value is \((1-\beta^t)g\). Dividing by that factor removes the initialization bias in this example. A larger \(\beta\) changes how quickly the accumulator reacts to a sign change.

A second moment scales each coordinate

Adam also tracks exponentially averaged squared gradients and uses their square roots, plus a stabilizing term, to scale coordinates. Unlike a fixed global step size, the effective scale can differ across parameters. Applying an objective penalty through the gradient differs from separately scaling the weights. Decoupled weight decay explains that distinction. Mini-batch sampling determines the noise these moments summarize.[1][2]

References

  1. Diederik P. Kingma and Jimmy Ba, Adam: A Method for Stochastic Optimization ↩
  2. Ian Goodfellow, Yoshua Bengio and Aaron Courville, Deep Learning ↩