arXiv:2610.34566cs.LGOct 2026

Manuscript Offprint

arXiv:2610.34566

Error Diffusion Replaces Latent Weights: Training Binary-Weight Language Models on a Few Bits of Dithered State

Pierre-Olivier Bonin

Abstract

Binary-weight language models store one bit per weight, but training them keeps a full-precision latent copy of each weight plus Adam state, about 96 extra bits per weight, so a deployed binary model cannot be adapted on the device that runs it. We replace the latent weight with a 2–8-bit residual buffer quantized by stochastic rounding, which cuts the training state per weight from 97 bits to 3–9, up to 19× less. The resulting error-diffusion (ED) optimizer moves the residual-carrying loop of image halftoning onto the weight-update path. Each buffer accumulates the unrealized part of every update and flips the weight when the accumulated value crosses a threshold, and it works only when its quantization grid has a level exactly at that threshold. Under this threshold-alignment rule, 4-bit buffers match 8-bit buffers on a binary multilayer perceptron benchmark, and the same rule lifts a different latent-free optimizer, Bop, from a 10-point deficit at 4 bits to full-precision accuracy. On character-level transformers with 97% of parameters binary, ED trains within 5–11% of the latent-weight reference at a 2,000-step budget and within 1.7% at convergence. On scaling ladders over enwik8 and wikitext-103, up to 19M parameters on enwik8 (70M with the wikitext-103 embeddings), the latent-free loss stays within −2.3% to +2.9% of the reference at all six sizes once a per-step cap on the buffer update removes a launch instability (§5.4); without the cap it trails by 10% at the largest tokenized size. A deployed binary model continues training under ED at one tenth of the latent training state, matching latent-weight continuation, and a fused CPU kernel completes the adaptation within a 275 MB training-memory budget, which latent-weight training cannot. A 250-step probe sets the flip learning rate at any new scale.

1 Introduction

Small language models suit agentic systems because they run where the agent acts, on a phone, a laptop, or an embedded controller. Binary-weight networks push this furthest, with 32×32 \times memory compression and multiplication-free inference [Rastegari et al., 2016, Wang et al., 2023]. The standard training recipe since BinaryConnect [Courbariaux et al., 2015] keeps a full-precision (FP) latent weight per binary weight, updates it with Adam [Kingma and Ba, 2015], and binarizes it on the fly, as do XNOR-Net [Rastegari et al., 2016], DoReFa [Zhou et al., 2016], BitNet [Wang et al., 2023, Ma et al., 2024], and binary normalized networks [Cabral et al., 2025]. The training state per weight is then 97 bits (a 32-bit latent weight, two 32-bit Adam moments, and the sign), so a 100M-weight binary model occupies 12.5 MB at rest but needs about 1.2 GB of training state to be adapted. Latent-free alternatives exist but keep at least 32 bits per weight. The binary optimizer Bop [Helwegen et al., 2019] replaces the latent weight with a 32-bit exponential moving average (EMA) of gradients, and BOLD [Nguyen et al., 2024] keeps an accumulator of unspecified precision.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: SLMs for Agentic Systems, Paris, France, 2026.

We transfer a mechanism from image processing. A grayscale image survives 1-bit quantization because Floyd–Steinberg error diffusion [Floyd and Steinberg, 1976] carries each pixel’s rounding residual forward until it accumulates into a pixel flip. Signal processing knows this loop as sigma-delta ( ΔΣ\Delta\Sigma) modulation [Anastassiou, 1989], error feedback (EF) in gradient compression [Seide et al., 2014, Karimireddy et al., 2019] applies it in time, and stochastic rounding (SR) [Höhfeld and Fahlman, 1992] applies it in value. We apply it to the weight-update path, so the residual buffer replaces the latent weight, and we quantize the buffer to 2–8 bits with SR, which cuts the training state per weight from 97 bits to 3–9 (Appendix A).