Low-bit storage of optimizer states can substantially reduce the memory footprint of large-scale training. In practice, however, these states are not quantized once: at every training step, they are dequantized, updated, requantized, and written back. This iterative quantization pipeline can destabilize training. We identify a failure mode behind this instability: for states updated via exponential moving averages (EMAs), quantization errors are recursively fed into subsequent updates. As a result, biased errors accumulate over time while high-variance errors are amplified, particularly when the EMA decay factor is close to 1. To address this error accumulation, we propose BReD (Block Replay Dithering), a method that reduces rounding bias and controls rounding variance during quantization. BReD adapts classical subtractive dithering to optimizer-state quantization by combining deterministic seed replay with block-wise shared dither values, avoiding auxiliary random-tensor storage and per-element dither values generation. Across the default pretraining settings (five optimizers at 120M; AdamW and Muon at 1.1B and 3.4B model) and supervised fine-tuning (AdamW and Muon at 7B model), 4-bit BReD closely matches training with full-precision optimizer states, with PPL shifts ≤0.5 in pretraining and ≤0.2 in fine-tuning and average downstream performance changes within 0.7 points. Moreover, 3-bit BReD preserves stable convergence in the evaluated settings, offering a more aggressive alternative. Our implementation of BReD is available at: https://github.com/ZhanHeshen/BReD
Figures & tables
Figure 1: In-training diagnostics for the quantized-EMA error model. During LLaMA-120M AdamW pretraining, we track the accumulated state error et and injected write-back error ϵt for the second-moment state. (a) The measured mean error follows E[ϵt]/(1−β2) after the transient, consistent with EMA amplification of rounding bias. (b) NR accumulates large relative error, whereas SR and SD maintain bounded relative errors in this diagnostic, with SD slightly smaller.
(a) Controlled 4-bit rounding comparison
Optimizer
FP32-State
NR
SR
BReD
AdamW
18.3
Diverged
Diverged
Stable (18.7)
Muon
17.8
Degraded (31.0)
Degraded (21.7)
Stable (18.0)
NAdamW
18.9
Diverged
Diverged
Stable (18.9)
SOAP
17.6
Diverged
Diverged
Stable (18.1)
MARS
18.7
Diverged
Diverged
Stable (18.9)
Table 1: Pretraining controls at the 120M scale. (a) Controlled 4-bit rounding comparison. NR, SR, and BReD use the same scaling rule, quantization grid, optimizer update, and hyperparameters. Numbers in parentheses are validation PPL. (b) Combination with optimizer-specific low-bit methods.
Scale
Optimizer
Avg. acc. ↑
PPL ↓
FP32-state
4-bit BReD
FP32-state
4-bit BReD
1.1B
AdamW
46.5
46.4 (-0.1)
10.8
10.9 (+0.1)
1.1B
Muon
47.6
47.1 (-0.5)
10.3
10.6 (+0.3)
3.4B
AdamW
47.9
47.6 (-0.3)
9.7
9.8 (+0.1)
3.4B
Muon
48.2
47.7 (-0.5)
9.6
9.8 (+0.2)
Table 2: Scale check for 4-bit BReD in pretraining. Parentheses denote changes relative to the corresponding full-precision optimizer-state baseline.
Figure 2: Pretraining horizon and memory-quality checks. (a) Longer-horizon AdamW pretraining at the 120M scale. (b) Memory-perplexity trade-off for 120M AdamW pretraining. The Pareto plot is a case study; broader stability evidence is provided by the controlled and scale experiments.
Step time (s)
Throughput (M tok/s)
State memory (GB)
Scale
FP32
BReD
FP32
BReD
FP32
BReD
120M
0.547
0.651
1.917
1.611
0.90
0.19
1.1B
2.881
3.178
0.364
0.330
8.20
1.18
3.4B
10.386
10.945
0.101
0.096
25.53
3.58
Table 3: End-to-end AdamW efficiency. FP32 and BReD denote full-precision and 4-bit optimizer-state storage, respectively. Memory reports persistent optimizer-state storage, not peak device memory.
Optimizer
Avg. score ↑
PPL ↓
FP32-state
4-bit BReD
FP32-state
4-bit BReD
AdamW
54.2
54.9 (+0.7)
4.6
4.6 (+0.0)
Muon
55.2
54.9 (-0.3)
4.6
4.6 (+0.0)
Table 4: Supervised fine-tuning with 4-bit BReD-quantized optimizer states. We fine-tune Qwen2.5-7B on UltraFeedback and report average downstream score and validation PPL. Parentheses denote changes relative to the corresponding full-precision optimizer-state baseline.
(a) 3-bit BReD summary
Setting
Architecture / size
Optimizers
Δ Avg.
Δ PPL
Pretrain
LLaMA-style / 120M
5 opt.
[+0.0,+1.0]
[+0.1,+1.2]
Pretrain
LLaMA-style / 1.1B
AdamW, Muon
[−0.9,−0.7]
[+0.1,+0.6]
SFT
Qwen2.5 / 7B
AdamW, Muon
[−0.8,+0.8]
[−0.1,+0.1]
Table 5: Aggressive compression and BWR ablation. (a) Summary of 3-bit BReD results. Δ Avg. denotes the range of changes relative to the corresponding full-precision optimizer-state baseline. (b) Block-wise randomization ablation for 4-bit AdamW at the 120M scale.
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
AdamW
Muon
NAdamW
SOAP
MARS
Peak LR
1×10−3
1×10−3
1×10−3
2×10−3
1×10−3
(β1,β2)
(0.9, 0.95)
—
(0.9, 0.95)
(0.95, 0.95)
(0.9, 0.99)
Weight decay
0.1
0.1
0.1
0.01
0
Weight decay (1D params)
—
—
—
—
0.01
Muon momentum β
—
0.95
—
—
—
NS steps
—
5
—
—
—
Appendix
Table 6: Optimizer hyperparameters for the 120M pretraining runs.
Optimizer
HS
OBQA
WG
Arc_e
Arc_c
BoolQ
PIQA
Avg. ↑
AdamW
29.41 0.4
27.60 0.7
51.20 0.4
36.36 0.1
21.79 1.1
56.12 1.9
60.58 0.6
40.4(+0.0)
AdamW-4bit+ BReD
29.12 0.2
27.07 0.6
52.04 0.7
35.84 1.0
21.82 0.7
59.35 1.0
59.58 0.5
40.7(+0.3)
AdamW-3bit+ BReD
28.68 0.2
27.27 0.5
51.93 0.2
36.10 0.9
22.33 0.6
59.63 1.3
58.62 0.6
40.6(+0.2)
Muon
29.85 0.1
26.73 0.4
51.30 0.5
36.60 0.3
22.50 0.3
59.16 2.6
60.19 0.3
40.9(+0.0)
Muon-4bit+ BReD
29.44 0.2
27.13 1.5
52.57 1.1
36.67 1.3
22.55 0.3
60.15 1.7
60.08 0.9
41.2(+0.3)
Muon-3bit+ BReD
29.02 0.1
27.47 0.6
51.49 0.8
36.74 0.4
22.24 0.5
59.67 0.6
59.99 0.4
40.9(+0.0)
Appendix
Table 7: Zero-shot LM evaluation accuracies for the 120M model. Subscripts denote standard deviations over three runs. Parentheses report the difference relative to the full-precision optimizer-state baseline of the same optimizer.
#Param
Optimizer
HS
OBQA
WG
Arc_e
Arc_c
BoolQ
PIQA
Avg. ↑
PPL ↓
1.1B
AdamW
43.45 0.1
30.80 0.4
52.62 0.5
45.38 0.4
25.66 0.7
59.66 0.1
68.05 0.7
46.5(+0.0)
10.8(+0.0)
AdamW-4bit+ BReD
43.05 0.3
30.67 1.3
52.12 0.2
45.50 2.0
25.51 0.5
59.63 1.8
68.03 0.2
46.4(-0.1)
10.9(+0.1)
AdamW-3bit+ BReD
42.21 2.2
30.60 0.5
52.78 1.6
43.74 2.4
24.52 1.1
59.14 1.6
67.45 1.6
45.8(-0.7)
10.9(+0.1)
Muon
46.01 0.5
31.07 0.6
52.75 1.1
48.23 1.1
26.37 0.5
59.57 2.7
69.10 0.5
47.6(+0.0)
10.3(+0.0)
Muon-4bit+ BReD
44.46 0.4
30.87 1.6
53.57 0.3
47.28 1.1
25.57 0.6
58.96 4.2
68.93 0.3
47.1(-0.5)
10.6(+0.3)
Muon-3bit+ BReD
43.08 0.3
31.73 0.7
51.73 0.7
46.09 1.5
25.48 0.1
60.58 0.5
68.19 0.3
46.7(-0.9)
10.9(+0.6)
Appendix
Table 8: Zero-shot LM evaluation accuracies and validation PPL on 1.1B and 3.4B models. Subscripts denote standard deviations over three runs. Parentheses report the difference relative to the full-precision optimizer-state baseline of the same optimizer.
Stage
Architecture
Size
Optimizer
Acc. ↑
PPL ↓
FP32-state
3-bit BReD
FP32-state
3-bit BReD
Pretrain
LLaMA-style
120M
AdamW
40.4
40.6 (+0.2)
18.3
19.0 (+0.7)
Pretrain
LLaMA-style
120M
Muon
40.9
40.9 (+0.0)
17.8
18.5 (+0.7)
Pretrain
LLaMA-style
120M
NAdamW
40.1
40.5 (+0.4)
18.9
19.0 (+0.1)
Pretrain
LLaMA-style
120M
SOAP
39.6
40.6 (+1.0)
17.6
18.8 (+1.2)
Pretrain
LLaMA-style
120M
MARS
40.8
41.0 (+0.2)
18.7
19.4 (+0.7)
Appendix
Table 9: Aggressive 3-bit BReD compression. For pretraining, Acc. denotes average zero-shot accuracy; for supervised fine-tuning, Avg. denotes average downstream score. Parentheses denote changes relative to the corresponding full-precision optimizer-state baseline.
β2
FP32-state
4-bit BReD
Δ PPL
0.95
18.3
18.7
+0.4
0.999
19.4
20.1
+0.7
Appendix
Table 10: Validation PPL for 120M AdamW at two EMA decay factors. The β2=0.95 results are means over three runs; the β2=0.999 results are from one paired run. Δ PPL is BReD minus FP32-state at the same β2 .
State storage
Format
Validation PPL
FP32-state
FP32
18.3
4-bit BReD
MXFP4
18.7
4-bit BReD
MXINT4
18.9
Appendix
Table 11: Validation PPL for 120M AdamW with different state-storage formats. All values are means over three runs.
Beta setting
Precision
(β1,β2)
Result
Original AdamW
4/2-bit
(0.9,0.95)
Diverged
SOLO from-scratch
4/2-bit
(0.3,0.95)
Diverged
SOLO from-scratch
2/2-bit
(0.1,0.95)
Diverged
Author example
4/2-bit
(0.8,0.999)
Diverged
Appendix
Table 12: SOLO checks in our 120M pretraining setup. Precision denotes first-/second-moment bitwidths. Each entry reports one run.
Method
Validation PPL
FP32-state Shampoo
18.3
Shampoo + NR
Diverged
Shampoo + SR
Diverged
Shampoo + BReD
18.5
Appendix
Table 13: Validation PPL for the 120M Shampoo check. Low-bit variants quantize the preconditioner states to 4 bits. Each configuration reports one run.
Scale
Optimizer
FP32-state
4-bit BReD
Reduction
120M
AdamW
0.90GB
0.19GB
78.9%
120M
Muon
0.64GB
0.41GB
35.9%
120M
NAdamW
0.90GB
0.19GB
78.9%
120M
SOAP
1.66GB
0.55GB
66.9%
120M
MARS
1.36GB
0.64GB
52.9%
1.1B
AdamW
8.20GB
1.18GB
85.6%
Appendix
Table 14: Optimizer-state memory reduction with 4-bit BReD. Reduction is relative to the corresponding full-precision optimizer-state baseline.
Figure 3: Additional quantized-EMA diagnostics for two layers: Panels (a) and (c) compare the measured mean accumulated error E[et] with the predicted amplified injected error E[ϵt]/(1−β2) . Panels (b) and (d) show the relative error norm over training. Across layers, nearest rounding accumulates large error, whereas stochastic rounding and subtractive dithering maintain bounded relative errors in this diagnostic.
Quantizing optimizer states is becoming an important ingredient of memory-efficient large-scale pre-training, but the resulting optimizer dynamics remain only partially understood. We study low-precision exponential moving average (EMA) optimizer states and show how quantization can cause many nominal updates to round back to the same stored value, making the state effectively stale and slowing adaptation beyond what the nominal decay would suggest. We then develop a simple predictive model of stalling that estimates one-step stalling probabilities and characterizes how stalling builds up over time after the initialization. This perspective provides a mechanistic explanation for why optimizer-state resets help in low precision: once a quantized EMA becomes effectively stale, resetting it can temporarily restore responsiveness. Motivated by this picture, we derive a simple theory-guided method for choosing useful reset periods, showing that in low precision the key question is not only whether resets help, but when they should be applied. Experiments in controlled simulations and LLM pre-training show that suitable reset schedules recover the performance lost to low-precision state storage while substantially reducing optimizer-state memory.
Linear attention and recurrent models compress past tokens into a fixed-size state that is updated at every step. However, storing these states in high precision incurs substantial memory and bandwidth costs at large batch sizes, motivating low-bit state quantization. Unlike weights and key--value caches, a recurrent state is requantized after every update, so its quantization errors accumulate across steps. Our analysis shows that these errors are highly coherent across steps, so reducing per-step errors alone is insufficient. This coherence arises mainly from small updates that are lost in rounding. To preserve these updates, we intervene both before and at rounding. Before rounding, we propose Low-Rank Bypass (LRB), which accumulates small updates in a compact low-rank buffer and periodically merges its sufficiently large elements into the state. At rounding, we observe that a state element can even move opposite to its update, and such reversals prove particularly harmful. Therefore, we propose Bounded Directional Rounding (BDR), which rounds reversed elements toward their updates without additional storage. Although BDR enlarges the rounding error, it improves the model, suggesting that the direction of an update matters more than its rounding error at a single step. Across Gated DeltaNet, GLA, Mamba2, and RetNet, our training-free method substantially outperforms INT4, while reducing state memory by up to 5.3× and speeding up decoding by up to 1.9× relative to FP32 states.
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.
Hanyang Li, Shao Tang, Daniel Thomas Braithwaite +7