Sharper Regret Bounds for Shampoo

Dahngoon Kim, Min-hwan OhNeurIPS 2026

TL;DR

Shampoo is a powerhouse optimizer behind frontier LLMs like Gemini 1.5 Flash, yet on paper, its theoretical guarantees have always looked oddly worse than basic first-order methods. This paper closes that embarrassing gap between theory and practice, proving a regret bound for Shampoo that is 3 to 4 orders of magnitude sharper along real LLM training runs. Along the way, the authors also rescue $\text{Shampoo}^2$—a popular practical variant—from theoretical limbo by introducing a zero-overhead scaling factor that unlocks its very first convergence guarantee.

What Problem Does This Paper Address?

When training massive neural networks, standard optimizers like Adam flatten weight matrices into giant vectors, ignoring their native geometry. Shampoo takes a smarter, curvature-aware (second-order) approach: for an $m \times n$ weight matrix, it maintains smaller left ($m \times m$) and right ($n \times n$) preconditioners—a trick called Kronecker factoring—to capture rich directional curvature without blowing up memory.

Empirically, Shampoo flies; it won the AlgoPerf benchmark and trains industrial LLMs. Theoretically, however, it has been a headache. In online convex optimization, we measure an optimizer's quality by its regret: how much extra cumulative loss it suffers over $T$ steps compared to the single best fixed parameter choice in hindsight. Good optimizers achieve sublinear regret (typically $\mathcal{O}(\sqrt{T})$), meaning their average per-step mistake shrinks to zero.

Yet the only known regret bound for Shampoo (from 2018) was uniformly worse than simpler methods like AdaGrad, penalized by the rank of the gradients ($r_G$). Worse still, practitioners often double Shampoo's matrix exponents—creating $\text{Shampoo}^2$—and slap on heuristic step-size Band-Aids like "learning rate grafting" (stealing the step size from Adam) just to keep it stable. Until now, $\text{Shampoo}^2$ had zero convergence guarantees; standard math yielded a vacuous $\mathcal{O}(T)$ bound.

Methods

The authors overhaul the mathematical analysis of Kronecker-structured preconditioners ($H_t = A_t \otimes B_t$) using two main innovations:

  1. Exploiting Matrix Geometry (Lemma 10): Standard analyses flatten matrices into vectors, measuring parameter distances with the Frobenius norm ($D_2$, the root sum of squared entries). By keeping matrices as matrices during the mirror descent regret decomposition, the authors replace $D_2$ with the much tighter operator norm ($D_{\text{op}}$, the largest singular value) and completely eliminate the gradient rank penalty $\sqrt{r_G}$.
  2. Principled Preconditioner Scaling ($\alpha_t$): In $\text{Shampoo}^2$ (and generalized $\text{Shampoo}^{4p}$ for exponents $p \in (0, \frac{1}{2}]$), the two main terms in the regret bound grow at mismatched rates: $\mathcal{O}(T)$ versus $\mathcal{O}(\log T)$. You cannot balance them with a fixed learning rate, and multiplying by a shrinking scalar breaks standard proofs that require preconditioners to strictly grow over time. The authors reverse-engineer a dynamic scaling factor $\alpha_t$ via a symmetric decomposition of the regret. Better yet, $\alpha_t$ only uses traces and max eigenvalues—byproducts of eigendecompositions Shampoo already computes—adding zero matrix-computation overhead.
Comparison of optimizer regret upper bounds, highlighting the removal of gradient rank dependence and the tighter operator norm in this paper's bounds.

Datasets

To verify their theory on realistic trajectories, the authors train NanoGPT (~124M parameters) and GPT-2 Medium (~345M parameters) on FineWeb-10B, an existing large-scale language modeling dataset. No new benchmarks are introduced.

Key Insights and Ideas

  • Shampoo wasn't theoretically inferior—the old proof was just blind to structure. Treating structured preconditioners as unstructured vectors threw away massive sharpness. With the new bound, Shampoo is finally theoretically competitive with full-matrix AdaGrad and One-Sided Shampoo.
  • Why unscaled $\text{Shampoo}^2$ crashes in the wild. Without grafting or scaling, $\text{Shampoo}^2$ fails because its norm-dependent regret explodes linearly ($\mathcal{O}(T)$) while its dual-norm term creeps up logarithmically. The derived $\alpha_t$ scaling aligns these scales, giving $\widetilde{\mathcal{O}}(\sqrt{T})$ regret and providing a mathematically grounded cousin to heuristic learning rate grafting.
  • All three sources of theoretical improvement show up in real LLMs. The ratio between the old bound and the new bound depends on high gradient rank, spread-out parameter updates ($D_2 / D_{\text{op}} > 1$), and preconditioners having high "effective rank" (not dominated by a single eigenvalue). LLM training trajectories strongly exhibit all three.

Key Results

  • Massive bound tightening: Tracked across preconditioning blocks during real LLM runs, the new Shampoo regret bound is 5,100$\times$ to 40,000$\times$ smaller than the 2018 bound on NanoGPT (after 3,000 steps), and 3,100$\times$ to 51,000$\times$ smaller on GPT-2 Medium (after 2,000 steps).
  • Rescuing $\text{Shampoo}^2$ empirically: On NanoGPT (32,000 steps on FineWeb-10B), unscaled $\text{Shampoo}^2$ stalls out at a poor validation loss of 3.731, just as the $\mathcal{O}(T)$ theory warns. Adding the paper's $\alpha_t$ scaling drops validation loss to 3.257, beating Adam (3.300) and landing within 0.09 of heuristically tuned Adam-grafted $\text{Shampoo}^2$ (3.168) and SOAP (3.196).

Limitations and Future Work

  • Missing deep learning bells and whistles: The proofs live in the online convex optimization world without momentum or weight decay, and they do not cover heuristic learning rate grafting—meaning a small empirical gap (~0.05–0.09 loss) remains between worst-case theoretical scaling ($\alpha_t$) and tuned grafting.
  • Open theoretical questions: It remains unknown whether the $\log T$ factor in $\text{Shampoo}^2$'s $\widetilde{\mathcal{O}}(\sqrt{T})$ bound can be shaved off, or if unscaled $\text{Shampoo}^2$ can ever achieve sublinear regret.
  • Next stop, SOAP: Because the popular optimizer SOAP is essentially $\text{Shampoo}^2$ plus a rotated Adam correction, the authors note their Kronecker regret lemma and scaling technique offer a natural springboard for analyzing SOAP next.

Summary updated

Abstract

Shampoo is a Kronecker-structured second-order optimizer widely used for large-scale deep learning, yet existing regret analyses exhibit an unfavorable dependence on the gradient rank, leading to guarantees that are uniformly weaker than those of optimizers such as AdaGrad and One-sided Shampoo. We provide a substantially sharper regret bound for the full two-sided Shampoo update, yielding bounds that can compete with full-matrix AdaGrad and more recent structured variants such as One-sided Shampoo. We also establish the first sublinear regret guarantee for the commonly implemented variant Shampoo$^2$ by introducing a principled scaling factor. Our analysis holds for a continuum of exponent choices $p \in (0, \frac{1}{2}]$, also providing the first sublinear guarantees for Shampoo$^{4p}$ with exponents other than $p=1/4$.
BibTeX
@inproceedings{kim2026sharper,
  author = {Dahngoon Kim and Min-hwan Oh},
  title = {{Sharper Regret Bounds for Shampoo}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Bd7r0wAbrw},
}
Figure