4-bit Shampoo for Memory-Efficient Network Training
摘要
Second-order optimizers, maintaining a matrix termed a preconditioner, are superior to first-order optimizers in both theory and practice. The states forming the preconditioner and its inverse root restrict the maximum size of models trained by second-order optimizers. To address this, compressing 32-bit optimizer states to lower bitwidths has shown promise in reducing memory usage. However, current approaches only pertain to first-order optimizers. In this paper, we propose the first 4-bit second-order optimizers, exemplified by 4-bit Shampoo, maintaining performance similar to that of 32-bit ones. We show that quantizing the eigenvector matrix of the preconditioner in 4-bit Shampoo is remarkably better than quantizing the preconditioner itself both theoretically and experimentally. By rectifying the orthogonality of the quantized eigenvector matrix, we enhance the approximation of the preconditioner's eigenvector matrix, which also benefits the computation of its inverse 4-th root. Besides, we find that linear square quantization slightly outperforms dynamic tree quantization when quantizing second-order optimizer states. Evaluation on various networks for image classification and natural language modeling demonstrates that our 4-bit Shampoo achieves comparable performance to its 32-bit counterpart while being more memory-efficient.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- COSMOS: A Hybrid Adaptive Optimizer for Efficient Training of Large Language Models 引用了 GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection
- DASH: Faster Shampoo via Batched Block Preconditioning and Efficient Inverse-Root Solvers 引用了 Purifying Shampoo: Investigating Shampoo's Heuristics by Decomposing its Preconditioner
- DASH: Faster Shampoo via Batched Block Preconditioning and Efficient Inverse-Root Solvers 引用了 Memory-Efficient 4-bit Preconditioned Stochastic Optimization
- Purifying Shampoo: Investigating Shampoo's Heuristics by Decomposing its Preconditioner 引用了 GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection 引用了 8-bit Optimizers via Block-wise Quantization
- Memory-Efficient 4-bit Preconditioned Stochastic Optimization 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Memory-Efficient 4-bit Preconditioned Stochastic Optimization 引用了 8-bit Optimizers via Block-wise Quantization
- Memory-Efficient 4-bit Preconditioned Stochastic Optimization 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Memory-Efficient 4-bit Preconditioned Stochastic Optimization 引用了 GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection
- Mitigating Staleness in Asynchronous Pipeline Parallelism via Basis Rotation 引用了 Purifying Shampoo: Investigating Shampoo's Heuristics by Decomposing its Preconditioner
- Mitigating Staleness in Asynchronous Pipeline Parallelism via Basis Rotation 引用了 GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection
引用它的顶会 Paper9
- COSMOS: A Hybrid Adaptive Optimizer for Efficient Training of Large Language ModelsLiming Liu, Zhenghao Xu, Zixuan Zhang, Hao Kang 等ICLR 2026 · 27 次引用
- Purifying Shampoo: Investigating Shampoo's Heuristics by Decomposing its PreconditionerRuna Eschenhagen, Aaron Defazio, Tsung-Hsien Lee, Richard E. Turner 等NeurIPS 2025 · 24 次引用
- Mitigating Staleness in Asynchronous Pipeline Parallelism via Basis RotationHyunji Jung, Sungbin Shin, Namhoon LeeICML 2026 · 2 次引用
- DASH: Faster Shampoo via Batched Block Preconditioning and Efficient Inverse-Root SolversIonut-Vlad Modoranu, Philip Zmushko, Erik Schultheis, Mher Safaryan 等ICML 2026 · 1 次引用
- Memory-Efficient 4-bit Preconditioned Stochastic OptimizationJingyang Li, Kuangyu Ding, Kim-Chuan Toh, Pan ZhouICCV 2025 · 1 次引用
它引用的 Paper16
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- QLoRA: Efficient Finetuning of Quantized LLMsTim Dettmers, Artidoro Pagnoni, Ari Holtzman, Luke ZettlemoyerNeurIPS 2023 · 5,863 次引用
- 8-bit Optimizers via Block-wise QuantizationTim Dettmers, Mike Lewis, Sam Shleifer, Luke ZettlemoyerICLR 2022 · 457 次引用
- GaLore: Memory-Efficient LLM Training by Gradient Low-Rank ProjectionJiawei Zhao, Zhenyu Zhang, Beidi Chen, Zhangyang Wang 等ICML 2024 · 433 次引用
相关 Paper
- Memory Efficient Optimizers with 4-bit StatesBingrui Li, Jianfei Chen, Jun ZhuNeurIPS 2023 · 72 次引用
- Can We Remove the Square-Root in Adaptive Gradient Methods? A Second-Order PerspectiveWu Lin, Felix Dangel, Runa Eschenhagen, Juhan Bae 等ICML 2024 · 23 次引用
- Achieving low-bit Muon through subspace preservation and grid quantizationHuaijin Wu, Bingrui Li, Yebin Yang, Yi Tu 等ICLR 2026
- A New Perspective on Shampoo's PreconditionerDepen Morwani, Itai Shapira, Nikhil Vyas, Eran Malach 等ICLR 2025
- Combining Axes Preconditioners through Kronecker Approximation for Deep LearningSai Surya Duvvuri, Devvrit, Rohan Anil, Cho-Jui Hsieh 等ICLR 2024 · 16 次引用
