NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Convergence of Adam and Adagrad

Alexandre Défossez, Léon Bottou, Francis R. Bach, Nicolas Usunier

Abstract

Adaptive optimization methods like Adam and Adagrad are fundamental to modern deep learning, yet their theoretical convergence in non-convex settings has historically been complex or reliant on restrictive variants. This paper provides a simplified, unified framework for analyzing these optimizers. By refining the treatment of momentum and the correlation between gradients and adaptive scaling, the authors achieve a significantly tighter convergence bound for the momentum parameter $\beta_1$, improving it from $O((1-\beta_1)^{-5})$ to $O((1-\beta_1)^{-1})$. Furthermore, the work clarifies the relationship between Adam and Adagrad, framing Adam as a constant step-size variant of Adagrad, which explains its practical efficacy in deep learning despite theoretical convergence requirements.

Introduction

Adaptive optimization algorithms, particularly Adam and Adagrad, are the workhorses of modern machine learning. Despite their ubiquity, the theoretical understanding of their convergence—especially in the non-convex landscapes typical of neural networks—has lagged behind their empirical success. Early proofs for Adam were found to contain errors, leading to the development of variants like AMSGrad to ensure convergence. Moreover, existing bounds often exhibited a high sensitivity to hyperparameters, particularly the momentum term ($\beta_1$), which mathematically suggested a much slower convergence than what practitioners observed.

In "A Simple Convergence Proof of Adam and Adagrad," researchers from Meta AI and INRIA address these gaps. They provide a unified mathematical framework that simplifies the analysis of these optimizers while delivering significantly tighter bounds on their performance.

Addressing the Theoretical Gap

The primary challenge in proving the convergence of adaptive methods lies in the interaction between the gradient (the numerator) and the adaptive scaling factor (the denominator). Because these terms are correlated, standard stochastic gradient descent (SGD) proofs do not directly apply. Previous attempts to bridge this gap often resulted in "loose" dependencies, where the momentum parameter $\beta_1$ would cause the theoretical convergence rate to explode as it approached 1.

The authors set out to achieve three goals: provide a unified proof for both algorithms, tighten the momentum-related bounds, and provide a theoretical explanation for why Adam often outperforms Adagrad in practice.

Methodology: A Unified Formulation

The researchers treat Adagrad and Adam as variations of the same underlying logic. To facilitate a cleaner proof, they introduced several key technical innovations:

  1. Simplifying Adam: The authors proposed removing the "corrective term" for the first moment ($m_n$) while retaining it for the second moment ($v_n$). This modification ensures a monotonic step size, which simplifies the mathematical analysis without negatively impacting empirical training performance.
  2. Managing Correlation: To handle the correlation between the gradient and the adaptive denominator, the authors extended a technical lemma (based on work by Ward et al.) to demonstrate that the update direction remains an "approximate" descent direction.
  3. Momentum Re-centering: By utilizing the smoothness properties (L-Lipschitz) of the objective function, the authors "re-centered" past gradients to their values at previous iterations. This technique was instrumental in reducing the momentum bound from $O((1-\beta_1)^{-5})$ to $O((1-\beta_1)^{-1})$.

Empirical Validation

The theoretical findings were validated through two distinct experimental setups:

  • Synthetic Toy Problem: A 6-dimensional problem using Huber loss and Bernoulli variables was designed to isolate the effect of the $\beta_2$ parameter (the moving average of squared gradients). The experimental results closely matched the theoretical predictions, with an observed slope of 0.56 compared to the predicted 0.5.
  • CIFAR-10 Benchmark: The researchers trained a convolutional neural network on the CIFAR-10 dataset to test the simplified version of Adam. The results confirmed that dropping the $m_n$ correction term had no observable negative effect on real-world training trajectories.

Key Insights: The "Twins" Analogy

One of the most significant conceptual contributions of the paper is the analogy between Adam and Adagrad. The authors argue that Adam is to Adagrad what constant step-size SGD is to decaying step-size SGD.

Adagrad naturally converges because its effective learning rate vanishes over time as gradients accumulate. In contrast, Adam—with its default moving average parameters—behaves like a constant step-size optimizer. While this means Adam does not technically "converge" to a single point in the limit without hyperparameter decay, it allows the optimizer to move away from the starting point much faster, which is often the desired behavior in complex deep learning tasks.

Results and Implications

The paper successfully recovers the standard $O(\ln(N)/\sqrt{N})$ convergence rate for both algorithms in non-convex settings. The dramatic tightening of the momentum bound brings the theory much closer to empirical reality, explaining why high momentum values do not catastrophically slow down training. Additionally, the authors prove that Adam can be made to converge at the same rate as Adagrad if the learning rate ($\alpha$) and $\beta_2$ are scaled appropriately relative to the total number of iterations $N$.

Limitations and Future Directions

While the paper marks a significant step forward, some limitations remain. The proof assumes that stochastic gradients are "almost surely bounded," a standard but restrictive assumption in deep learning. Furthermore, while the momentum bound was tightened, the math still suggests that increasing momentum deteriorates the convergence bound, whereas in practice, it often improves speed. The authors note that their current proof does not yet account for the "variance reduction" benefits of momentum, leaving an open question for future research. Finally, while the paper explains Adam's behavior, it does not suggest a new "universal" default hyperparameter set that guarantees convergence without manual tuning.

Summary updated

BibTeX
@article{defossez2022convergence,
  author = {Alexandre Défossez and Léon Bottou and Francis R. Bach and Nicolas Usunier},
  title = {{On the Convergence of Adam and Adagrad}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=ZPQhzTSWA7},
}
Figure