Acceleration of stochastic gradient descent with momentum by averaging: finite-sample rates and asymptotic normality

Xi Chen, Kejie Tang, Weidong Liu, Yichen ZhangarXiv 2023 · DOI

Introduction

Stochastic Gradient Descent with Momentum (SGDM) is widely considered the "workhorse" of modern machine learning optimization. Despite its empirical success and perceived robustness to hyperparameter selection, its theoretical advantages over standard Stochastic Gradient Descent (SGD) have remained a subject of rigorous debate. Specifically, previous literature suggested that momentum might not provide genuine acceleration in stochastic settings without the use of mini-batching.

This paper establishes a formal theoretical foundation for SGDM, providing finite-sample convergence rates and proving that SGDM, when combined with mini-batching and Polyak-Ruppert averaging, achieves both faster initial convergence and asymptotic normality. This normality is crucial as it enables formal statistical inference and uncertainty quantification for model parameters.

Theoretical Framework and Methodology

The authors analyze SGDM under the assumption of strong convexity—specifically focusing on loss functions that are twice differentiable with Lipschitz continuous Hessians. The study examines two primary variants: Mini-batch SGDM and Averaged SGDM.

Finite-Sample Analysis

By examining the spectral radius of the transition matrix, the researchers derived convergence rates for quadratic and general strongly convex functions. This analysis identifies how quickly the algorithm "forgets" its initial state and enters the neighborhood of the optimum. A key contribution is the proposal of an adaptive momentum weight ((\gamma)), designed to theoretically attain the optimal convergence rate.

Polyak-Ruppert Averaging and Normality

To achieve statistical stability, the paper employs Polyak-Ruppert averaging, where the final estimator is the average of the iterates. The authors prove that this averaged estimator converges to a normal distribution. While this is a known property for standard SGD, this work is among the first to rigorously extend the proof to the mini-batch SGDM setting.

Key Insights: The Synergy of Momentum and Mini-batching

The research highlights several critical properties that explain SGDM's practical superiority:

  • The Mini-batch Synergy: The "acceleration" of SGDM is fundamentally tied to mini-batching. With sufficiently large batches, SGDM reaches the optimal neighborhood significantly faster than standard SGD.
  • Phase Transition in Momentum: The convergence rate exhibits a phase transition relative to the momentum weight. There exists an optimal (\gamma); exceeding this point leads to oscillatory behavior and slower convergence.
  • Robustness to Learning Rates: Theoretically, SGDM supports a much broader range of learning rates than SGD. Empirical tests showed SGDM remained stable at learning rates 16 times higher than the maximum threshold for SGD, explaining why SGDM is often easier to tune in practice.
  • Asymptotic Equivalence: While SGDM provides a faster "early-game" convergence, it is asymptotically equivalent to averaged SGD as (t \to \infty). This ensures that the early speed of momentum does not come at the cost of late-stage statistical stability.

Empirical Results

The theoretical findings were validated through synthetic simulations (quadratic loss and logistic regression) and real-world data (MNIST).

  • Convergence Speed: In quadratic simulations, the adaptive SGDM (SGDM-adap) converged significantly faster than both standard SGD and fixed-momentum variants.
  • Bias and Noise Reduction: Polyak-averaging was shown to reduce the order of bias (e.g., from (10^{-8}) to (10^{-9})), effectively filtering the noise inherent in stochastic gradients.
  • Statistical Inference: Experiments confirmed that the derived statistics follow a standard normal distribution (\mathcal{N}(0,1)). This allows practitioners to construct 95% confidence intervals for model parameters, a vital requirement for high-stakes applications like medical imaging or financial forecasting.

Limitations and Future Directions

While this work provides a rigorous basis for SGDM, it is currently constrained to strongly convex settings. This covers many important statistical models, such as Lasso and Logistic Regression, but does not yet account for the non-convex landscapes typical of deep neural networks. Additionally, the analysis focuses on fixed learning rates; extending these proofs to modern schedules like cosine annealing and non-convex loss functions remains a priority for future research.

Summary updated

BibTeX
@misc{chen2023acceleration,
  author = {Xi Chen and Kejie Tang and Weidong Liu and Yichen Zhang},
  title = {{Acceleration of stochastic gradient descent with momentum by averaging: finite-sample rates and asymptotic normality}},
  year = {2023},
  eprint = {2305.17665},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.17665},
}
Figure