Rounding in Preconditioner Space: Redesigning 4-bit AdamW Optimizer-State Quantization
ZIP-SR and ZE-EDEN cut 4-bit AdamW's validation-loss gap to 32-bit AdamW by up to 70%.
The paper redesigns 4-bit AdamW optimizer-state quantization around the coordinate used for rounding. ZIP-SR keeps zero in the second-moment codebook and computes stochastic-rounding probabilities in preconditioner space, while ZE-EDEN uses a zero-excluding codebook and rescales quantized blocks. Both use 4-bit NormalFloat for the first moment. Across GPT- and Llama-style pretraining from 130M to 2.7B parameters, both reduce TorchAO's mean validation-loss gap to 32-bit AdamW at every size, with the largest reduction reaching 70%, and they remain close to full precision in supervised fine-tuning.
- Quantization error in Adam moments distorts later preconditioners.
- ZIP-SR rounds in preconditioner space and retains a zero code.
- ZE-EDEN rescales a zero-excluding second-moment codebook.
- Gap to 32-bit AdamW shrinks by up to 70% from 130M to 2.7B.
From the original article
1 min read at arxiv.orgQuantizing AdamW's optimizer states reduces persistent storage, but quantization errors propagate through the moment recurrences and perturb subsequent adaptive updates. We redesign 4-bit optimizer-state quantization for AdamW from the perspective of \emph{rounding space}: the coordinate in which a quantizer chooses between adjacent reconstruction levels.
By Hanyang Li · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.