Abstract
Despite the empirical dominance of Adam-type optimizers in deep learning, theoretical understanding of their convergence in non-convex settings has remained fragmented and often reliant on restrictive assumptions. This paper introduces UAdam (Unified Adam), a theoretical framework that unifies popular optimizers like Adam, NAdam, and AMSGrad. We establish a convergence rate of $O(1/T)$ for UAdam in non-convex stochastic optimization. Crucially, our analysis demonstrates that convergence depends primarily on the first-order momentum factor ($\beta_1$) being sufficiently close to 1, rather than placing restrictive requirements on the second-order factor ($\beta_2$), bridging the gap between optimization theory and practical hyperparameter tuning.
Introduction
Adam-type optimizers are the workhorse of modern deep learning. However, their theoretical foundation has been a subject of debate. Early studies suggested that vanilla Adam could diverge even on simple convex problems, leading to a proliferation of variants like AMSGrad, Yogi, and AdaBound designed to "fix" these perceived flaws.
These variants were often developed heuristically, and their convergence proofs frequently relied on unrealistic assumptions, such as requiring the second-order momentum factor ($\beta_2$) to be extremely large or assuming strictly bounded gradients. This work seeks to provide a unified analysis that covers almost all major Adam-style optimizers while relaxing these restrictive assumptions, providing a more robust theoretical justification for their success in practice.
The UAdam Framework
The authors introduce UAdam, which integrates two core components into a single mathematical umbrella:
- Stochastic Unified Momentum (SUM): A generalized momentum scheme using an interpolation factor ($\lambda$) to transition between "Heavy Ball" momentum (standard Adam) and "Nesterov Accelerated Gradient" (NAdam).
- Adaptive Learning Rates: UAdam accommodates a wide variety of second-order moment estimations. By selecting different formulas within the framework, UAdam can recover Adam, AMSGrad, AdaBound, AdaFom, or Adan.
To analyze this framework, the authors utilize a Weak Growth Condition (WGC) for stochastic gradient variance. This is significantly more flexible than the standard "bounded variance" assumption, making the theoretical results more applicable to real-world neural network training.
Theoretical Comparison and Results
The primary contribution of this work is a rigorous convergence analysis for non-convex stochastic optimization. The paper establishes a competitive convergence rate of $O(1/T)$ for the squared gradient norm.
As shown in the table above, UAdam achieves a state-of-the-art convergence rate while requiring fewer constraints on the second-moment parameter compared to previous analyses of Adam and its variants.
Key Insights
- The $\beta_2$ Myth: Contrary to previous claims that Adam requires $\beta_2$ to be very close to 1, this analysis shows that UAdam converges regardless of $\beta_2$, provided the first-order momentum ($\beta_1$) is appropriately tuned. This aligns with empirical evidence where practitioners often use $\beta_2 = 0.999$ across diverse tasks.
- Neighborhood Convergence: In general non-convex settings, UAdam converges to a "neighborhood" of a stationary point. The size of this neighborhood is proportional to the gradient noise ($D_0$). If the "Strong Growth Condition" is met (noise vanishes at the stationary point), the algorithm converges exactly to the stationary point.
- Unified Mechanics: By treating Nesterov and Heavy Ball momentum as a spectrum, the authors demonstrate that the underlying convergence mechanics for NAdam and Adam are essentially identical.
Conclusion and Future Work
UAdam provides a powerful theoretical validation for vanilla Adam, suggesting it does not necessarily need "fixing" via complex variants to ensure convergence; rather, it requires proper hyperparameter selection.
Future research directions include extending this analysis to biased gradients, which are common in reinforcement learning and distributed training, and investigating convergence under non-smooth or locally smooth objective functions, which better characterize modern deep learning architectures.
Summary updated