Abstract
Momentum is known to accelerate the convergence of gradient descent in strongly convex settings without stochastic gradient noise. In stochastic optimization, such as training neural networks, folklore suggests that momentum may help deep learning optimization by reducing the variance of the stochastic gradient update, but previous theoretical analyses do not find momentum to offer any provable acceleration. Theoretical results in this paper clarify the role of momentum in stochastic settings where the learning rate is small and gradient noise is the dominant source of instability, suggesting that SGD with and without momentum behave similarly in the short and long time horizons. Experiments show that momentum indeed has limited benefits for both optimization and generalization in practical training regimes where the optimal learning rate is not very large, including small- to medium-batch training from scratch on ImageNet and fine-tuning language models on downstream tasks.
Introduction
Since the early days of neural networks, "heavy-ball" momentum has been a standard tool to speed up training. In deterministic settings, it is mathematically proven to accelerate convergence by dampening oscillations in high-curvature directions. However, deep learning is rarely deterministic; mini-batches introduce significant stochastic gradient noise. Common wisdom suggests that momentum helps by "averaging out" this noise, yet theoretical proofs of this "stochastic acceleration" have been elusive. This paper investigates whether the noise-reduction property of momentum provides any unique benefit to neural network training, specifically focusing on the "small learning rate" regime typical of fine-tuning or small-batch training.
Methodology
The researchers employ a combination of rigorous mathematical analysis and controlled experiments:
- Weak Approximation Theory: They compare the probability distributions of SGD and SGDM trajectories. They prove that if the SGD learning rate ($\eta$) is scaled to match the "effective" learning rate of SGDM ($\gamma / (1-\beta)$), the two paths remain remarkably close over time.
- Stochastic Differential Equations (SDEs): To understand long-term behavior, they model optimization as a continuous-time SDE, analyzing how methods behave once they reach the "manifold of minimizers."
- SVAG (Stochastic Variance-Reduced Gradient): This technique is used to artificially reduce curvature's impact, isolating whether momentum's benefits stem from handling curvature or reducing noise.
Theoretical Analysis
- The Variance Illusion: While a single step of SGDM has lower variance than a step of SGD, SGDM steps are positively correlated. Over a trajectory, this correlation cancels out the variance reduction, resulting in equivalent "total turbulence."
- Effective Learning Rate Equivalence: SGDM with learning rate $\gamma$ and momentum $\beta$ is essentially SGD with a larger learning rate $\eta = \gamma / (1-\beta)$. Accounting for this scaling removes the perceived "special sauce" of momentum in noisy settings.
- Curvature vs. Noise: Momentum's true value lies in stabilizing training when the learning rate is large relative to curvature. If the learning rate is small enough that noise is the primary bottleneck, momentum offers little unique advantage.
- Implicit Bias: The paper proves that SGD and SGDM share the same implicit bias, tending to find solutions with similar generalization properties.
Experimental Results
The authors validated their theory across ImageNet training and various NLP fine-tuning tasks.
ImageNet Training
On ImageNet, vanilla SGD performs as well as SGDM for small to medium batch sizes (up to 1024). Momentum only shows a significant advantage at very large batch sizes (e.g., 8192), where a high learning rate is required for efficiency. Visualizations show that SGD and SGDM curves track each other almost perfectly when the effective learning rate is matched.
NLP Fine-tuning
On RoBERTa-large fine-tuning, SGD and SGDM achieved nearly identical accuracy across five different downstream tasks. For instance, both methods reached 94.0% on SST-2. This suggests that for the small learning rates used in fine-tuning, momentum is "along for the ride."
Conclusion
This study demonstrates that momentum has marginal value in the small learning rate regime. While momentum is crucial in the "Edge of Stability" regime where learning rates are high, it is not a "must-have" for all deep learning workflows. Practically, since momentum requires storing a "velocity" buffer, switching to vanilla SGD for fine-tuning large models could save significant GPU memory without losing performance. Future work may explore the interplay between momentum and adaptive scaling in methods like Adam.
Summary updated