TL;DR
Training large neural networks requires keeping massive "optimizer states" in memory—often taking up more space than the model weights themselves. While shrinking these states down to 4 bits saves up to 86% of that memory, doing it naively causes rounding errors to snowball over thousands of training steps until the model crashes. BReD (Block Replay Dithering) adapts a 1960s signal-processing trick to eliminate rounding bias and tame noise, letting you compress optimizer states across almost any optimizer without changing a single hyperparameter.
What Problem Does This Paper Address?
When you train a large model with an optimizer like AdamW or Muon, the optimizer keeps running notes—called auxiliary states (like momentum and variance estimates)—for every single parameter. As models scale into the billions of parameters, storing these states in 32-bit full precision becomes a brutal memory bottleneck.
The obvious fix is quantization: compress those states into 4-bit numbers. Here is the catch: unlike quantizing a finished model once for deployment, optimizer states live in a relentless loop. At every training step, they are unpacked (dequantized), updated, re-compressed (requantized), and written back to memory.
Most modern optimizers update their states using an Exponential Moving Average (EMA)—blending a tiny fraction of new gradient info with a large fraction (say, $\beta = 0.999$) of the old state. Because of this recursion, quantization error isn't a harmless one-time hiccup. Any systematic rounding bias gets fed back into the loop and amplified by a factor of $\frac{1}{1-\beta}$, creating a runaway drift. Even unbiased random rounding (stochastic rounding) injects variance that gets amplified over time, destabilizing training. Prior work fixed this by inventing custom update rules or retuning hyperparameters for specific optimizers. The authors ask: can we stabilize low-bit storage at the rounding level itself, leaving the optimizer untouched?
Methods
To kill bias first and shrink variance second, the authors revive a classic 1962 audio/image processing technique called subtractive dithering (SD) and engineer it for modern GPU scale via BReD:
- Subtractive Dithering (The Classic Primitive): Before rounding a number to a coarse 4-bit grid, you add a small uniform random number $u$ (the "dither"). When you unpack that number on the next step, you subtract the exact same $u$. Mathematically, this cancels out systematic rounding bias and cuts the worst-case error variance to one-third that of standard stochastic rounding ($\Delta^2/12$ vs. $\Delta^2/4$).
- Deterministic Seed Replay (What's New): Subtractive dithering has a fatal flaw at LLM scale: to subtract $u$ later, you have to remember $u$—which means storing billions of random floats, defeating the whole point of compression! BReD dodges this by using a stateless, keyed pseudo-random number generator (PRNG). By feeding a deterministic tuple
(global_seed, state_id, step_t, block_index)into the PRNG, BReD conjures the exact same $u$ out of thin air during both write and read, using zero extra memory. - Block-Wise Randomization (What's New): Generating a fresh random number for billions of individual parameters slows down training. Instead, BReD generates one random dither scalar per block of 32 elements and shares it across the block—preserving marginal unbiasedness while slashing PRNG overhead by $32\times$.
Datasets
No new benchmarks are introduced; the authors rely on established pretraining and evaluation suites:
- Pretraining: SlimPajama (10.5B to 100B tokens), evaluated zero-shot on HellaSwag, OpenBookQA, WinoGrande, ARC, BoolQ, and PIQA.
- Supervised Fine-Tuning (SFT): UltraFeedback (on Qwen2.5-7B), evaluated on HumanEval, MBPP, GSM8K, and TruthfulQA.
Key Insights and Ideas
- Tiny biases become giant drifts when $\beta \to 1$: In an EMA update (like AdamW's second moment where $\beta_2 = 0.99$ or $0.999$), the ratio of bias error to noise error scales as $\frac{1}{1-\beta}$. Even a microscopic asymmetry in nearest-neighbor rounding accumulates into massive state corruption.
- Unbiased isn't enough—worst-case noise matters: Stochastic rounding is unbiased on average, yet it still diverges across four out of five tested optimizers at 4 bits! Why? Because stochastic rounding errors can jump up to a full quantization bin width, whereas subtractive dithering caps local error at half a bin width and keeps variance flat regardless of where a value sits between grid points.
- Plug-and-play orthogonality: Because BReD only touches the storage read/write step, it works across totally different optimizer families (AdamW, Muon, SOAP, NAdamW, MARS) and stacks cleanly on top of existing low-bit optimizer recipes to boost their accuracy.
Key Results
- Where baselines crash, BReD cruises: In controlled 120M pretraining across five optimizers using standard MXFP4 (4-bit) grids, Nearest Rounding and Stochastic Rounding diverged (NaN) on 4 of 5 optimizers and badly degraded Muon (perplexity jumping from 17.8 to 31.0 and 21.7). 4-bit BReD stayed rock-solid across all five (18.0 PPL on Muon).
- Scales cleanly to billions of parameters: Pretraining 1.1B and 3.4B models with AdamW and Muon, 4-bit BReD matched 32-bit state baselines within 0.1–0.3 validation perplexity and 0.5% average downstream accuracy. Fine-tuning Qwen2.5-7B yielded 0.0 PPL shift.
- Massive memory savings, modest speed hit: For AdamW (120M to 3.4B), 4-bit BReD slashed persistent optimizer-state memory by 78.9%–86.0% (e.g., shrinking 3.4B states from 25.53 GB down to 3.58 GB), with only a 5.1%–16.0% throughput overhead (just 5.1% at 3.4B).
- Pushing to 3 bits: Even at an aggressive 3-bit setting, BReD remained convergent across all tested pretraining and 7B fine-tuning runs (though 2-bit finally broke).
Limitations and Future Work
- Compute-bound scale: Pretraining experiments top out at 3.4B parameters (covering AdamW and Muon), with cross-optimizer breadth (5 optimizers) tested at 120M. Validating on tens-of-billions parameter runs and trillion-token horizons remains open.
- Missing system combinations: The authors haven't yet tested how BReD interacts when combined simultaneously with quantized gradients or activations, nor did they benchmark directly against structural memory-savers like Adafactor or Adam-mini.
- Spectral blind spots: While BReD empirically stabilized matrix preconditioner states (like SOAP and Shampoo), the theoretical analysis only models element-wise EMA error—not how quantization noise perturbs matrix eigendecompositions.
Summary updated