Abstract
Why does the original analysis of Adam fail, but it still converges very well in practice on a broad range of problems? There are still some mysteries about Adam that have not been unraveled. This paper provides a novel non-convex analysis of Adam and its many variants to uncover some of these mysteries. Our analysis exhibits that an increasing or large enough "momentum" parameter for the first-order moment used in practice is sufficient to ensure Adam and its many variants converge under a mild boundness condition on the adaptive scaling factor of the step size. In contrast, the original problematic analysis of Adam uses a momentum parameter that decreases to zero, which is the key reason that makes it diverge on some problems. To the best of our knowledge, this is the first time the gap between analysis and practice is bridged. Our analysis also exhibits more insights for practical implementations of Adam, e.g., increasing the momentum parameter in a stage-wise manner in accordance with stagewise decreasing step size would help improve the convergence. Our analysis of the Adam family is modular such that it can be (has been) extended to solving other optimization problems, e.g., compositional, min-max and bi-level problems. As an interesting yet non-trivial use case, we present an extension for solving non-convex min-max optimization in order to address a gap in the literature that either requires a large batch or has double loops. Our empirical studies corroborate the theory and also demonstrate the effectiveness in solving min-max problems.
Introduction
Since its introduction in 2014, the Adam optimizer has become the standard for training deep learning models. However, a significant "theory-practice gap" has persisted. While practitioners found success using large momentum parameters ($\beta \approx 0.9$ or $0.999$), early theoretical analyses suggested Adam could diverge, particularly when momentum parameters were small or decreasing. This paper addresses these mysteries by providing a unified theoretical framework for the Stochastic Moving Average (SEMA) estimator, which forms the core of the Adam update.
The "Secret Sauce": Large Momentum
The central finding of this work is that the momentum parameter $\beta_t$ is the key to convergence. Unlike the original analysis which assumed a decreasing momentum, this study proves that an increasing or sufficiently large momentum parameter is sufficient to guarantee convergence in non-convex settings.
As training progresses, the model approaches a stationary point, and the variance in stochastic gradients becomes a bottleneck. A large momentum parameter allows the algorithm to effectively "smooth out" this noise by incorporating historical gradient information. This behavior is contrasted with other methods in the literature in the following comparison.
As shown in the top table of the figure above, methods that use a decreasing momentum parameter (like the original Adam analysis) fail to guarantee convergence, whereas the proposed approach using an increasing parameter ensures it. Furthermore, the bottom table highlights the efficiency of this approach in Min-Max optimization, achieving state-of-the-art complexity with a single-loop structure and small batch sizes.
A Unified and Modular Analysis
The researchers provide a "skeleton" analysis that is modular and applicable to a wide range of adaptive optimizers. By focusing on the SEMA estimator, the analysis extends naturally to variants like AMSGrad, AdaGrad, and AdaBound.
The table above illustrates how various popular optimizers fit into this unified framework. This modularity allows the theory to be extended beyond standard minimization to more complex problems like min-max (Primal-Dual Stochastic Momentum) and bilevel optimization (Stochastic Momentum for Bilevel).
Key Insights and Results
- Variance Reduction: SEMA acts as a natural variance reducer. Unlike techniques like SPIDER, it doesn't require Lipschitz continuity of the gradient or multiple evaluations per step, making it more general and efficient.
- Single-Loop Efficiency: The proposed algorithms (ASA, PDAda, SMB) avoid the computationally expensive "double-loop" structures common in previous state-of-the-art min-max and bilevel solvers.
- Empirical Validation: Experiments on Cifar10/100 (ResNet-50) and molecular datasets (MPNN) confirm that stage-wise increasing momentum—aligned with stage-wise decreasing learning rates—significantly improves performance. In AUC maximization (a min-max task), the proposed PDAda and PDSM algorithms consistently outperformed traditional baselines.
Conclusion and Future Directions
This work bridges the gap between the theoretical understanding and practical success of Adam-family optimizers. By identifying the critical role of large momentum, it provides a clear path for designing more stable and efficient algorithms. Future work may address the condition number dependence in min-max problems and explore removing the assumption of bounded adaptive scaling factors to provide an even more general analysis.
Summary updated