mlsanityData to 14 Oct 2026

A Distributed Data-Parallel PyTorch Implementation of the Distributed Shampoo Optimizer for Training Neural Networks At-Scale

arXiv 2309.06497 ↗First posted 12 Sep 2023cs.LG cs.DC cs.MScited by 77

Not on the map. Why?

Abstract (arXiv)

Shampoo is an online and stochastic optimization algorithm belonging to the AdaGrad family of methods for training neural networks. It constructs a block-diagonal preconditioner where each block consists of a coarse Kronecker product approximation to full-matrix AdaGrad for each parameter of the neural network. In this work, we provide a complete description of the algorithm as well as the performance optimizations that our implementation leverages to train deep networks at-scale in PyTorch. Our implementation enables fast multi-GPU distributed data-parallel training by distributing the memory and computation associated with blocks of each parameter via PyTorch's DTensor data structure and performing an AllGather primitive on the computed search directions at each iteration. This major performance enhancement enables us to achieve at most a 10% performance reduction in per-step wall-clock time compared against standard diagonal-scaling-based adaptive gradient methods. We validate our implementation by performing an ablation study on training ImageNet ResNet50, demonstrating Shampoo's superiority over standard training recipes with minimal hyperparameter tuning.

Key facts. Cited by 77 papers in the map (data through 14 Oct 2026). Builds on 40 of its 85 references that are in the map. First posted on arXiv 12 Sep 2023.

Builds on

40 of 85 references.

References · 40

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  5. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  6. 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,209
  7. 2016Optimization Methods for Large-Scale Machine Learningcited by 1,150
  8. 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 905
  9. 2019On the Convergence of Adam and Beyondcited by 841
  10. 2015Optimizing Neural Networks with Kronecker-factored Approximate Curvaturecited by 796
  11. 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 674
  12. 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 660
28 more
  1. 2014New insights and perspectives on the natural gradient methodcited by 443
  2. 2018Bag of Tricks for Image Classification with Convolutional Neural Networkscited by 431
  3. 2018Shampoo: Preconditioned Stochastic Tensor Optimizationcited by 426
  4. 2019Deep Learning Recommendation Model for Personalization and Recommendation Systemscited by 327
  5. 2021ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learningcited by 256
  6. 2019Limitations of the Empirical Fisher Approximation for Natural Gradient Descentcited by 217
  7. 2015Compressing Neural Networks with the Hashing Trickcited by 150
  8. 2018Fast Approximate Natural Gradient Descent in a Kronecker-factored Eigenbasiscited by 146
  9. 2016A Kronecker-factored approximate Fisher matrix for convolution layerscited by 141
  10. 2021Software-Hardware Co-design for Fast and Scalable Training of Deep Learning Recommendation Modelscited by 78
  11. 2019Fast Convergence of Natural Gradient Descent for Overparameterized Neural Networkscited by 76
  12. 2015Newton Sketch: A Linear-time Optimization Algorithm with Linear-Quadratic Convergencecited by 72
  13. 2019Compositional Embeddings Using Complementary Partitions for Memory-Efficient Recommendation Systemscited by 68
  14. 2020Practical Quasi-Newton Methods for Training Deep Neural Networkscited by 68
  15. 2022Understanding AdamW through Proximal Methods and Scale-Freenesscited by 46
  16. 2018A Progressive Batching L-BFGS Method for Machine Learningcited by 45
  17. 2017Newton-Type Methods for Non-Convex Optimization Under Inexact Hessian Informationcited by 41
  18. 2017Second-Order Optimization for Non-Convex Machine Learning: An Empirical Studycited by 35
  19. 2022On the Factory Floor: ML Engineering for Industrial-Scale Ads Recommendation Modelscited by 34
  20. 2016A Multi-Batch L-BFGS Method for Machine Learningcited by 31
  21. 2017Adaptive Sampling Strategies for Stochastic Optimizationcited by 30
  22. 2017AdaBatch: Adaptive Batch Sizes for Training Deep Neural Networkscited by 29
  23. 2021Tensor Normal Training for Deep Learning Modelscited by 24
  24. 2016Sub-sampled Newton Methods with Non-uniform Samplingcited by 21
  25. 2020Momentum via Primal Averaging: Theoretical Insights and Learning Rate Schedules for Non-Convex Optimizationcited by 21
  26. 2017An Investigation of Newton-Sketch and Subsampled Newton Methodscited by 18
  27. 2019Quasi-Newton Methods for Machine Learning: Forget the Past, Just Samplecited by 12
  28. 2022Low-Rank Updates of Matrix Square Rootscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 2; 2024: 11; 2025: 30; 2026: 34.

77 papers.

Sort:

By area:

  1. 2024Old Optimizer, New Norm: An Anthologycited by 193
  2. 2024SOAP: Improving and Stabilizing Shampoo using Adamcited by 192
  3. 2025The Polar Express: Optimal Matrix Sign Methods and Their Application to the Muon Algorithmcited by 110
  4. 2025NorMuon: Making Muon more efficient and scalablecited by 84
  5. 2024Modular Duality in Deep Learningcited by 77
  6. 2025Dion: Distributed Orthonormalized Updatescited by 68
  7. 2024MARS: Unleashing the Power of Variance Reduction for Training Large Modelscited by 64
  8. 2024A New Perspective on Shampoo's Preconditionercited by 59
  9. 2025ASGO: Adaptive Structured Gradient Optimizationcited by 57
  10. 2025Implicit Bias of Spectral Descent and Muon on Multiclass Separable Datacited by 41
  11. 2025MuonBP: Faster Muon via Block-Periodic Orthogonalizationcited by 35
  12. 2024LoRA Done RITE: Robust Invariant Transformation Equilibration for LoRA Optimizationcited by 32
38 more
  1. 2025Accelerating Neural Network Training: An Analysis of the AlgoPerf Competitioncited by 32
  2. 2025COSMOS: A Hybrid Adaptive Optimizer for Memory-Efficient Training of LLMscited by 30
  3. 2024Can We Remove the Square-Root in Adaptive Gradient Methods? A Second-Order Perspectivecited by 25
  4. 2025Purifying Shampoo: Investigating Shampoo's Heuristics by Decomposing its Preconditionercited by 23
  5. 2025Hyperparameter Transfer Enables Consistent Gains of Matrix-Preconditioned Optimizers Across Scalescited by 21
  6. 2024SWAN: SGD with Normalization and Whitening Enables Stateless LLM Trainingcited by 20
  7. 2025How Muon's Spectral Design Benefits Generalization: A Study on Imbalanced Datacited by 19
  8. 2025A Stable Whitening Optimizer for Efficient Neural Network Trainingcited by 18
  9. 2026Mousse: Rectifying the Geometry of Muon with Curvature-Aware Preconditioningcited by 17
  10. 2025Understanding and Improving Shampoo and SOAP via Kullback-Leibler Minimizationcited by 16
  11. 2025What Really Matters in Matrix-Whitening Optimizers?cited by 16
  12. 2026RMNP: Row-Momentum Normalized Preconditioning for Scalable Matrix-Based Optimizationcited by 15
  13. 2026Symmetry-Compatible Principle for Optimizer Design: Embeddings, LM Heads, SwiGLU MLPs, and MoE Routerscited by 11
  14. 2025When, Where and Why to Average Weights?cited by 8
  15. 2025Structure-Preserving Digital Twins via Conditional Neural Whitney Formscited by 8
  16. 2025FedMuon: Federated Learning with Bias-corrected LMO-based Optimizationcited by 8
  17. 2025SNOO: Step-K Nesterov Outer Optimizer - The Surprising Effectiveness of Nesterov Momentum Applied to Pseudo-Gradientscited by 8
  18. 2026Clarifying Shampoo: Adapting Spectral Descent to Stochasticity and the Parameter Trajectorycited by 8
  19. 2026Accelerating LLM Pre-Training through Flat-Direction Dynamics Enhancementcited by 8
  20. 2025How Memory in Optimization Algorithms Implicitly Modifies the Losscited by 6
  21. 2024DEPT: Decoupled Embeddings for Pre-training Language Modelscited by 5
  22. 2025Beyond the Mean: Fisher-Orthogonal Projection for Natural Gradient Descent in Large Batch Trainingcited by 5
  23. 2025Smoothing DiLoCo with Primal Averaging for Faster Training of LLMscited by 5
  24. 2024Stochastic Hessian Fittings with Lie Groupscited by 4
  25. 2025WeatherMesh-3: Fast and accurate operational global weather forecastingcited by 4
  26. 2025DeMuon: A Decentralized Muon for Matrix Optimization over Graphscited by 4
  27. 2026PRISM: Distribution-free Adaptive Computation of Matrix Functions for Accelerating Neural Network Trainingcited by 4
  28. 2026Canzona: A Unified, Asynchronous, and Load-Balanced Framework for Distributed Matrix-based Optimizerscited by 4
  29. 2026Spectral Scaling Laws of Muoncited by 4
  30. 2025Noise-Adaptive Layerwise Learning Rates: Accelerating Geometry-Aware Optimization for Deep Neural Network Trainingcited by 3
  31. 2026Phases of Muon: When Muon Eclipses SignSGDcited by 3
  32. 2026DynMuon: A Dynamic Spectral Shaping View of Muoncited by 3
  33. 2026SOAP-Bubbles: Structured Weight Uncertainty for Neural Networkscited by 3
  34. 2026DMuon: Efficient Distributed Muon Training with Near-Adam Overheadcited by 3
  35. 2024Memory-Efficient 4-bit Preconditioned Stochastic Optimizationcited by 2
  36. 2025Matryoshka Model Learning for Improved Elastic Student Modelscited by 2
  37. 2025Understanding SOAP from the Perspective of Gradient Whiteningcited by 2
  38. 2026DASH: Faster Shampoo via Batched Block Preconditioning and Efficient Inverse-Root Solverscited by 2

50 most cited of 77 All 77 (JSON)