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

A Simple Convergence Proof of Adam and Adagrad

Alexandre Défossez, Leon Bottou, Francis Bach, Nicolas Usunier

Abstract

We provide a simple proof of convergence covering both the Adam and Adagrad adaptive optimization algorithms when applied to smooth (possibly non-convex) objective functions with bounded gradients. We show that in expectation, the squared norm of the objective gradient averaged over the trajectory has an upper-bound which is explicit in the constants of the problem, parameters of the optimizer, the dimension $d$, and the total number of iterations $N$. This bound can be made arbitrarily small, and with the right hyper-parameters, Adam can be shown to converge with the same rate of convergence $O(d\ln(N)/\sqrt{N})$. When used with the default parameters, Adam doesn't converge, however, and just like constant step-size SGD, it moves away from the initialization point faster than Adagrad, which might explain its practical success. Finally, we obtain the tightest dependency on the heavy ball momentum decay rate $\beta_1$ among all previous convergence bounds for non-convex Adam and Adagrad, improving from $O((1-\beta_1)^{-3})$ to $O((1-\beta_1)^{-1})$.

Introduction

Despite being the "workhorse" of modern deep learning, the theoretical foundations of the Adam optimizer have historically been shaky. Early proofs of its convergence were found to be incorrect, and subsequent fixes often required complex variants (like AMSGrad) or resulted in "pessimistic" bounds—mathematical guarantees that suggested the algorithm performed much worse than it does in practice. Specifically, previous proofs showed a very poor dependency on the "heavy-ball" momentum parameter $\beta_1$, scaling as $(1-\beta_1)^{-5}$. This meant that as practitioners increased momentum—a standard practice—the theoretical guarantee for convergence became exponentially worse.

This research bridges the gap between theory and practice with a simpler, tighter proof that covers both Adam and Adagrad under a single, unified framework. By refining the mathematical analysis, the authors demonstrate that Adam and Adagrad are essentially "twins," showing that with the right hyperparameters, Adam achieves the same optimal convergence rate as Adagrad.

Methodology

The authors employ several clever techniques to simplify the proof and tighten the bounds:

  • Unified Formulation: They define a single set of update rules that can represent both Adagrad and a slightly modified version of Adam.
  • Simplified Adam: The authors propose dropping the "bias correction" term for the first moment ($m_n$) while keeping it for the second moment ($v_n$). They argue that the $m_n$ correction is essentially just a short learning-rate warmup. Removing it makes the step size monotonic, which greatly simplifies the mathematical analysis without impacting performance.
  • Gradient Re-centering: To handle momentum more effectively, the proof uses the "smoothness" of the objective function to "re-center" past gradients. This allows the analysis to account for how the gradient changes as the optimizer moves through the parameter space.
  • Non-uniform Sampling: Instead of evaluating the very last iteration, the proof evaluates a random iteration $\tau$ sampled from the training trajectory. When momentum is high, the analysis samples earlier iterations more frequently to account for the "lag" momentum introduces.

Key Insights: The "Twins" Analogy

A central contribution of this work is the conceptual link between Adam and Adagrad. The authors suggest that Adam is to Adagrad what constant step-size SGD is to decaying step-size SGD. While Adagrad is asymptotically optimal, Adam’s "constant" nature (under default parameters) means it doesn't technically converge to a single point. Instead, it moves away from the starting point much faster than Adagrad, which likely explains its empirical success in escaping poor local minima and navigating complex loss landscapes.

Furthermore, the paper improves the theoretical dependency on the momentum decay rate $\beta_1$ from $O((1-\beta_1)^{-3})$ down to $O((1-\beta_1)^{-1})$. This is a massive leap that brings theory much closer to the high-momentum regimes used by practitioners.

Experimental Validation

The theoretical findings were validated using two primary setups:

  1. Synthetic Toy Problem: A 6-dimensional objective function designed to test how the optimizer handles rare but large gradient updates. This verified the predicted $O(1/\sqrt{1-\beta_2})$ slope for gradient norms.
  2. CIFAR-10: Training a convolutional neural network on image classification confirmed that removing the $m_n$ correction (the "Simplified Adam" approach) had no observable impact on training, validating the model used in the proof.

Results and Limitations

The authors prove a convergence rate of $O(d \ln(N)/\sqrt{N})$ for both algorithms in non-convex settings. They show that if Adam's hyperparameters are scaled relative to the time horizon $N$ (specifically $\beta_2 = 1 - 1/N$), it matches Adagrad's performance exactly.

However, some challenges remain. Like most current optimization theory, this proof shows that adding momentum actually worsens the worst-case convergence bound, despite its empirical benefits—a phenomenon known as the "Momentum Paradox." Additionally, the proof assumes that stochastic gradients are "almost surely bounded." While the authors provide variants to relax this assumption, proving a theoretical "speedup" from momentum in non-convex stochastic settings remains an open challenge for the field.

Summary updated

BibTeX
@article{defossez2022simple,
  author = {Alexandre Défossez and Leon Bottou and Francis Bach and Nicolas Usunier},
  title = {{A Simple Convergence Proof of Adam and Adagrad}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=ZPQhzTSWA7},
}
Figure