Abstract
This paper investigates the theoretical foundations of the Adam optimizer's empirical success compared to Stochastic Gradient Descent with Momentum (SGDM). By relaxing the standard assumption of uniform smoothness in favor of a more realistic $(L_0, L_1)$-smooth condition, we demonstrate a fundamental "separability" between the two optimizers. We prove that Adam achieves optimal convergence rates in both deterministic and stochastic settings, matching known lower bounds for first-order optimizers. Conversely, we show that SGDM suffers from a higher-order dependence on initial conditions in deterministic environments and can fail to converge entirely in stochastic ones. Our analysis introduces a novel stopping-time technique that establishes Adam's optimality across all hyperparameters and highlights its potential as a parameter-agnostic optimizer.
Introduction
In deep learning practice, the Adam optimizer has become the de facto standard for training complex architectures like Large Language Models (LLMs). However, a persistent gap remains between this empirical preference and classical optimization theory. Traditional analysis often relies on the assumption of "uniform smoothness," where the Hessian of the loss function is globally bounded. Under these conditions, SGDM is often theoretically comparable or even superior to Adam.
This paper addresses this discrepancy by adopting the $(L_0, L_1)$-smoothness framework. In this model, the local smoothness of the landscape is a linear function of the gradient norm—meaning the landscape becomes "sharper" as the gradient grows. This condition more accurately reflects the behavior of neural network loss surfaces. Under this realistic assumption, we provide a theoretical "smoking gun" for Adam's superiority over SGDM.
The $(L_0, L_1)$-Smoothness Framework
The core of our analysis lies in the $(L_0, L_1)$-smooth condition. Unlike traditional $L$-smoothness, which assumes the gradient's rate of change is globally constant, the $(L_0, L_1)$ condition posits that the smoothness is bounded by $L_0 + L_1 \|\nabla f(x)\|$. This allows for the "sharpness" fluctuations observed during the training of deep neural networks, where regions of high gradient often coincide with high curvature.
Theoretical Separability: Adam vs. SGDM
Our primary contribution is the formal proof that Adam and SGDM belong to different performance classes when smoothness is non-uniform.
Deterministic Settings
In deterministic environments, we show that Adam achieves a convergence rate of $O(1/\sqrt{T})$, which matches the theoretical lower bound for deterministic first-order optimizers. In contrast, Gradient Descent with Momentum (GDM) exhibits a lower bound with a higher-order dependence on the initial function value gap ($\Delta_1$). This implies that GDM is significantly slower than Adam when starting from poor initializations in non-uniformly smooth landscapes.
Stochastic Settings and the Failure of SGDM
The disparity becomes even more pronounced in stochastic settings. We prove that Adam's convergence rate upper bound matches the $O(\epsilon^{-4})$ lower bound for stochastic first-order optimizers.
More strikingly, we present a "No-Go" theorem for SGDM. We construct specific $(L_0, L_1)$-smooth functions where the expected gradient norm of SGDM remains bounded away from zero (specifically $\geq L_1 \Delta_1$), regardless of the chosen learning rate or momentum. This demonstrates that there are realistic scenarios where SGDM fundamentally fails to reach a stationary point, while Adam continues to function optimally.
Methodological Innovations
To achieve these results, we introduced two key mathematical techniques:
- Novel Lyapunov Function: For deterministic analysis, we developed a specialized Lyapunov function to track the system's energy. This allowed us to rigorously integrate Adam's adaptive learning rate into the convergence proof.
- Stopping-Time Technique: To navigate the complexities of stochastic noise, we utilized a technique based on "stopping times." This approach allows the analysis to handle the variance of the gradient estimates more effectively, proving that Adam can match lower bounds across all problem hyperparameters.
Adaptivity and Parameter-Agnosticism
Adam’s success is rooted in its adaptive mechanism. In sharp regions of the landscape (where the gradient is large), Adam effectively reduces the effective step size, preventing the oscillations or divergent behavior that plague fixed-rate optimizers like SGDM.
Furthermore, we demonstrate that with a specific hyperparameter scheduler, Adam becomes "parameter-agnostic." It can converge without prior knowledge of the specific smoothness constants ($L_0, L_1$) of the objective function. This property is of significant independent interest for practical applications where these constants are unknown and difficult to estimate.
Limitations and Future Directions
While this work provides a strong theoretical basis for Adam's performance, some areas remain for future exploration:
- Coordinate-wise Adaptivity: Our proofs primarily focus on a "scalar" version of Adam. While we anticipate the results extend to the standard per-coordinate version, a formal coordinate-wise analysis is an unresolved challenge.
- Hyperparameter Sensitivity: Although Adam can be parameter-agnostic with specific schedulers, practical performance still often requires tuning $\beta_1, \beta_2,$ and $\eta$.
- Noise Distributions: Our analysis assumes affine noise variance. Future work could investigate the impact of more heavy-tailed noise distributions on these convergence properties.
Conclusion
By moving beyond the limitations of uniform smoothness, this paper provides a rigorous theoretical justification for the empirical dominance of Adam. Our findings show that Adam's adaptivity is not just a heuristic improvement but a fundamental requirement for optimal convergence in the complex, non-uniformly smooth landscapes of modern deep learning.
Summary updated