paper-with-me

홈 › Papers

Memory Efficient Optimizers with 4-bit States

2023-09-21 · NeurIPS 2023 11

Optimizer states are a major source of memory consumption for training neural networks, limiting the maximum trainable model within given memory budget. Compressing the optimizer states from 32-bit floating points to lower bitwidth is promising to reduce the training memory footprint, while the current lowest achievable bitwidth is 8-bit. In this work, we push optimizer states bitwidth down to 4-bit through a detailed empirical analysis of first and second moments. Specifically, we find that moments have complicated outlier patterns, that current block-wise quantization cannot accurately approximate. We use a smaller block size and propose to utilize both row-wise and column-wise information for better quantization. We further identify a zero point problem of quantizing the second moment, and solve this problem with a linear quantizer that excludes the zero point. Our 4-bit optimizers are evaluated on a wide variety of benchmarks including natural language understanding, machine translation, image classification, and instruction tuning. On all the tasks our optimizers can achieve comparable accuracy with their full-precision counterparts, while enjoying better memory efficiency.

📄 PDF Abstract BibTeX

Code (1)

thu-ml/low-bit-optimizers 공식 구현 pytorch

Similar 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 s…

image-classificationImage ClassificationLanguage ModelingLanguage Modelling+1

FOAM: Blocked State Folding for Memory-Efficient LLM Training

2025-12-08 · Ziqing Wen, Jiahuan Wang, Ping Luo, Dongsheng Li 외 arxiv

Large language models (LLMs) have demonstrated remarkable performance due to their large parameter counts and extensive training data. However, their scale leads to significant memory bottlenecks during training, especia…

Breaking Memory Limits: Gradient Wavelet Transform Enhances LLMs Training

2025-01-13 · Ziqing Wen, Ping Luo, Jiahuan Wang, Xiaoge Deng 외

Large language models (LLMs) have shown impressive performance across a range of natural language processing tasks. However, their vast number of parameters introduces significant memory challenges during training, parti…

Blog: Survey of Optimizers

2026-08-28 · Ruoran Xu arxiv

Neural-network optimization in 2025-2026 is no longer well described as a succession of new Adam variants. The design space has expanded from coordinates to matrices and layers, from fixed training horizons to policies o…

8-bit Optimizers via Block-wise Quantization

2021-10-06 · ICLR 2022 4 · Tim Dettmers, Mike Lewis, Sam Shleifer, Luke Zettlemoyer

Stateful optimizers maintain gradient statistics over time, e.g., the exponentially smoothed sum (SGD with momentum) or squared sum (Adam) of past gradient values. This state can be used to accelerate optimization compar…

Language ModelingLanguage ModellingMachine TranslationQuantization