A Comprehensive Framework for Analyzing the Convergence of Adam: Bridging the Gap with SGD

Ruinan Jin, Xiao Li, Yaoliang Yu, Baoxiang Wang

Introduction

Adam (Adaptive Moment Estimation) is the workhorse of modern deep learning, celebrated for its ability to handle sparse gradients and non-stationary objectives beautifully. However, its theoretical convergence has long relied on unrealistic assumptions, such as strictly bounded gradients. This paper introduces a new analytical framework proving that Adam converges under the same relaxed conditions as Stochastic Gradient Descent (SGD), finally bridging the gap between practice and theory.

The Theory-Practice Gap

In the world of optimization, there is a persistent gap between theory and practice. While practitioners rely heavily on Adam, mathematicians have struggled to prove its efficacy without imposing stringent assumptions—specifically, the requirement that stochastic gradients must be "almost surely bounded."

In reality, gradients in deep neural networks can be quite large or even unbounded. Standard SGD theory is much more mature, requiring only that the loss function is smooth ($L$-smoothness) and that the noise in the gradients follows a relatively loose "ABC inequality." Previous attempts to prove Adam's convergence under these looser SGD-like conditions often resulted in complexity bounds dependent on the smoothing parameter $\mu$ (usually a tiny value like $10^{-8}$), rendering the bounds practically useless. This paper seeks to provide a comprehensive proof that Adam is just as theoretically sound as SGD.

A Novel Analytical Framework

The authors introduce a theoretical framework centered on a new Lyapunov function—a mathematical "energy" function that is shown to decrease over time. The key technical innovations include:

  • The ABC Inequality: Instead of assuming gradients are always small, the authors use the ABC inequality, which bounds the variance of the stochastic gradient by a linear combination of the current function value and the true gradient norm.
  • Handling the "Extra Error Term": A major hurdle in analyzing Adam is that the learning rate changes at every step based on past gradients. This creates an error term in the math that doesn't exist in SGD. The authors handle this by introducing a scaling factor ($\Pi_{\Delta, t}$) into their Lyapunov function, which effectively "cancels out" the instability caused by the adaptive learning rate.
  • Discrete Martingale Theory: To prove $L_1$ and almost sure convergence, they employ advanced tools like Burkholder’s inequality and the first hitting time decomposition method. These allow them to bound the "worst-case" behavior of the optimizer across all possible trajectories.

Key Results and Insights

The most important takeaway is that Adam does not require special, restrictive conditions to work. It achieves the same fundamental convergence properties as SGD under identical assumptions.

Comparison of convergence assumptions and results
  • Sample Complexity: The paper establishes a non-asymptotic sample complexity of roughly $\mathcal{O}(\frac{\ln T}{\sqrt{T}})$. This matches the near-optimal rates expected from state-of-the-art optimizers and, crucially, is independent of the smoothing term $\mu$.
  • Asymptotic Convergence: The authors prove that the gradient norm converges to zero almost surely (for almost every training run) and in the $L_1$ sense (the expected value of the gradient norm goes to zero).
  • Last-Iterate Convergence: While many proofs only show that the average of all steps converges, this paper proves that the final step (last iterate) converges to a critical point, aligning with what practitioners actually care about.
  • Hyperparameter Robustness: The results hold for standard Adam configurations where the second-moment decay ($\beta_2$) approaches 1 over time, matching common practical schedules.

Limitations and Future Work

To keep the proofs manageable, the authors focused on a representative set of hyperparameter configurations rather than an exhaustive exploration of every possible $\beta_1, \beta_2$ combination. Additionally, the analysis relies on classical $L$-smoothness, whereas recent deep learning theory suggests that "relaxed" or "non-uniform" smoothness might be more accurate for models like Transformers and LLMs. Future work could apply this scaling factor framework to other popular variants like AdamW, Lion, or Nadam.

Summary updated

BibTeX
@inproceedings{jin2025comprehensive,
  author = {Ruinan Jin and Xiao Li and Yaoliang Yu and Baoxiang Wang},
  title = {{A Comprehensive Framework for Analyzing the Convergence of Adam: Bridging the Gap with SGD}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=CiKWAofp7n},
}
Figure