On the Convergence of A Class of Adam-Type Algorithms for Non-Convex Optimization

Xiangyi Chen, Sijia Liu, Ruoyu Sun, Mingyi Hong

Abstract

Adaptive gradient methods like Adam are ubiquitous in deep learning, yet their theoretical convergence properties in non-convex settings have remained poorly understood. This paper introduces a unified "Generalized Adam" framework and identifies sufficient conditions for convergence, primarily focusing on controlling the oscillation of effective stepsizes. We provide the first comprehensive theoretical guarantees for Adam-type algorithms in non-convex optimization, bridging the gap between empirical success and mathematical theory.

Introduction

Adaptive gradient methods have become the default choice for training deep neural networks due to their ability to handle sparse gradients and automatically adjust learning rates. However, their theoretical foundation was surprisingly shaky. In 2018, it was demonstrated that Adam could diverge even on simple convex problems. While AMSGrad was proposed to address this, its convergence proof was restricted to convex functions. Since modern deep learning models are almost exclusively non-convex, there was a critical need for a mathematical guarantee that these algorithms would actually converge in the non-convex landscapes they inhabit.

The Generalized Adam Framework

To address this, we propose the Generalized Adam framework, a unified mathematical template that encompasses popular algorithms such as SGD, AdaGrad, Adam, and AMSGrad.

Algorithm 1: The Generalized Adam framework.

The key innovation in this analysis is the focus on the "effective stepsize"—the ratio between the learning rate and the square root of the second-moment estimate ($\alpha_t / \sqrt{\hat{v}_t}$). Convergence behavior is decomposed into two critical components: gradient accumulation and the oscillation of the effective stepsize. By requiring that these terms grow slower than the total sum of stepsizes, we derive a convergence rate of $O(\log T / \sqrt{T})$ for non-convex stochastic optimization.

Theoretical Insights and Empirical Results

The analysis reveals that the primary cause of Adam's potential divergence is the wild fluctuation of its effective stepsize. AMSGrad "fixes" this by ensuring the second-moment estimate is non-decreasing, which effectively dampens these oscillations.

We validated these findings using standard computer vision benchmarks (MNIST and CIFAR-10) and introduced AdaFom (AdaGrad with First Order Momentum), which maintains a stable second-moment estimate while benefiting from momentum.

Empirical comparison of convergence metrics for Adam, AMSGrad, and SGD.

Empirical results confirm that Adam's effective stepsize oscillation spikes significantly compared to AMSGrad and SGD. This oscillation directly correlates with a failure to converge in the gradient norm plot (bottom-right), where Adam plateaus while the theoretically stable methods continue to descend. This demonstrates that the mathematical requirements for stability are not merely theoretical abstractions but are essential for practical training success.

Conclusion

This work provides a rigorous theoretical lens for understanding adaptive gradient methods in non-convex optimization. By proving that AMSGrad and AdaFom converge to stationary points at a rate of $O(\log T / \sqrt{T})$, even with constant momentum parameters, we provide practitioners with the mathematical assurance needed for modern deep learning. Future work will extend this analysis to constrained non-convex optimization and further investigate the "Adam gap" between worst-case theory and average-case practice.

Summary updated

BibTeX
@inproceedings{chen2019convergence,
  author = {Xiangyi Chen and Sijia Liu and Ruoyu Sun and Mingyi Hong},
  title = {{On the Convergence of A Class of Adam-Type Algorithms for Non-Convex Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=6ApklO49qUq},
}
Figure