Rounding in Preconditioner Space: Redesigning 4-bit AdamW Optimizer-State Quantization
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: Today's paper: "Rounding in Preconditioner Space".
Jane: The gist Quantizing AdamW’s optimizer states reduces persistent storage, but quantization errors propagate through the moment recurrences and perturb subsequent adaptive updates<ref:2610.12444#pg2>.
Tom: First, who's behind it and why it matters.
Paper summary: Tom: We started by looking at how quantizing AdamW’s optimizer states reduces persistent storage, but we found that errors propagate through the moment recurrences and those errors perturb subsequent adaptive updates >Page one--#pg1 <ref:2610.12444#pg1,quantizing AdamW’s optimizer states reduces persistent storage, but>.
Jane: The authors of "Rounding in Preconditioner Space: Redesigning four-bit AdamW Optimizer-State Quantization" propose a redesign focusing on rounding space, where the quantizer chooses between adjacent reconstruction levels >Page one--#pg1 <ref:2610.12444#pg1,Rounding in Preconditioner Space: Redesigning 4-bit AdamW Optimizer-State Quantization>.
Lu: They argue that conventional rounding in state space can still distort the resulting update even if it is accurate or unbiased there >Page four--#pg4 <ref:2610.12444#pg1>.
Meng: The key insight they present is that the rounding rule itself is critical to whether zero-point failure occurs with a zero-inclusive codebook >Page four--#pg4 <ref:2610.12444#pg1>.
Tom: They make two main contributions: first, characterizing how the rounding coordinate affects near-zero second-moment quantization at fixed reconstruction levels >Page two--#pg2 <ref:2610.12444#pg1>.
Jane: A local zero-cell analysis and a scalar quadratic construction show that this affects both preconditioner error and optimization dynamics >Page four--#pg4 <ref:2610.12444#pg1>.
Lu: This motivates Update-SR, which assigns stochastic-rounding probabilities using the preconditioners induced by the candidate reconstruction levels >Page two--#pg2 <ref:2610.12444#pg1>.
Meng: They also developed two specific four-bit AdamW configurations: ZIP-SR and ZE-EDEN >Page two--#pg2 <ref:2610.12444#pg1>.
Tom: ZIP-SR combines a zero-inclusive second moment codebook with Update-SR, while ZE-EDEN combines a zero-excluding codebook with EDEN block calibration >Page four--#pg4 <ref:2610.12444#pg1>.
Jane: Both methods use four-bit NormalFloat NF4 for the first moment and targeted stochastic rounding of the LM-head first moment during the final ten percent of training >Page three--#pg3.
Conclusion: Tom: So, looking at "Rounding in Preconditioner Space: Redesigning four-bit AdamW Optimizer-State Quantization," we see that optimizer state quantization should account for how stored values affect optimization, not just reconstruction error in state space >Page ten--#pg10.
Jane: For the second moment, this motivates Update-SR for the zero-inclusive route and EDEN calibration separately improves the zero-excluding route by mitigating distortion in the induced preconditioner distribution >Page ten--#pg10 <ref:2610.12444#pg3>.
Lu: Together with NF4 and SR for the LM-head first moment, these designs improve over TorchAO across pretraining and fine-tuning settings >Page ten--#pg10 <ref:2610.12444#pg3>.
Meng: The final validation loss differences in SFT show that ZE-EDEN attains the lower validation loss on both SFT models while ZIP-SR generally achieves smaller gaps in the pretraining comparisons >Page ten--#pg10 <ref:2610.12444#pg3>.
Tom: So, for anyone listening, this paper shows we need to look at how stored values affect optimization instead of just state-space reconstruction alone >Page ten--#pg10 <ref:2610.12444#pg3>.
Hanyang Li, Shao Tang, Daniel Thomas Braithwaite, Gregory Dexter, Leonardo Neves, Aman Gupta, Hiroto Udagawa, Abhishek Shivanna, Daniel Silva
University of California, Berkeley
cs.LG
Submitted: 2026-10-08
Updated: 2026-10-08
Comments: 23 pages
Code: https://github.com/nubank/adamw4bit
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 83/100
The gist: The gist Quantizing AdamW’s optimizer states reduces persistent storage, but quantization errors propagate through the moment recurrences and perturb subsequent adaptive updates<ref:2610.12444#pg2>.
Key concepts
- Rounding Space Redesign
- Instead of just rounding the state values in a mathematical space, this approach focuses on how adjacent reconstruction levels are chosen. The key insight is that the specific rounding rule critically determines whether zero-point failures occur when using a codebook with zero-inclusive or zero-excluding properties.
- ZIP-SR Configuration
- This configuration uses ZeroInclusive Preconditioner-space Stochastic Rounding (ZIP-SR). It combines a second moment codebook that includes zero with Update-SR, which assigns stochastic rounding probabilities based on preconditioners derived from the candidate reconstruction levels. This helps preserve the mean state value while controlling bias.
- ZE-EDEN Configuration
- This configuration employs ZeroExcluding EDEN calibration to handle distortion caused by a positive quantization floor in the second moment. It uses a guarded, EDEN-inspired calibration factor (cτ) to lower the decoded block scale and its positive floor when it overestimates small second-moment coordinates, helping restore suppressed tail information.
Terminology
Summary
The gist Quantizing AdamW’s optimizer states reduces persistent storage, but quantization errors propagate through the moment recurrences and perturb subsequent adaptive updates<ref:2610.12444#pg2>.
Redesigning Rounding Space
The paper proposes redesigning 4-bit optimizer-state quantization by shifting the perspective to rounding space, where the quantizer chooses between adjacent reconstruction levels<ref:2610.12444#pg3>. This approach is motivated because conventional rounding in state space can still distort the resulting update even if it is accurate or unbiased in state space<ref:2610.12444#pg4>. The key insight is that the rounding rule is critical to whether zero-point failure occurs with a zero-inclusive codebook
<ref:2610.12444#pg4>.
ZIP-SR and ZE-EDEN Configurations
The authors develop two specific 4-bit AdamW configurations: ZeroInclusive Preconditioner-space Stochastic Rounding (ZIP-SR) and ZeroExcluding EDEN calibration (ZE-EDEN)<ref:2610.12444#pg3>. ZIP-SR combines a zero-inclusive second-moment codebook with Update-SR, while ZE-EDEN combines a zero-excluding codebook with EDEN block calibration<ref:2610.12444#pg4>. Both methods use 4-bit NormalFloat (NF4) for the first moment and targeted stochastic rounding of the LM-head first moment during the final 10% of training<ref:2610.12444#pg3>. The goal is to reduce TorchAO 4-bit AdamW’s mean validation-loss gap to 32-bit AdamW at every evaluated model size, with the largest reported gap reduction reaching 70% in pretraining experiments<ref:2610.12444#pg3>.
ZIP-SR Dynamics
ZIP-SR is characterized by Update-SR, which assigns stochastic-rounding (SR) probabilities using preconditioners induced by the candidate reconstruction levels<ref:2610.12444#pg4>. Proposition 1(a) shows that for adjacent levels 0 ≤ a < b in a nonnegative decoded codebook Cv, State-SR preserves the mean state value, whereas Update-SR preserves the mean of the current step preconditioner<ref:2610.12444#pg4>. The analysis demonstrates that Update-SR strictly reduces the magnitude of the bias while keeping the conditional mean preconditioner at or below its unquantized value
<ref:2610.12444#pg4>.
ZE-EDEN Dynamics
ZE-EDEN uses a zero-excluding second-moment codebook and EDEN block calibration to mitigate the distortion caused by the positive quantization floor<ref:2610.12444#pg4>. The guarded EDEN-inspired calibration uses a factor cτ which lowers the decoded block scale and its positive floor when it overestimates small second-moment coordinates, potentially restoring part of the tail suppressed by uncalibrated quantization<ref:2610.12444#pg4>. Figure 2 shows that EDEN partially restores the large-preconditioner tail in both the embedding and LM-head states compared to Dyn4-NZ<ref:2610.12444#pg7>.
First Moment Quantization
The first moment is quantized with NF4, using RTN by default and switching the LM-head first moment to SR during the final 10% of training<ref:2610.12444#pg6>. In GPT-style 2.7B pretraining, NF4-RTN produces a predominantly negative radial bias in the LM-head first moment, whereas NF4-SR remains centered near zero (Figure 4b)<ref:2610.12444#pg8>. This suggests that the failure is associated with deterministic LM-head rounding rather than 4-bit LM-head quantization itself
<ref:2610.12444#pg8>.
Experimental Results
Across pretraining and supervised fine-tuning (SFT) experiments, both ZIP-SR and ZE-EDEN achieve lower validation loss than TorchAO while remaining close to 32-bit AdamW on downstream tasks<ref:2610.12444#pg3>. Table 3 shows that the mean gap reduction for step 3b (ZIP-SR) is a larger reduction of 32.5% compared to step 3a (ZE-EDEN) when comparing against the parent configuration<ref:2610.12444#pg9>. The final results show that both proposed optimizers attain lower mean validation loss than TorchAO 4-bit AdamW in SFT settings<ref:2610.12444#pg10>.
Conclusion
This work shows that optimizer-state quantization should account for how stored values affect optimization, rather than state-space reconstruction alone<ref:2610.12444#pg10>. For the second-moment, this perspective motivates Update-SR for the zero-inclusive route, while EDEN calibration separately improves the zero-excluding route by mitigating distortion in the induced preconditioner distribution<ref:2610.12444#pg10>. Together with NF4 and SR for the LM-head first-moment, these designs improve over TorchAO across pretraining and fine-tuning settings<ref:2610.12444#pg10>. The final validation loss differences in SFT show that ZE-EDEN attains the lower validation loss on both SFT models, whereas ZIP-SR generally achieves smaller gaps in the pretraining comparisons<ref:2610.12444#pg10>.
Limitations and Future Work
The theory compares conditional one-step preconditioner biases and optimization dynamics on a toy model, but does not establish general end-to-end convergence for quantized AdamW; extending these results to broader settings remains future work<ref:2610.12444#pg11>. Targeted LMhead SR alleviates the observed late-training regression, but the cause of the directional first-moment bias and its possible relationship to learning-rate decay remain unresolved<ref:2610.12444#pg11>. Further directions include extending our methodology below 4-bit optimizer-state quantization and investigating whether it applies to other adaptive optimizers<ref:2610.12444#pg11>.
AI Use Statement
Building on the authors’ initial ideas to compare the optimizer state and preconditioner errors of different rounding rules, we used ChatGPT (GPT-6 and GPT-5.6 Sol) to help formulate the statements of Propositions 1 and 2 for theoretical justification and polish the proof in multiple rounds of discussion<ref:2610.12444#pg11>. We used ChatGPT and Claude to give feedback on the experimental design and to polish the writing and organization<ref:2610.12444#pg11>. The authors verified all AI-assisted proofs and text and take full responsibility for the manuscript<ref:2610.12444#pg11>.
References
The paper cites several works including Kingma & Ba (2015) on Adam, Dettmers et al. (2022) on 8-bit optimizers, and various studies on dynamics of quantized optimizer states<ref:2610.12444#pg4>.
Quantization Background
The paper defines several 4-bit formats including FP4, Dyn4-NZ, and NF4, noting that NF4 is constructed from quantiles of a standard normal distribution with an exact zero included<ref:2610.12444#pg16>. The zero-excluding linear mapping for the second moment is denoted as TLin4-NZ<ref:2610.12444#pg16>. The rounding rules are defined, including Round-to-Nearest (RTN) and Stochastic rounding (SR)<ref:2610.12444#pg16>.
Experimental Details
All pretraining and supervised fine-tuning (SFT) runs use AdamW with specific hyperparameters, including BF16 mixed-precision computation with FP32 master parameters<ref:2610.12444#pg18>. The eligibility criterion for moment tensors is identical across the 4-bit methods, and ZE-EDEN uses the denominator safeguard τ = 10−12 and stores the effective scale cτ s by absorbing its calibration factor into the block scale<ref:2610.12444#pg18>. The final validation loss differences in SFT show that ZE-EDEN attains the lower validation loss on both SFT models, whereas ZIP-SR generally achieves smaller gaps in the pretraining comparisons<ref:2610.12444#pg10>.
Model Architectures
The paper uses GPT-style models at 162M, 405M, 834M, and 2.
Improvements for AI systems
- Bold header: Zero-Inclusive Preconditioner-space Stochastic Rounding (ZIP-SR) for Optimizer States
This configuration retains zero in the second-moment codebook and computes stochastic-rounding probabilities in preconditioner space,
which is shown to be a superior route compared to the zero-excluding approach when considering optimization dynamics. This leads to a reported reduction of 43.2% lower
validation loss on GPT-style 834M pretraining compared to TorchAO.
- Bold header: Zero-Excluding EDEN Calibration (ZE-EDEN) for Robustness
This method utilizes a zero-excluding second-moment codebook and rescales the quantized second-moment block to mitigate the preconditioner distortion caused by the positive quantization floor.
This configuration is effective at reducing the mean validation-loss gap to 32-bit AdamW
across evaluated model sizes.
- Bold header: Targeted First Moment Stochastic Rounding for Stability
The use of targeted stochastic rounding of the LM-head first moment during the final 10% of training
is motivated by addressing instability, as NF4-RTN produces a predominantly negative radial bias in the LM-head first moment,
which is a key factor in observed late-training regression.
- Bold header: Dynamic Codebook Selection Based on First Moment Distribution
The paper demonstrates that the choice of first-moment codebook—where FP4 and SDyn4 allocate several levels to narrow cells near zero, each receiving little probability mass, whereas NF4 spreads its levels across the high-density region
—significantly impacts reconstruction error. This suggests dynamically selecting a codebook based on empirical moment distributions can improve quantization quality.
- Bold header: Rounding Space Separation for Training Stability
The results show that changing the rounding space avoids the observed instability without removing zero; state-space stochastic rounding alone does not resolve it.
Specifically, Update-SR remains locally contractive
and contrasts with State-RTN which can develop a stable nonzero two-cycle
on scalar quadratic objectives.
Abstract
Quantizing 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 rounding space: the coordinate in which a quantizer chooses between adjacent reconstruction levels. For the second moment, a local analysis of the quantization cell adjacent to zero shows that small mean state error need not imply small mean preconditioner error at the next step. A one-dimensional quadratic construction further shows qualitatively different optimization dynamics under state-space and preconditioner-space rounding. These results motivate Zero-Inclusive Preconditioner-space Stochastic Rounding (ZIP-SR), which retains zero in the second-moment codebook and computes stochastic-rounding probabilities in preconditioner space. As a complementary route, Zero-Excluding EDEN calibration (ZE-EDEN) uses a zero-excluding second-moment codebook and rescales the quantized second-moment block to mitigate the preconditioner distortion caused by the positive quantization floor. Both configurations use 4-bit NormalFloat (NF4) for the first moment, with targeted stochastic rounding of the LM-head first moment during the final 10% of training. Across GPT- and Llama-style pretraining experiments ranging from 130M to 2.7B parameters, both methods reduce TorchAO 4-bit AdamW's mean validation-loss gap to 32-bit AdamW at every evaluated model size, with the largest reported gap reduction reaching 70%. In full-parameter supervised fine-tuning, both recipes achieve lower validation loss than TorchAO while remaining close to 32-bit AdamW on downstream tasks.
Sources
- Gefen: Optimized Stochastic Optimizer
- Evaluating Large Language Models Trained on Code
- Training Verifiers to Solve Math Word Problems
- Full-Stack FP4: Stable LLM Pretraining with Quantized Projections, Optimizers, and Attention
- FlashOptim: Optimizers for Memory-Efficient Training
- Effective Quantization of Muon Optimizer States
- STQuant: Spatio-Temporal Adaptive Framework for Optimizer Quantization in Large Multimodal Model Training
- TorchAO: PyTorch-Native Training-to-Serving Model Optimization
- Understanding Quantization of Optimizer States in LLM Pre-training: Dynamics of State Staleness and Effectiveness of State Resets
- Llama 2: Open Foundation and Fine-Tuned Chat Models
- Pushing the Limits of Low-Bit Optimizers: A Focus on EMA Dynamics
- Qwen3 Technical Report
- Instruction-Following Evaluation for Large Language Models
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks