On the insufficiency of existing momentum schemes for Stochastic Optimization

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

Abstract

Momentum-based stochastic gradient methods such as heavy ball (HB) and Nesterov's accelerated gradient descent (NAG) are widely used in practice for training deep networks, as they often provide significant improvements over stochastic gradient descent (SGD). Rigorously speaking, "fast gradient" methods have provable improvements over gradient descent only for the deterministic case. This work provides a counterpoint to the belief that these methods inherently accelerate stochastic optimization by proving that there exist simple, generic problem instances where they cannot outperform SGD. These results suggest that the practical gains of HB or NAG are often a by-product of mini-batching. Furthermore, this work provides a viable alternative: Accelerated Stochastic Gradient Descent (ASGD), a simple-to-implement algorithm based on a variant of Nesterov's Acceleration that significantly improves over HB, NAG, and SGD.

Introduction

In the realm of deterministic optimization, momentum methods like Heavy Ball (HB) and Nesterov’s Accelerated Gradient (NAG) are mathematically proven to be faster than standard gradient descent. Because of this, they have become the default choice for training deep neural networks. However, there is a substantial gap between theory and practice when using stochastic gradients. This paper investigates whether these momentum schemes provide a genuine theoretical advantage in the Stochastic First Order Oracle (SFO) model, or if their perceived success is primarily due to the noise-reducing effects of mini-batching.

The Theoretical Gap in Momentum

The authors prove that for simple linear regression problems, the Heavy Ball method cannot outperform SGD, regardless of parameter tuning. While HB is optimal for deterministic problems, it fails to achieve true "acceleration" when gradients are noisy.

A key insight involves the "condition number" ($\kappa$), which represents the ratio between the most and least curved directions of a function. Standard SGD converges at a rate proportional to $\kappa$. True acceleration should converge at a rate proportional to $\sqrt{\kappa}$. As illustrated in Figure 1, while HB and NAG often revert to $\kappa$ scaling in stochastic settings, the proposed ASGD method achieves the desired $\sqrt{\kappa}$ scaling.

Figure 1: Comparison of convergence rates versus condition number. ASGD achieves the theoretical sqrt(kappa) acceleration, while HB and NAG scale linearly with kappa, similar to SGD.

Accelerated Stochastic Gradient Descent (ASGD)

To address the limitations of standard momentum, the authors introduce Accelerated Stochastic Gradient Descent (ASGD). Unlike standard momentum, which simply adds a fraction of the previous update, ASGD maintains two separate iterates:

  • A descent iterate: Making short, conservative steps to handle stochastic noise.
  • A running average: Incorporating "long steps" to capture the curvature of the loss landscape.

This dual-iterate approach allows the algorithm to balance the need for progress (acceleration) with the need to handle noise (stochasticity), maintaining a superior decay rate even as batch sizes decrease toward 1.

Empirical Results

The authors validated ASGD across synthetic linear regression, MNIST autoencoders, and CIFAR-10 (ResNet-44).

Key Findings:

  • Conditioning Robustness: ASGD demonstrated a clear $\sqrt{\kappa}$ dependence, significantly outperforming SGD, HB, and NAG as problems became more ill-conditioned.
  • Deep Learning Gains: On CIFAR-10 with a batch size of 128, ASGD achieved 5–7% better test error than HB and NAG during the initial stages of optimization.
  • Convergence Speed: Empirical results show that ASGD consistently reaches lower Mean Squared Error (MSE) in fewer passes than its counterparts, as shown in Figure 5.
Figure 5: MSE versus number of passes. ASGD demonstrates faster convergence and reaches a lower error floor compared to SGD, HB, and NAG.

Conclusion and Future Work

This research suggests that the common success of HB and NAG in deep learning may be an illusion created by large mini-batches that mask gradient noise. ASGD offers a provably better alternative for truly stochastic settings. Future work includes developing automatic tuning schemes for ASGD's hyperparameters and investigating its behavior in highly non-convex landscapes.

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