Papers / Foundations
Shampoo (2018)
Shampoo: Preconditioned Stochastic Tensor Optimization
Preconditions each weight matrix with two small matrices, one for its rows and one for its columns, instead of treating its weights as independent numbers.
Why it matters
It made a structured second-order optimizer practical for deep networks. A distributed version won the external-tuning track of the AlgoPerf training-speed benchmark in 2024, and Muon can be read as Shampoo with the accumulation removed, which leaves an orthogonalized update.
- Year
- 2018
- Authors
- Vineet Gupta, Tomer Koren, Yoram Singer
- Venue
- ICML 2018
- Data
- CIFAR-10
The idea
Full-matrix AdaGrad would capture how all the weights' gradients move together, but for a layer with m×n weights it needs a matrix with (mn)² entries. Shampoo keeps one m×m matrix of accumulated gradient statistics for the rows and one n×n matrix for the columns, and multiplies each gradient by their inverse fourth roots from left and right. The same idea extends to convolution kernels and other tensors, with one small matrix per dimension.
The result
Swapped into existing training code with no other changes, Shampoo lowered the training loss faster than SGD with momentum, AdaGrad and Adam for ResNet and Inception networks on CIFAR-10 and a ResNet on CIFAR-100, and reached lower test perplexity for a Transformer language model on LM1B, while running about as many steps per second.
The data
Also tested on: CIFAR-100 and the One Billion Word language-modeling benchmark (LM1B).
Builds on
- AdaGrad (2010): Gives every weight its own learning rate, shrinking with the gradients it has already seen, so rare but informative features still learn quickly.
Led to
- Muon (2025): Shows that Muon, which orthogonalizes each weight matrix's update, trains large language models with about half the compute AdamW needs.








