While Adam is the undisputed "go-to" optimizer for deep learning, a persistent theoretical gap has shadowed its practical success: its proven convergence rate has historically been slower than the absolute mathematical floor for first-order methods. A recent paper finally closes this gap, proving that Adam achieves the optimal iteration complexity of $O(\epsilon^{-4})$ under standard assumptions, matching both the performance of Stochastic Gradient Descent (SGD) and the theoretical lower bound.
The Theoretical Speed Limit
In optimization theory, "iteration complexity" measures how many steps an algorithm needs to find a point where the gradient is nearly zero (an $\epsilon$-stationary point). For years, researchers have established that the absolute "speed limit" for any stochastic first-order optimizer—methods relying solely on gradient information—is $O(\epsilon^{-4})$.
While SGD was proven to hit this limit, Adam seemed to lag behind in theory. Previous convergence proofs for Adam either resulted in a much slower rate (such as $O(\epsilon^{-6})$) or relied on the unrealistic assumption that gradients are "universally bounded" (meaning they never exceed a certain magnitude). The authors set out to answer a fundamental question: Is Adam inherently slower than SGD, or have our mathematical proofs simply lacked the necessary sharpness?
Overcoming the Analytical Hurdles
The authors provide a rigorous convergence analysis relying on only two standard, realistic assumptions:
- $L$-smoothness: The gradient of the function does not change too abruptly.
- Bounded Noise Variance: The "noise" in the stochastic gradient estimates is finite.
To bridge the theoretical gap without relying on bounded gradients, the researchers introduced three novel technical strategies:
- Disentangling Stochasticity: In Adam, the learning rate depends on past gradients, which are themselves random. This creates a complex mathematical entanglement. The authors used a surrogate adaptive learning rate and a new auxiliary function to cleanly separate this relationship.
- Potential Functions for Momentum: To handle the mismatch between the current gradient and the "momentum" term (a weighted average of past gradients), they employed a specific potential function ($u_t$) inspired by state-of-the-art SGD with Momentum (SGDM) analysis.
- Coordinate-wise Divide-and-Conquer: Because Adam scales every dimension of the gradient differently, the authors analyzed coordinates separately. They split their logic based on whether a specific coordinate's gradient was large or small relative to the noise.
Key Insights and Practical Implications
By applying these techniques, the paper establishes an upper bound of $O(\epsilon^{-4})$, matching the lower bound established for all first-order optimizers. This is the first work to prove Adam hits this mark using only standard smoothness and variance assumptions.
Several key insights emerge from this theoretical breakthrough:
- Closing the Logarithmic Gap: Previous "tight" bounds for Adam often included an extra $\log(1/\epsilon)$ factor. This paper shows that with the right hyperparameter scaling—specifically $\eta = \Theta(1/\sqrt{T})$ and $\beta_2 = 1 - \Theta(1/T)$—that extra factor disappears.
- Theory Meets Practice: The hyperparameter settings required to achieve this optimal theoretical rate (a very small learning rate and a $\beta_2$ very close to 1) align remarkably well with the default settings used in popular deep learning libraries like PyTorch (where $\beta_2 = 0.999$).
- Explaining Adam's Edge over AdaGrad: The authors suggest that Adam's superior performance over AdaGrad in practice might be explained by the fact that Adam's "constant" effective learning rate avoids the additional logarithmic slowdown inherent in AdaGrad's diminishing step sizes.
While the paper is primarily theoretical, the authors conducted experiments on CIFAR-10 (training ResNet18 and VGG13) and WikiText2 (training a two-layer Transformer) to validate how the choice of the momentum parameter ($\beta_1$) affects optimization speed in real-world scenarios.
Limitations and Open Challenges
Despite this significant theoretical leap, the authors acknowledge a few remaining challenges:
- Dimension Dependence: The current bounds still scale with the dimension $d$ of the problem. In contrast, SGD's complexity is dimension-independent. Removing this $d$-dependence for Adam remains a significant open challenge.
- The Momentum Paradox: Theoretically, the tightest "worst-case" bound is achieved when momentum ($\beta_1$) is zero. However, empirical evidence overwhelmingly shows momentum is crucial in practice. The current analysis does not yet capture the benefits of momentum, likely because those benefits manifest in specific types of loss landscapes rather than the worst-case scenarios analyzed here.
- Hyperparameter Tuning: The proof relies on hyperparameters that depend on the total number of iterations $T$. Finding a way to achieve this optimal rate with "anytime" parameters—which do not require knowing $T$ in advance—is a suggested next step for future research.
Ultimately, this paper provides a much-needed theoretical foundation for Adam, proving that its mathematical guarantees are just as robust as its empirical performance.
Summary updated