paper-with-me

Papers

4-bit Shampoo for Memory-Efficient Network Training

2024-05-28 · Sike Wang, Pan Zhou, Jia Li, Hua Huang

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.

📄 PDF Abstract BibTeX arXiv:2405.18144

Code (1)

sike-wang/low-bit-shampoo 공식 구현 pytorch

Tasks

image-classificationImage ClassificationLanguage ModelingLanguage ModellingQuantization

Similar Papers 제목 키워드 기반

Reparametrizing Shampoo and SOAP for Subspace Basis Updates and BFloat16 Storage

2026-05-25 · Alan Milligan, Zikun Xu, Simon Lacoste-Julien, Felix Dangel 외 arxiv

Shampoo-based methods, such as KL-Shampoo and SOAP, have demonstrated strong performance in training neural networks and rely on QR decomposition. Because existing QR implementations require single-precision (FP32) arith…

Understanding and Improving Shampoo and SOAP via Kullback-Leibler Minimization

2025-09-03 · Wu Lin, Scott C. Lowe, Felix Dangel, Runa Eschenhagen 외 arxiv

Shampoo and its efficient variant, SOAP, employ structured second-moment estimations and have shown strong performance for training neural networks (NNs). In practice, however, Shampoo typically requires step-size grafti…

Pro-KLShampoo: Projected KL-Shampoo with Whitening Recovered by Orthogonalization

2026-05-07 · Ruotong Sun, Ermin Wei arxiv

Optimizers that exploit the matrix structure of gradients are central to modern LLM pre-training, with two distinct frontiers: explicit Kronecker-factored preconditioning -- most recently KL-Shampoo, which estimates the …

SOAP: Improving and Stabilizing Shampoo using Adam

2024-09-17 · Nikhil Vyas, Depen Morwani, Rosie Zhao, Mujin Kwun 외

There is growing evidence of the effectiveness of Shampoo, a higher-order preconditioning method, over Adam in deep learning optimization tasks. However, Shampoo's drawbacks include additional hyperparameters and computa…

Computational Efficiency

Memory-Efficient 4-bit Preconditioned Stochastic Optimization

2024-12-14 · Jingyang Li, Kuangyu Ding, Kim-Chuan Toh, Pan Zhou

Preconditioned stochastic optimization algorithms, exemplified by Shampoo, outperform first-order optimizers by offering theoretical convergence benefits and practical gains in large-scale neural network training. Howeve…

QuantizationStochastic Optimization