On the Convergence of mSGD and AdaGrad for Stochastic Optimization

ruinan Jin, Yu Xing, Xingkang He

Introduction

Stochastic Gradient Descent (SGD) is the bedrock of machine learning optimization, but its variants—Momentum-based SGD (mSGD) and AdaGrad—are the practical workhorses used to train state-of-the-art models. Despite their empirical dominance, theoretical guarantees for these algorithms have historically relied on restrictive assumptions. This paper provides rigorous mathematical proofs for the convergence of mSGD and AdaGrad, relaxing traditional constraints such as bounded iterates and perfectly uniform gradient noise. The authors demonstrate that these algorithms almost surely converge to stationary points, even for complex, non-convex loss functions.

The Theoretical Gap

Most existing proofs for these optimization algorithms rely on assumptions that frequently fail to hold in real-world scenarios. For instance, they often assume the algorithm's path (iterates) remains within a bounded region or that gradient noise is uniformly bounded. Furthermore, many proofs only establish "subsequence convergence"—meaning only parts of the training process approach a solution—rather than proving the entire process eventually stabilizes. This work aims to bridge the gap between the massive empirical success of these tools and our theoretical understanding of why they work.

Methodology

The authors employ stochastic approximation techniques and Lyapunov methods to analyze the trajectory of the optimization process. Their approach is notable for the restrictive assumptions it successfully removes:

  • No Boundedness Assumption: The parameters ($\theta$) are not assumed to stay within a fixed range during training.
  • Relaxed Noise Conditions: Instead of requiring gradient noise to be uniformly bounded, the authors allow the noise variance to grow proportionally with the loss function. This is a much more realistic model for many machine learning problems.
  • Non-Convexity: The proofs hold for any smooth loss function, including the highly non-convex landscapes typical of deep neural networks.

For mSGD, the analysis focuses on how the "momentum" term effectively averages past gradients to reduce variance. For AdaGrad, the authors tackle the significant technical challenge of an "adaptive step size," which is itself a random variable dependent on the entire history of the training process.

Key Insights and Results

Asymptotic Convergence

Unlike previous works that proved weaker forms of convergence (like time-averages or subsequences), this paper proves that the iterates themselves converge to a connected set of stationary points with probability one. This means the algorithm actually "lands" on a solution. Specifically, Theorem 1 establishes that mSGD iterates are almost surely convergent to a connected set of stationary points for non-convex functions.

Quantified Acceleration

The paper provides a theoretical quantification of mSGD’s convergence rate. Theorem 2 demonstrates that the convergence rate of mSGD is $\mathcal{O}(e^{-\sum s\epsilon_i / p(1-\alpha)^2})$. When compared to the standard SGD rate, this mathematically confirms that a momentum coefficient ($\alpha$) close to 1 significantly accelerates the decay of the loss function, providing a formal explanation for the acceleration observed in practice.

Handling Unbounded Loss

By allowing the noise to scale with the loss, the authors make their results applicable to scenarios where the loss function might grow infinitely (such as quadratic or cubic functions). Previous "bounded noise" theories were unable to handle these unbounded loss landscapes.

AdaGrad Convergence

Proving AdaGrad's convergence is notoriously difficult because the learning rate changes at every step based on previous noise. Using a novel lemma, the authors show that despite this randomness, the gradients must eventually vanish. Theorem 3 proves that the standard "norm-form" AdaGrad algorithm is asymptotically convergent to stationary points under mild conditions, extending results that were previously limited to convex cases or modified versions of the algorithm.

Limitations and Future Work

While the paper provides a major leap in understanding convergence, a few areas remain for future exploration:

  • AdaGrad Convergence Rates: While the authors proved that AdaGrad converges, quantifying the specific rate of convergence for AdaGrad remains an open task for future research.
  • Coordinate-wise AdaGrad: The analysis focuses on the "norm form" of AdaGrad, where one scalar scales the whole gradient vector. Many practical implementations use a coordinate-wise version (similar to the Adam optimizer), which introduces another layer of mathematical complexity.
  • Smoothness Requirement: The proofs require the loss function to be "smooth" (having Lipschitz continuous gradients). Consequently, they may not directly apply to models using non-smooth components, such as ReLU activations, without further approximation.

Summary updated

BibTeX
@inproceedings{jin2022convergence,
  author = {ruinan Jin and Yu Xing and Xingkang He},
  title = {{On the Convergence of mSGD and AdaGrad for Stochastic Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=g5tANwND04i},
}
Figure