On the insufficiency of existing momentum schemes for Stochastic Optimization

Rahul Kidambi, Praneeth Netrapalli, Prateek Jain, Sham M. Kakade

Overview

While momentum methods like Heavy Ball (HB) and Nesterov’s Accelerated Gradient (NAG) are the gold standard for training deep networks, this paper reveals a surprising truth: they do not actually provide a theoretical speedup over Stochastic Gradient Descent (SGD) in truly stochastic settings. Their practical success is largely a "side effect" of mini-batching. To address this, the authors propose a new algorithm, Accelerated Stochastic Gradient Descent (ASGD), which delivers genuine, provable acceleration even with small batch sizes.

The Problem: The Illusion of Momentum in Stochastic Settings

In the world of optimization, "acceleration" is a holy grail. In deterministic settings—where you have the exact gradient—methods like NAG are provably faster than standard Gradient Descent. Because deep learning relies heavily on SGD, practitioners naturally ported these momentum schemes over, assuming the theoretical benefits would carry across.

However, there is a massive theoretical gap: there was no proof that these methods actually improve convergence in the Stochastic First-Order Oracle (SFO) model, where you only have access to a noisy estimate of the gradient (such as a single sample or a small mini-batch). The authors set out to answer a fundamental question: Are traditional momentum methods actually optimal for stochastic optimization, or have we been misattributing their success?

Methodology: Exposing the Flaw and Proposing a Fix

The paper approaches the problem through two lenses: a rigorous mathematical "counter-proof" and a new algorithmic proposal.

  1. The Suboptimality Proof: The authors construct a "generic" linear regression problem and prove that for any choice of hyperparameters (learning rate and momentum), the Heavy Ball method cannot outperform vanilla SGD. This challenges the long-held belief that momentum inherently helps in all scenarios.
  2. The ASGD Algorithm: To fill the gap, they introduce Accelerated Stochastic Gradient Descent (ASGD). Unlike standard momentum, which simply adds a fraction of the previous update, ASGD maintains two separate iterates:
  3. A descent iterate ($w_t$): Updated via a "short" gradient step.
  4. A running average ($\bar{w}_t$): Updated via a "long" gradient step.

The final update is a clever convex combination of these two, allowing the algorithm to make progress in different directions of the loss landscape at a balanced pace.

Experimental Setup

The authors validated their claims across three distinct scales:

  • Synthetic Linear Regression: Used to test theoretical convergence rates under Discrete and Gaussian noise distributions.
  • MNIST: Training deep autoencoders (784-1000-500-250-30-250-500-1000-784 architecture) to test performance on non-convex but well-understood problems.
  • CIFAR-10: Training a 44-layer Deep Residual Network (PreResNet-44) to demonstrate practical utility in modern computer vision tasks.

Key Insights

  • The Mini-batching Illusion: The authors argue that HB and NAG only look "fast" in practice because we use large mini-batches. Mini-batching reduces noise, making the stochastic gradient look more like a deterministic one. In the "pure" stochastic regime (batch size of 1), HB and NAG often collapse to the performance of vanilla SGD.
  • Condition Number Scaling: In linear regression, the error decay rate for SGD, HB, and NAG scales linearly with the condition number ($\kappa$). ASGD, however, scales with $\sqrt{\kappa}$. This is a massive win for "ill-conditioned" problems where some features are much more sensitive than others.
Convergence rate scaling with condition number for ASGD vs. traditional methods.
  • Generic Pathological Cases: The "negative" instances where HB fails aren't weird, hand-crafted mathematical traps; they are simple linear regressions. This suggests that the insufficiency of traditional momentum is a widespread issue, not a theoretical edge case.

Empirical Results

  • Provable Superiority: On the test linear regression problems, ASGD achieved the optimal convergence rate, while HB and NAG were stuck at the same rate as SGD.
  • Small Batch Performance: On MNIST autoencoders with a batch size of 1, SGD, HB, and NAG all decreased loss at nearly identical rates. ASGD, however, decayed the error significantly faster.
MSE vs. Number of Passes showing ASGD's faster convergence.
  • Deep Learning Gains: When training a ResNet on CIFAR-10 with a batch size of 128, ASGD outperformed HB and NAG. More impressively, with a small batch size of 8, ASGD offered a 5–7% improvement in test error over the other methods during the initial stages of training.
  • Final Accuracy: In the CIFAR-10 experiments (batch size 8), ASGD reached a final test error of 8.52%, noticeably better than HB (9.28%) and NAG (9.07%).

Limitations and Future Directions

While the paper provides a solid proof for the Heavy Ball method, the theoretical lower bound for Nesterov’s Accelerated Gradient (NAG) in the stochastic setting is still a conjecture (though strongly supported by their experiments).

Additionally, ASGD introduces more hyperparameters to tune ($\kappa$ and $\xi$) compared to standard momentum. While the authors provide a "grid search" strategy and intuitive explanations for these parameters, making ASGD as "plug-and-play" as Adam or standard momentum remains a challenge. The authors suggest that future work should focus on automatic tuning schemes and testing ASGD in other domains like Natural Language Processing (NLP).

Summary updated

BibTeX
@inproceedings{kidambi2018insufficiency,
  author = {Rahul Kidambi and Praneeth Netrapalli and Prateek Jain and Sham M. Kakade},
  title = {{On the insufficiency of existing momentum schemes for Stochastic Optimization}},
  booktitle = {ITA},
  year = {2018},
  doi = {10.1109/ita.2018.8503173},
}
Figure