Abstract
While the Adam optimizer is the standard for training large-scale neural networks, its theoretical convergence guarantees have historically relied on the restrictive and often unrealistic assumption of globally bounded gradients. This paper bridges the gap between theory and practice by establishing convergence for Adam under a "generalized smoothness" framework. We prove that Adam achieves a gradient complexity of $O(\epsilon^{-4})$ without requiring globally bounded gradients and introduce a variance-reduced variant, VRAdam, which improves this complexity to $O(\epsilon^{-3})$. Our results provide a more robust mathematical foundation for Adam that aligns with the empirical realities of deep learning loss landscapes.
1. Introduction
The Adam optimizer is the ubiquitous choice for training Transformers and Large Language Models (LLMs). Despite its practical dominance, a significant disconnect exists between its empirical success and its theoretical justification. Most existing proofs for Adam’s convergence assume that the objective function is Lipschitz continuous, meaning the gradient (or "slope") of the loss function is globally bounded by a constant.
In practice, deep learning loss landscapes are rarely so well-behaved. Functions involving polynomials or exponentials—common components in neural architectures—often exhibit "spiky" regions where gradients can explode. This paper addresses this discrepancy by providing a rigorous convergence proof for Adam under relaxed assumptions that better reflect the actual conditions of deep neural network training.
2. Methodology
2.1 Generalized Smoothness
To move beyond the limitation of globally bounded gradients, the authors adopt a "generalized smoothness" framework. Instead of assuming the gradient changes at a constant rate everywhere, they assume that the Hessian norm (the rate of change of the gradient) is bounded by a sub-quadratic function of the gradient norm. This "local smoothness" approach covers a much broader and more realistic class of functions than traditional Lipschitz continuity.
2.2 The Contradiction Argument
Proving convergence without assuming bounded gradients presents a mathematical challenge: if the gradients are not bounded, the algorithm's trajectory could theoretically become unstable. To solve this, the authors employ a circular proof strategy using a contradiction argument. They demonstrate that if the algorithm converges, the gradients must remain bounded along the optimization trajectory. By showing that the adaptive step size of Adam naturally regulates the trajectory, they prove that the gradients do not explode, thereby ensuring convergence.
2.3 VRAdam: Variance-Reduced Adam
Building on these theoretical insights, the paper proposes VRAdam (Variance-Reduced Adam). Inspired by the STORM algorithm, VRAdam incorporates a small correction term into the momentum update to reduce the variance (noise) of stochastic gradients. This modification allows the algorithm to achieve a faster theoretical convergence rate than standard Adam.
3. Key Results
3.1 Convergence Complexity
Under the relaxed assumptions of generalized smoothness, the authors establish the following:
- Standard Adam: Achieves a complexity of $O(\epsilon^{-4})$ to reach an $\epsilon$-stationary point (where the gradient is near zero). This matches the best-known rates for Adam even under much stricter, less realistic assumptions.
- VRAdam: Achieves an accelerated complexity of $O(\epsilon^{-3})$. This theoretical speedup suggests that variance reduction techniques can significantly enhance the efficiency of adaptive optimizers.
3.2 Dimension-Free Analysis
Crucially, the results are "dimension-free." Unlike previous analyses where performance guarantees might degrade as the number of parameters ($d$) increases, these bounds remain stable. This is particularly relevant for modern AI, where models frequently reach billions of parameters.
3.3 Robustness to Hyperparameters
While theoretical models often suggest that Adam’s performance is highly sensitive to the stability constant $\lambda$ (typically set to $10^{-8}$), the authors' analysis and preliminary experiments on CIFAR-10 (using ResNet and CNN architectures) confirm that the algorithm is remarkably robust to this choice. Their proof accounts for $\lambda$ without requiring it to be tuned to specific problem parameters.
4. Discussion and Limitations
While this work provides a more "honest" foundation for Adam, several open questions remain. The current proof assumes that gradient noise is either almost surely bounded or sub-Gaussian; future work aims to relax this to the more standard "bounded variance" assumption.
Furthermore, while the paper proves that Adam works under realistic conditions, it does not fully resolve why Adam often outperforms non-adaptive methods like SGD on specific architectures like Transformers. Since non-adaptive SGD can achieve a similar $O(\epsilon^{-4})$ rate under these conditions, the specific "secret sauce" of Adam’s superior practical performance remains a fertile ground for future research.
5. Conclusion
By stripping away the unrealistic requirement of globally bounded gradients, this research provides a rigorous theoretical validation for the most popular optimizer in deep learning. The introduction of VRAdam further points toward potential algorithmic improvements that could accelerate the training of next-generation AI models.
Summary updated