TL;DR
Standard theory suggests Adam and SGD should perform similarly, yet Adam dominates in practice. This paper reveals that Adam’s secret weapon is its ability to exploit the $\ell_\infty$-geometry of the loss landscape—a non-rotation-invariant property that makes the "smoothness" of the loss much more favorable for coordinate-wise updates than for the global updates used by SGD.
The Mystery of Adam vs. SGD
In the world of deep learning, Adam is the undisputed king for training Large Language Models (LLMs), while SGD often lags behind. However, theoretical analysis has struggled to explain this gap. Most existing proofs show that both Adam and SGD converge at the same minimax-optimal rate of $O(T^{-1/4})$ for non-convex problems.
The authors point out a fundamental difference: SGD is rotation-equivariant, meaning if you rotate the entire loss landscape, SGD’s path stays the same (just rotated). Adam is only permutation-equivariant; it cares deeply about which direction is "up" on a specific coordinate axis. The authors hypothesize that the loss landscapes of real-world models like GPT-2 possess a specific "coordinate-aligned" structure that Adam exploits, but which disappears if the landscape is rotated.
Uncovering Coordinate-Wise Adaptivity
The researchers introduce a new framework for analyzing Adam based on $\ell_\infty$-smoothness rather than the standard $\ell_2$-smoothness.
- New Complexity Metric: They propose using the $(1, 1)$-norm of the Hessian matrix ($\|\nabla^2 L(x)\|_{1,1}$) as a measure of smoothness. This metric captures how much the gradient changes along individual coordinates.
- Theoretical Convergence: They provide a new convergence analysis for Adam (specifically the RMSProp variant where $\beta_1=0$) and a generalized "Blockwise Adam." This analysis shows that Adam’s speed depends on this new coordinate-wise smoothness constant, which can be much smaller than the global spectral norm used to bound SGD.
- Rotation Experiments: To prove Adam relies on coordinate alignment, they designed a "RandPerm" operation—a way to efficiently rotate the high-dimensional parameter space of an LLM. They compared Adam on original losses vs. rotated losses.
- AdaSGD: They used a rotation-equivariant version of adaptive gradient descent (AdaSGD) as a control to show that adaptivity alone isn't enough; it must be coordinate-wise adaptivity.
Key Insights and Results
The "Rotation Curse"
When the loss landscape of GPT-2 is rotated, Adam’s performance tanks, becoming even slower than SGD. This proves that Adam’s advantage isn't just about "being adaptive"—it's about being adaptive to the specific axes chosen by the model's architecture.
As shown above, on the original loss, Adam converges significantly faster than SGD and AdaSGD. However, on the rotated loss, Adam's convergence is much slower, confirming it exploits non-rotation-invariant properties.
Coordinate-wise Smoothness is "Cheaper"
In practice, the $(1, 1)$-norm of the Hessian (normalized by dimension) is significantly smaller than the spectral norm. The researchers empirically verified that the $(1, 1)$-norm of the Hessian positively correlates with the final training loss. When this norm is small (as in standard LLM training), Adam excels.
For GPT-2, the estimated value for Adam's smoothness metric was ~2.35, while the rotated version jumped to ~14.37. The table demonstrates that higher degrees of rotation ($\mathcal{R}_i$) increase the $(1,1)$-norm, which directly correlates with higher final loss.
Generalization to Vision and Blockwise Adaptivity
Even in vision models like ResNet18 on CIFAR-10, Adam outperformed rotated Adam and SGD, suggesting that the "nice" $\ell_\infty$-geometry is a common feature of deep learning models, not just Transformers.
Furthermore, the paper extends the theory to "Blockwise Adam" (similar to the recently proposed Adam-mini). They show that as long as the blocks are chosen correctly, you can maintain most of Adam's benefits while saving memory.
Limitations and Future Work
The primary limitation acknowledged is the analysis of momentum ($\beta_1 > 0$). While the paper provides a rigorous proof for the $\beta_1 = 0$ case (RMSProp), the interaction between momentum and coordinate-wise adaptivity is mathematically complex. The authors hypothesize that current theoretical tools are missing some features of the loss landscape needed to fully explain why momentum helps in practice.
Future work could involve investigating why deep learning architectures naturally produce these coordinate-aligned, $\ell_\infty$-smooth landscapes and how we might design architectures to further exploit this geometry.
Summary updated