Introduction
Momentum-based optimization methods, specifically Heavy Ball (HB) and Nesterov’s Accelerated Gradient (NAG), have become the de facto standards for training deep neural networks. Their success in deterministic optimization is well-documented, where they provide provable acceleration over standard gradient descent. However, their transition to the stochastic setting—where gradients are estimated from small mini-batches—has lacked similar theoretical grounding. This paper investigates whether these methods truly provide acceleration in the Stochastic First Order Oracle (SFO) model, particularly in the small-batch regime.
The Stochastic Momentum Gap
In deterministic settings, momentum methods are known to be optimal. In the stochastic world, practitioners often assume momentum "smooths" noisy gradient estimates. Yet, the authors demonstrate a significant theoretical gap: there is no proof that HB or NAG improves convergence rates over standard Stochastic Gradient Descent (SGD) when the batch size is small (e.g., $b=1$).
Through theoretical counter-examples in linear regression, the authors prove that the Heavy Ball method cannot outperform SGD's convergence rate, regardless of hyperparameter tuning. HB's performance is fundamentally limited by the problem's condition number ($\kappa$) in a way that SGD is not, suggesting that the perceived benefits of momentum in deep learning may be an artifact of large mini-batching rather than a fundamental property of the algorithms in noisy environments.
Accelerated Stochastic Gradient Descent (ASGD)
To address these limitations, the authors propose Accelerated Stochastic Gradient Descent (ASGD). Unlike standard NAG, ASGD is specifically engineered for stochasticity. It utilizes two distinct iterates:
- A descent iterate ($w_t$): Performs conservative, short steps to maintain stability.
- A running average ($\bar{w}_t$): Incorporates "long steps" to effectively capture the underlying curvature of the loss surface.
A key innovation in ASGD is the introduction of a statistical advantage parameter ($\xi$). This parameter allows the algorithm to balance the computational complexity (the "hardness" of the optimization) against the noise level of the stochastic gradients.
Empirical Results and Scaling Laws
The most striking result is the difference in how these algorithms scale with the condition number $\kappa$. Theoretically, ASGD’s error decay scales with $\sqrt{\kappa}$, whereas SGD, HB, and NAG scale linearly with $\kappa$ in stochastic settings.
In practical tests on synthetic linear regression, ASGD consistently followed the $\sqrt{\kappa}$ curve, providing a massive speedup for ill-conditioned problems. This advantage translated to more complex tasks as well. On the MNIST dataset for training deep autoencoders with a batch size of 1, HB and NAG performed similarly to SGD, while ASGD converged significantly faster.
On CIFAR-10 using a PreResNet-44, ASGD maintained its lead. With a batch size of 8, ASGD achieved a 5–7% lower test error in the early training stages and a superior final accuracy (8.52% error) compared to NAG (9.07%) and HB (9.28%).
Conclusion
This research challenges the assumption that standard momentum methods are optimal for stochastic optimization. By revealing that HB and NAG often fail to accelerate in high-noise, small-batch regimes, the authors highlight the importance of designing algorithms specifically for the SFO model. ASGD emerges as a robust alternative, providing genuine acceleration across various batch sizes and problem types. Future work remains in formalizing lower bounds for NAG and automating the tuning of ASGD's parameters for broader application in fields like Natural Language Processing.
Summary updated