Full text not available for this paper
Summary (Overview)
-
Identified failure mode: The paper identifies error accumulation as a critical instability mechanism in low-bit storage of EMA (Exponential Moving Average) optimizer states, where quantization errors are recursively fed into subsequent updates via the EMA recursion .
-
Proposed method: BReD (Block Replay Dithering) combines classical subtractive dithering with deterministic seed replay and block-wise shared dither values, making unbiased, low-variance quantization practical for large-scale training without storing auxiliary random tensors.
-
Key theoretical insight: The paper proves that even tiny rounding bias () can dominate the long-horizon error budget when the EMA decay factor , with the bias term scaling as versus the variance term scaling as .
-
Comprehensive evaluation: BReD achieves stable 4-bit optimizer-state compression across 5 optimizers at 120M, AdamW/Muon at 1.1B and 3.4B, and supervised fine-tuning at 7B, with PPL shifts ≤ 0.5 in pretraining and ≤ 0.2 in fine-tuning.
-
Practical impact: 4-bit BReD reduces persistent optimizer-state storage by 78.9%–86.0% with only 5.1%–16.0% throughput reduction, while 3-bit BReD remains convergent as an aggressive alternative.
Introduction and Theoretical Foundation
Background and Motivation
Large-scale model training requires substantial memory for optimizer auxiliary states such as moment estimates (AdamW), momentum buffers (Muon), and preconditioner states (SOAP). Low-bit storage of these states is a direct way to reduce memory footprint, but aggressive quantization often destabilizes training. Prior approaches (e.g., low-bit Adam variants, low-bit Muon, low-bit Shampoo) are often tied to specific optimizer families or require retuned hyperparameters.
The key insight is that EMA optimizer states are not quantized once — at every training step they are dequantized, updated, requantized, and written back. This iterative process creates a feedback loop where quantization errors propagate through the EMA recursion.
Theoretical Foundation: Quantized-EMA Error Model
The paper formalizes the error accumulation mechanism. Consider a full-precision EMA state and its low-bit stored counterpart:
where is the per-step update term, is the dequantized stored state, is the injected quantization error, and is the accumulated state error. Direct subtraction yields the core recursion:
Key Theoretical Results
Lemma 3.1 (Bias induces persistent error): If , then:
Even a small nonzero bias yields a persistent error scaling as when .
Theorem 3.2 (Steady-state second moment): If with independent zero-mean and , then:
Remark 3.3 (Mean dominates when ): The ratio between mean and variance terms:
grows as when , showing that even tiny bias dominates for large- EMA states like AdamW's second moment.
Methodology
Design Goals from Theory
The theoretical analysis motivates a two-step design rule:
- Remove systematic rounding bias first (since bias is amplified by )
- Control the remaining variance (since noise is amplified by )
Interval Parameterization
For a scalar with neighboring grid points :
Rounding chooses a binary endpoint indicator :
The rounding–reconstruction gap is:
Rounding Rules Compared
Nearest Rounding (NR): Deterministically picks nearest endpoint:
- Efficient but can introduce biased errors for asymmetric data distributions.
Stochastic Rounding (SR): Draws :
- Unbiased: , with (Eq. 11)
- Can leave substantial residual noise.
Subtractive Dithering (SD): Draws , rounds dithered coordinate, reconstructs continuously:
SD is unbiased with:
which is -independent, giving smaller worst-case conditional variance ( vs for SR).
BReD Components
1. Deterministic Seed Replay (DSR): Regenerates dither values on the fly via a stateless keyed PRNG. For each EMA state tensor, assign a fixed state_id; at training step for block index :
This enables identical dither values at dequantization without storing random tensors.
2. Block-wise Randomization (BWR): Shares one random scalar per block of size , reducing PRNG calls from to . For block-wise SR:
BWR preserves coordinate-wise marginal unbiasedness while introducing within-block correlation.
Full BReD Pipeline
At write time: For each block at step , generate a single dither via keyed PRNG (Eq. 16), apply subtractive dithering (Eqs. 12–13), store low-bit codes with block scale.
At read time: Replay the same to decode and reconstruct the state.
BReD is typically combined with Microscaling data formats (MXFP4 by default for 4-bit).
Empirical Validation / Results
Pretraining Controls at 120M Scale
Table 1(a): Controlled 4-bit rounding comparison (NR, SR, BReD use identical scaling, grid, optimizer update, hyperparameters):
| 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(b): Combination with optimizer-specific methods:
| Method | Avg. acc. ↑ (Base → +BReD) | PPL ↓ (Base → +BReD) |
|---|---|---|
| AdamW-LPMM | 40.3 → 40.5 (+0.2) | 18.7 → 18.4 (-0.3) |
| Muon-Grasp | 40.6 → 41.2 (+0.6) | 17.8 → 17.8 (+0.0) |
Scale Check (1.1B and 3.4B Pretraining)
Table 2: 4-bit BReD remains close to FP32-state baselines:
| Scale | Optimizer | Avg. acc. (FP32 → BReD) | PPL (FP32 → 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) |
End-to-End Efficiency (AdamW)
Table 3: Persistent optimizer-state storage and throughput:
| Scale | Step time FP32 → BReD (s) | Throughput FP32 → BReD (M tok/s) | State memory FP32 → BReD (GB) |
|---|---|---|---|
| 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 |
BReD reduces state storage by 78.9%–86.0% with 5.1%–16.0% throughput reduction.
Supervised Fine-tuning (Qwen2.5-7B)
Table 4: Fine-tuning on UltraFeedback:
| Optimizer | Avg. score (FP32 → BReD) | PPL (FP32 → 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) |
3-bit Compression and Block-wise Ablation
Table 5(a): 3-bit BReD summary:
| Setting | Architecture/size | Optimizers | Δ Avg. | Δ PPL |
|---|---|---|---|---|
| Pretrain | LLaMA-style / 120M | 5 optimizers | [+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(b): BWR block-size ablation (4-bit AdamW, 120M):
| Block size B | Avg. acc. ↑ | PPL ↓ | Random ratio | Generation time |
|---|---|---|---|---|
| 1 | 40.9 | 18.8 | 1 | 486.32 ± 29 ms |
| 32 | 40.7 | 18.7 | 1/32 | 340.88 ± 41 ms |
| 256 | 40.6 | 18.8 | 1/256 | 335.47 ± 35 ms |
Default reduces random-number generation time by ~30% with negligible quality loss.
Theoretical and Practical Implications
Theoretical Contributions
-
Mechanistic understanding: The paper provides the first formal characterization of how quantization errors accumulate through EMA recursions in optimizer states, showing that bias is amplified by and variance by .
-
Design principles: The results establish a clear design hierarchy — first eliminate bias, then minimize variance — which is grounded in the relative amplification rates of these error components.
-
Bridge to classical theory: The work adapts classical subtractive dithering (Roberts, 1962) to a modern large-scale training context, demonstrating its relevance for persistent state storage.
Practical Implications
-
Optimizer-agnostic: BReD works across diverse optimizers (AdamW, Muon, NAdamW, SOAP, MARS) without changing update rules or hyperparameters, unlike prior low-bit methods tied to specific optimizer families.
-
Memory savings: 4-bit BReD achieves 78.9%–86.0% reduction in persistent optimizer-state memory, enabling larger models or longer training runs within fixed memory budgets.
-
Composability: BReD can be combined with optimizer-specific low-bit methods (improving AdamW-LPMM from 18.7 to 18.4 PPL and Muon-Grasp accuracy from 40.6 to 41.2), suggesting it can serve as a drop-in rounding component.
-
Practical overhead: The block-wise design (B=32) reduces PRNG calls by 32× while maintaining quality, making the method computationally feasible at scale.
Conclusion
Main Takeaways
-
Failure mechanism identified: Low-bit EMA optimizer states suffer from recursive error accumulation where rounding bias is amplified by and variance by , explaining why naive quantization (NR, SR) diverges or degrades training.
-
BReD provides a practical solution: By combining subtractive dithering with deterministic seed replay and block-wise shared dither values, BReD achieves unbiased, low-variance quantization without auxiliary random-tensor storage or per-element random generation.
-
Robust across settings: 4-bit BReD closely matches full-precision baselines across pretraining (120M–3.4B, 5 optimizers) and fine-tuning (7B), with PPL shifts ≤ 0.5 and downstream accuracy changes within 0.7 points. 3-bit BReD remains convergent as an aggressive alternative.
-
No hyperparameter changes required: BReD preserves original optimizer update rules, making it a drop-in replacement for state storage.
Future Directions
- Larger-scale validation: Extending evaluation to models with tens of billions of parameters and longer token budgets.
- Broader optimizer coverage: Testing at larger scales with additional optimizer families (SOAP, MARS, Shampoo).
- Joint quantization: Evaluating BReD combined with gradient or activation quantization.
- Spectral state analysis: Understanding how quantization errors affect eigendecomposition operations on preconditioner states.
Limitations
The paper acknowledges: (1) largest pretraining uses 3.4B models covering only AdamW and Muon; (2) cross-optimizer breadth is evaluated only at 120M; (3) no matched comparisons with Adafactor, Adam-mini, 4-bit Shampoo, or 4-bit Preconditioned Optimization; (4) storage-error analysis does not characterize effects on spectral operations for preconditioner states.
Related papers
- When Answering Is Administering: Permission Replies That Rewrite Coding-Agent Policy
In coding agents, a party trusted only to answer permission prompts can rewrite the operator's security policy, escalating answering authority into administrative control.
- Position-Skipped Distillation of Sparse-Attention Indexers: Train Short, Serve Long
Position-skipped distillation trains sparse-attention indexers on short sequences with position-ID gaps, matching 32K-distilled quality at 3–6× lower training cost.
- Harness-Delta Attribution: Dissecting Gains From Harness Evolution
Across 21 settings, harness evolution gains are largely overfitting (54%) and test-time scaling (14%), with only a residual upper bound on generalizable improvement.