This paper provides the first comprehensive theoretical framework for the convergence of "Adam-type" algorithms (like Adam, AMSGrad, and AdaGrad) in non-convex optimization—the landscape typical of deep learning. The authors prove these algorithms can achieve a convergence rate of $O(\log T / \sqrt{T})$ and introduce AdaFom, a stable variant that combines AdaGrad's scaling with first-order momentum.
The Problem: Theory vs. Practice in Deep Learning
In the world of deep learning, Adam is often considered the gold standard optimizer. It is fast, handles sparse gradients well, and requires minimal hyperparameter tuning. However, for a long time, its theoretical foundation was shaky.
In 2018, researchers discovered that Adam could actually fail to converge (diverge) even on simple convex problems. While a "corrected" version called AMSGrad was proposed, its convergence was only proven for convex settings. Since almost all deep learning problems are non-convex, there was a massive gap between theory and practice. This paper tackles that gap: Under what conditions do these adaptive gradient methods actually converge when the optimization landscape is a messy, non-convex terrain?
Methods: A Unified Framework
The authors propose a unified framework called Generalized Adam. This framework encompasses several popular optimizers by varying how they calculate the "momentum" ($m_t$) and the "adaptive scaling" ($\hat{v}_t$).
Key components of their approach include:
- The "Effective Stepsize": Defined as $\alpha_t / \sqrt{\hat{v}_t}$. Convergence depends heavily on how this value behaves over time.
- AdaFom (AdaGrad with First Order Momentum): A new algorithm introduced in this paper. It uses AdaGrad’s second-moment estimate but adds a momentum term to the gradient update.
- Convergence Analysis: The authors provide a mathematical proof showing that if the oscillation of the effective stepsize is controlled, the algorithm is guaranteed to find a stationary point (a place where the gradient is zero).
Key Insights and Ideas
Oscillation is the Enemy
The paper identifies "Term B"—the oscillation of the effective stepsize—as a primary cause of divergence. If the adaptive scaling factor ($\hat{v}_t$) changes too wildly or in the "wrong" direction relative to the gradient, the optimizer can get kicked out of a good local minimum.
Adam's Hidden Risk
The authors show that Adam's divergence isn't just a convex-world problem. In non-convex settings, Adam can fail because its second-moment estimate doesn't guarantee that the effective stepsize decreases over time. As seen in the figure above, when Adam's stepsize oscillation spikes, the gradient norm fails to converge, whereas AMSGrad remains stable.
The Normalization Advantage
Adaptive methods like AMSGrad can outperform standard Stochastic Gradient Descent (SGD) because the $\sqrt{\hat{v}_t}$ term acts as a local normalizer. This allows the algorithm to use a wider range of learning rates without overshooting, making hyperparameter tuning much easier in practice.
Constant Momentum is Okay
Unlike previous theories that required momentum to vanish over time to prove convergence, this paper shows that constant momentum (which is what practitioners actually use) is theoretically sound under their framework.
Key Results and Empirical Stability
The authors validated their theoretical findings using synthetic toy problems, as well as training CNNs on MNIST and CIFAR-10.
- Theoretical Guarantee: They proved a convergence rate of $O(\log T / \sqrt{T})$ for a broad class of Adam-type methods in non-convex settings.
- AdaFom Performance: AdaFom was shown to be consistently superior to standard AdaGrad in deep learning tasks, proving that adding first-order momentum is a significant "free" performance boost for adaptive scaling methods.
- Empirical Stability: In the image classification experiments, AMSGrad and Adam performed similarly, but AMSGrad provided the theoretical safety net that Adam lacks. AdaFom sat comfortably between AdaGrad and the Adam-style optimizers in terms of final accuracy.
Limitations and Future Work
While this paper bridges a critical gap, some limitations remain:
- Unconstrained Optimization: The analysis focuses on unconstrained problems. Real-world tasks often have constraints (e.g., weight clipping or projection) which this framework doesn't explicitly cover.
- The Rate Gap: While $O(\log T / \sqrt{T})$ is a solid result, standard SGD can achieve $O(1 / \sqrt{T})$. The extra "log" factor in the adaptive methods' rate suggests there might still be room to sharpen the analysis.
- Generalization: The paper focuses on optimization (minimizing training loss), but it doesn't address generalization (how well the model performs on unseen data), which remains an ongoing debate in the adaptive vs. non-adaptive optimizer community.
Summary updated