TL;DR
This paper provides a first-of-its-kind unified theoretical framework for analyzing adaptive optimizers like AdaGrad and Shampoo. It reveals a surprising "less is more" result: highly structured (and computationally cheaper) preconditioners can actually achieve better convergence rates than their complex, full-matrix counterparts. This challenges the long-held belief that simpler methods are merely "approximations" of a full-matrix ideal.
What Problem Does This Paper Address?
In modern machine learning, adaptive optimizers (like Adam or AdaGrad) are essential for training massive models. These algorithms use a "preconditioner"—a matrix that scales the gradient to navigate the loss landscape more effectively.
The "gold standard" has traditionally been full-matrix AdaGrad, which uses a complete $d \times d$ matrix to capture correlations between all parameters. However, for a model with millions of parameters, this is computationally impossible. Researchers usually settle for "structured" versions—like diagonal AdaGrad (scaling each parameter individually) or Shampoo (using Kronecker products)—viewing them as necessary but inferior approximations made for the sake of efficiency.
The authors tackle two main gaps:
- Lack of Unity: Existing analyses for these different structures were fragmented and handled on a case-by-case basis.
- The Approximation Fallacy: They question whether "more adaptivity" (less structure) always leads to better convergence.
Methods
The authors introduce a comprehensive theoretical framework based on the concept of well-structured preconditioners.
- Subalgebras as Structures: They define preconditioner sets using the mathematical concept of matrix subalgebras. This allows them to treat diagonal matrices, layer-wise scalings, and Kronecker-factored matrices (like those in Shampoo) under one umbrella.
- Unified Regret Bound: They derive a single "master" regret bound that applies to any optimizer fitting their definition.
- One-sided Shampoo: They introduce and analyze a "one-sided" variant of the Shampoo algorithm. While standard Shampoo uses two smaller matrices to approximate a large one, the one-sided version uses just one, making it even cheaper to compute.
- Adaptive Gradient Norm: They define a new metric to measure the "magnitude" of gradients relative to the chosen structure, which is crucial for their unified analysis.
Datasets
As a theory-focused paper, the authors primarily use a synthetic linear regression problem designed to test specific mathematical properties.
- The problem involves a $10^3 \times 10^3$ matrix ($10^6$ parameters) where the Hessian (the "shape" of the loss function) has a specific spectral structure.
- This setup allows them to precisely control the "difficulty" of the optimization and verify if their theoretical predictions about convergence rates hold true in practice.
Key Insights and Ideas
- The Fundamental Trade-off: The paper reveals that choosing a preconditioner structure involves a tug-of-war. A more complex structure (like a full matrix) makes the "gradient term" in the error bound smaller, but it simultaneously makes the "domain diameter" (how far the optimizer has to travel) larger. Sometimes, the increase in the diameter term outweighs the benefit of the better gradient scaling.
- Structure as a Feature, Not a Bug: Structured preconditioners aren't just "cheap approximations." By restricting the search space of the preconditioner, they can actually provide better "regularization" for the optimization process.
- One-sided Shampoo is a Sleeper Hit: The authors show that one-sided Shampoo is not just a faster version of full-matrix AdaGrad; it can be fundamentally better in terms of the number of steps required to converge for certain classes of problems.
Key Results
- Improved Rates for Shampoo: The authors provide a new regret bound for one-sided Shampoo that is strictly better than previous bounds for the standard two-sided Shampoo.
- Theoretical Superiority: For a specific class of functions (Hessian with bounded trace and spectral norm), they prove that one-sided Shampoo achieves a convergence rate of $1/T$, while full-matrix AdaGrad and diagonal AdaGrad are significantly slower (scaling with the dimension of the problem).
- Experimental Validation: In their synthetic tests, one-sided Shampoo significantly outperformed full-matrix AdaGrad, diagonal AdaGrad, and AdaGrad-Norm in both the "last iterate" loss and "average" loss, confirming that "more adaptivity" can indeed be harmful.
Limitations and Future Work
- Convexity Constraint: The current unified analysis is strictly for convex optimization. While this provides deep insights, most modern deep learning problems are non-convex. Extending this framework to the non-convex regime is a major next step.
- Identifying New Structures: The authors suggest that their "subalgebra" approach opens the door to discovering entirely new types of structured preconditioners that might be even better suited for specific neural network architectures (like Transformers).
- Stochastic Noise: While they address stochastic noise, the interplay between preconditioner structure and the specific noise patterns found in real-world mini-batch gradients deserves further empirical study.
Summary updated