Momentum › Effective Learning Rate with Momentum

Michael BrenndoerferApril 23, 20253 min read
Language AI HandbookAll chapters
Part 10 of 67Neural Network Foundations
Chapter 67Momentum › Effective Learning Rate with Momentum
Reading section 6 of 18 · Effective Learning Rate with Momentum · 3 minSection 6 of 18 · 3 min

Book contents

Section 6 of 18 · 3 min read

Momentum › Effective Learning Rate with MomentumOne section · Sections in this chapter6 / 18 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

One important consequence of momentum is that it amplifies the effective learning rate for gradient components that are persistent across steps. To see why, consider the steady state where the gradient has been constant at gg for many steps, using the PyTorch formulation (without the (1−β)(1-\beta) factor).

Starting from v0=0\mathbf{v}_0 = 0 and applying the recursion vt=β vt−1+g\mathbf{v}_t = \beta \, \mathbf{v}_{t-1} + g repeatedly:

v1=gv2=βg+g=(1+β)gvt=g∑k=0t−1βk\begin{aligned} \mathbf{v}_1 &= g \\ \mathbf{v}_2 &= \beta g + g = (1 + \beta) g \\ \mathbf{v}_t &= g \sum_{k=0}^{t-1} \beta^k \end{aligned}

As t→∞t \to \infty, the sum converges via the geometric series formula to:

v∞=g⋅11−β\mathbf{v}_\infty = g \cdot \frac{1}{1 - \beta}

where:

  • gg: the constant gradient value in steady state
  • β\beta: the momentum coefficient
  • v∞\mathbf{v}_\infty: the limiting velocity after many steps of constant gradient

The actual step size applied to the parameters is α⋅v∞=α⋅g/(1−β)\alpha \cdot \mathbf{v}_\infty = \alpha \cdot g / (1 - \beta). Compared to plain SGD's step size of α⋅g\alpha \cdot g, the effective learning rate is multiplied by 1/(1−β)1/(1-\beta).

With β=0.9\beta = 0.9, the effective rate for persistent directions is α/(1−0.9)=10α\alpha / (1 - 0.9) = 10\alpha. This means you should often use a smaller nominal learning rate with momentum than you would with plain SGD. With β=0.99\beta = 0.99, the amplification is 100-fold, which requires an even smaller base learning rate to avoid divergence.

This scaling matters in practice: switching from plain SGD to SGD with β=0.9\beta = 0.9 without adjusting the learning rate will often cause divergence, because the optimizer is now effectively taking 10x larger steps. The safe approach is to divide the learning rate by (1−β)(1-\beta) when adding momentum, keeping the effective step size constant. You can then separately tune the learning rate further.

The amplification also explains why momentum is so valuable when the loss surface has many flat regions. In a flat region, the gradient is small at every step. Plain SGD takes tiny steps and barely moves. With momentum, even small but consistent gradients accumulate over time, allowing the optimizer to build up meaningful velocity. This "free" speed-up in flat regions is a fundamental advantage of momentum over plain SGD that goes beyond just oscillation dampening. It is particularly important in modern deep learning, where loss surfaces often have long flat corridors connecting saddle points and the optimizer must traverse these corridors to reach good minima.