Introduction
While Adam is the gold standard for training large language models (LLMs), theoretical explanations for why it consistently outperforms Stochastic Gradient Descent (SGD) have remained elusive. This paper argues that Adam’s "secret sauce" is its ability to exploit a specific coordinate-aligned geometry in the loss landscape—known as $\ell_\infty$-smoothness—which standard rotation-invariant theories overlook. By demonstrating that Adam’s performance collapses when the loss landscape is rotated, the authors prove that Adam is uniquely tuned to the "grid-like" structure of modern neural networks.
The Gap in Optimization Theory
In the world of optimization, SGD is the reliable baseline, while Adam is the high-performance engine powering almost all LLMs. However, on paper, existing convergence theories suggest both algorithms hit the same "worst-case" speed limits.
The authors point out a glaring gap: standard theory assumes loss landscapes are "smooth" in a way that doesn't care about coordinates (i.e., they are rotation-invariant). But Adam is fundamentally coordinate-wise, scaling updates for every single parameter independently. If the loss landscape were truly rotation-invariant, Adam’s coordinate-wise tricks shouldn't offer a systematic advantage. The researchers set out to prove that real-world loss landscapes, like those of GPT-2, are not rotation-invariant, and that Adam is specifically designed to exploit this "non-round" geometry.
Methods: The Rotation Test and $\ell_\infty$-Smoothness
To investigate this, the researchers utilized a combination of "stress-test" experiments and new mathematical frameworks:
- The Rotation Test: They compared Adam’s performance on original loss functions versus "rotated" versions. Since SGD is rotation-equivariant (it doesn't care which way is "up" or "left" in parameter space), its trajectory remains the same after rotation. Adam, however, is only permutation-equivariant. If Adam slows down significantly after a rotation, it proves it was relying on the original coordinate alignment.
- New Smoothness Definitions: They moved away from standard $\ell_2$-smoothness (which treats all directions equally) to $\ell_\infty$-smoothness (coordinate-wise smoothness).
- Complexity Metric: They proposed using the $(1,1)$-norm of the Hessian matrix as a measure of how "nice" a landscape is for Adam.
- Hessian Estimation: To measure these properties in massive models like GPT-2 (124M parameters), they developed an efficient algorithm using Cauchy random vectors and a "median trick" to estimate the $(1,1)$-norm of the Hessian without computing the full matrix.
Key Insights and Results
The authors validated their theory across synthetic quadratic losses, language modeling (GPT-2 on OpenWebText), and computer vision (ResNet-18 on CIFAR-10).
Adam is a "Grid-Follower" The "aha moment" comes from the rotation experiments. When the researchers rotated the loss landscape, Adam’s convergence speed plummeted, becoming even slower than standard adaptive SGD variants. This confirms that the loss landscapes of deep models have a "favorable" orientation that aligns with our parameter coordinates.
As seen in the training and evaluation loss trajectories, "Rotated Adam" performs significantly worse than standard Adam and even worse than AdaSGD. This proves that adaptivity alone isn't enough—it must be coordinate-wise adaptivity.
The Hessian Tells the Story The $(1,1)$-norm of the Hessian proved to be a much better predictor of Adam's speed than the standard spectral norm. In GPT-2, this norm is naturally small but explodes by a factor of ~6x (from 2.35 to 14.37) when the landscape is rotated.
The table above demonstrates this relationship clearly: as the $(1,1)$-norm of the Hessian increases due to various rotations ($\mathcal{R}_1$ through $\mathcal{R}_4$), the resulting loss achieved by Adam degrades proportionally. This stability at scale is a direct result of Adam's coordinate-wise normalization, which prevents any single "sharp" coordinate from blowing up the entire update.
Limitations and Future Work
While the paper provides a breakthrough in understanding Adam, the authors acknowledge some open questions:
- The Role of Momentum: The current theoretical analysis focuses on the case where $\beta_1 = 0$ (RMSProp-style). While they hypothesize that momentum ($\beta_1 > 0$) helps, the current $\ell_\infty$ framework doesn't fully capture its specific benefits yet.
- Why is the Landscape "Nice"? The paper proves that the loss landscape is coordinate-aligned, but it doesn't explain why architectural choices (like LayerNorm or Attention) produce this specific geometry.
- Computational Cost of Rotation: Rotating a 124M parameter model is incredibly difficult. The authors used a clever "RandPerm" trick to simulate rotation, but more exhaustive tests on different types of rotations could yield further insights.
Summary updated