Manuscript Offprint
arXiv:2610.34566Error Diffusion Replaces Latent Weights: Training Binary-Weight Language Models on a Few Bits of Dithered State
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 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 ( ) 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).
-
We show that the buffer is a stochastic accumulate-and-fire unit whose grid must contain a level at the flip threshold, a rule that removes an apparent 4-bit floor and restores full-precision accuracy to dithered Bop at 4 bits ( ).
-
We show that 97%-binary transformers train within 5–11% of the latent reference at 2,000 steps and 1.7% at convergence, that the loss tracks the reference at all six ladder sizes once a per-step update cap removes a launch instability, and that a deployed model continues training on a CPU within a 275 MB training-memory budget ( ).
-
We give a 250-step probe that sets the flip learning rate at a new scale, validated by a pre-registered prediction ( ).
2 Related work
Latent-free binary training. Bop [Helwegen et al., 2019] flips a weight when a 32-bit gradient EMA crosses a threshold and is the closest prior method; Yayla and Chen [2022] compress its state by about . BOLD [Nguyen et al., 2024] and the binary-error-signal line [Colombo et al., 2024, 2025] train without backpropagated gradients. None combines backpropagated updates with a low-bit SR-quantized residual as the sole per-weight state.
Error feedback. 1-bit SGD, EF-SignSGD, and EF21 [Seide et al., 2014, Karimireddy et al., 2019, Richtárik et al., 2021] correct communication compression while FP weights persist underneath. ECO [Nikdan et al., 2026] removes master weights at FP8/INT4 by feeding the quantization error into Adam momentum, so 64 b/wt of optimizer state remains, and MicroAdam [Modoranu et al., 2024] quantizes an error-feedback buffer beside FP weights. Sigma-delta modulation appears as activation coding [O'Connor and Welling, 2016, O'Connor et al., 2018] and as post-training weight quantization [Xia et al., 2025, Czaja and Na, 2024, Lybrand and Saab, 2020]. In all of these the modulator's output is a message or a post-hoc quantization, whereas in ED it is the stored model.
Precision and scale. Scaling-law studies of quantized training [Kumar et al., 2025, Frantar et al., 2025, Chen et al., 2025] cover latent-weight training only, so §5.3 tests whether parallel loss curves survive removing the latent weight. P [Yang et al., 2021] and u- P [Blake et al., 2024] derive learning-rate transfer from continuous latent weights, which ED lacks, and we are not aware of a cross-scale rule for Bop's threshold (§5.6).
3 Method
Notation. Each binary weight is scaled by a fixed per-layer scalar . All quantities are in flip units, where the distance between the two weight states is 2 and the flip threshold is 1. The proxy gradient comes from the straight-through estimator (STE) [Bengio et al., 2013], and the flip learning rate (flip-lr) scales it into a demanded movement . Each weight owns a buffer on a -level uniform grid over , where is the buffer width in bits and the clamp, rounds stochastically onto that grid, and is the flip indicator.
The update. Algorithm 1 gives one step. A flip fires when the accumulated value points away from the current sign and exceeds the threshold, and the realized movement (2 flip units) is subtracted
Algorithm 1 One ED step for one binary layer (all quantities in flip units).
Require: signs w, buffer e, proxy gradient g, flip-lr , scale s, clamp C, bits b
1: demanded movement
2: accumulate
3: [sign ] fire
4: flip where
5: carry the residual, then quantize
before the remainder is rounded onto the buffer grid. No latent weight or optimizer moment exists. We read the loop as a first-order modulator of the update stream, with the flip as its 1-bit quantizer. Deterministic rounding in line 5 halts training at every ( ), so SR is the firing mechanism. Binary activations use sign with a per-batch abs-mean scale and a clipped-STE backward pass. The threshold-alignment rule of requires a grid level exactly at the flip threshold, that is .
Memory accounting. Every reported cell carries bits of persistent training state per weight (b/wt). FP32+Adam carries 96, BitNet-style latent training 97, Bop 33, bf16 mixed precision 112, and ED for (3 b/wt–9 b/wt). The clamp adds an off-grid rail state ( reachable values, 4.09 bits at ), which we round down to bits in favor of ED. Per-layer weight scales, per-batch activation scales, and the FP embeddings, LayerNorms, and head of the transformers are excluded from the per-weight count ( ).
4 Experimental setup
Tasks and data. (i) A teacher–student MLP benchmark isolates feature learning. Inputs are and labels come from a fixed random 4-layer tanh teacher with 10 classes (20k train, 4k test). The student is a frozen random FP projection, two binary hidden layers of width W with binary activations (the only feature learners), and a trainable FP readout, and the metric is test accuracy (higher is better). (ii) Character-level Shakespeare [Karpathy, 2015] (1.1 MB) trains nanoGPT-style [Karpathy, 2022] 4-layer transformers with for 2,000 steps, and for 50,000 steps. (iii) A byte-level enwik8 ladder [Hutter, 2006] trains 0.5M, 3.3M, and 19M parameters (2, 4, and 6 layers) for 15k steps of bytes, and (iv) a tokenized ladder trains the same binary cores on wikitext-103 [Merity et al., 2017] with GPT-2 byte-pair encoding [Radford et al., 2019] (118M tokens, block 128). (v) Deploy-then-adapt pretrains a latent-weight binary transformer (4 layers, ) on enwik8, discards the latent weights, and adapts the deployed artifact to byte-level Shakespeare for 5,000 steps. For (ii)–(v) the metric is the best validation loss in nats (lower is better). In every transformer the attention and MLP projections are binary (97% of parameters at on characters), and the embeddings, LayerNorms, and head are FP and trained by AdamW [Loshchilov and Hutter, 2019].
Baselines. FP32+Adam (96 b/wt) is the accuracy upper bound, BitNet-style latent-weight training (97 b/wt, the “latent reference”) is the standard recipe and shares the STE with ED, and dithered Bop (9 b/wt at 8 bits) is the closest latent-free method and runs on the MLP benchmark. A frozen-random-binary control (binary layers never updated) is the floor above which accuracy is attributable to the update rule (Appendix E adds three further controls).
Protocol. The flip-lr is the one hyperparameter of ED. MLP cells use flip-lr 1.0 at every width. The 2,000-step Shakespeare cells use the best of a five-point sweep on seed 0, reused for the other seeds. Every longer transformer cell and every adaptation cell sets its flip-lr by a 250-step drive probe. We train 250 steps at two or three candidate flip-lrs, record the mean absolute buffer occupancy at step 250, compute the drive in flip units per step, and keep the candidate with (Appendix B). Section 5.6 shows that sweep-selected and probe-selected flip-lrs lie in or near this band. FP and latent arms use AdamW at with no schedule unless stated. Runs of 15k steps and longer decay the flip-lr linearly to . In the runs of §5.4, a stall check restarts a run with a new seed when its validation loss at step 2k exceeds its value at step 1k, and a divergence guard does the same when, after step 2k, the validation loss exceeds the run's best value by more than 0.3 nats; a cell is reported as diverged when three launches hit it. Runs of 15k steps and longer also stop early when the validation loss has not improved by 0.005 nats over five consecutive

Figure 1: MLP-benchmark test accuracy against the training state of the two binary layers ( b/wt), widths 64–384, 5 seeds, . At the accuracy of the latent reference, the 8-bit buffer needs less training state and the 4-bit buffer less.
Table 1: Test accuracy (% , higher is better) at width 192, 5 seeds, for the ED buffer and for dithered Bop's SR-quantized EMA (FP EMA at 33 b/wt), with and without a grid level at the threshold. Bold marks the better cell of a pair by more than one std. ED cells use flip-lr 1.0 (2-bit rule cell: best of four flip-lrs, 52.3 at 0.5; 51.8 at 1.0); Bop cells take the best of three .
| bits | ED buffer | dithered Bop EMA | ||
|---|---|---|---|---|
| naive C=1.5 | rule C=1.0 | absmax grid | aligned grid | |
| 8 | 56.4 ± 1.4 | 56.3 ± 1.4 | 55.9 ± 1.5 | 56.1 ± 0.6 |
| 4 | 53.2 ± 1.3 | 56.4 ± 1.3 | 46.5 ± 1.3 | 57.0 ± 1.0 |
| 2 | 33.1 ± 4.9 | 52.3 ± 1.2 | 38.6 ± 2.1 | 51.0 ± 1.2 |
evaluations; the reported value is the best one. Before the transformer runs we fixed a pass criterion of +20% against the latent reference, and we report every cell whether or not it passes (Appendix D lists every pre-registered prediction). Every table states its seed count, and ± is the standard deviation over seeds (divisor n). All runs use one NVIDIA RTX 4080 SUPER (16 GB), and Appendix C lists every hyperparameter and wall-clock time.
5 Results
5.1 The buffer is a stochastic accumulate-and-fire unit
Does a quantized buffer match a latent weight? At width 192 (5 seeds), the frozen control scores , the latent reference (97 b/wt), ED with an 8-bit buffer (9 b/wt), and ED with a 4-bit buffer (5 b/wt). The latent reference's advantage decays with width and vanishes by 256–384 ( vs. at 384). Figure 1 plots accuracy against the total training state of the two binary layers (Appendix E, Table 6). At equal accuracy the 4-bit buffer needs about less training state than the latent reference and the 8-bit buffer about less.
Where must the grid sit? With the naive clamp , accuracy falls below 8 bits and collapses at 2 bits (Table 1, left), which looks like a 4-bit floor. With the grid strictly inside the threshold (), training is inert at every bit width (zero flips in 25 epochs for ), because per-step drives of about flip units never reach the threshold from the top grid level, and with levels beyond it () 2-bit buffers fire 1.3M times per epoch and score below the frozen control. At every flip is an SR jump onto a grid level with . The buffer accumulates sub-threshold evidence and SR converts the excess into a firing probability, so the top grid level must sit exactly at the threshold. Under this rule 4-bit buffers equal 8-bit buffers and 2-bit buffers recover from collapse (Table 1). The apparent 4-bit floor was clamp geometry.
Table 2: Best validation loss (nats per character, lower is better) on character-level Shakespeare. 2k-step columns: FP activations, mean std over 3 seeds, one flip-lr per ED cell (100, 60, 80 at 128, 256, 512). 50k-step column: binary activations, 1 seed; parentheses: constant flip-lr. Bold marks the lowest loss per column.
| method | 2k steps | 50k steps | ||
|---|---|---|---|---|
| d=128 | d=256 | d=512 | d=256 | |
| FP32+Adam (96 b/wt) | 1.591 | |||
| latent reference (97 b/wt) | 1.556 | |||
| ED-int8 (9 b/wt) | 1.583 (1.586) | |||
| ED-int4 (5 b/wt) | 1.681 | |||
Table 3: Scaling ladders, best validation loss (lower is better), binary activations, probe-set flip-lrs, for the latent reference (97 b/wt), ED-int8 (9 b/wt), and ED-int4 (5 b/wt), each size under two recipes: “uncapped” and “cap” (the per-step update cap of §5.4). enwik8 (nats per byte): 3 seeds, mean ± std, where a ± is shown, else 1 seed; the uncapped 19M ED-int8 cell averages the 3 of 5 launches that did not stall (all 5: ). wikitext-103 (nats per token): 1 seed, except the capped 19M ED-int8 cell at 15k (3 seeds); totals with the 50k-token embeddings: 13.3M, 28.9M, 70.4M. “diverged”: all three launches hit the divergence guard (§4). : ED relative to the latent reference; the last column: int4 relative to int8 under the same recipe; bold is the lowest loss per size.
| corpus | size | recipe | latent | ED-int8 | Δ | ED-int4 | Δ vs int8 |
|---|---|---|---|---|---|---|---|
| enwik8 | 0.5M | uncapped | -2.5% | +5.7% | |||
| cap | 1.898 | -2.3% | 2.007 | +5.7% | |||
| enwik8 | 3.3M | uncapped | +3.3% | +12.6% | |||
| cap | 1.499 | +2.1% | 1.711 | +14.1% | |||
| enwik8 | 19M | uncapped | +3.9% | +17.2% | |||
| cap | +2.9% | 1.509 | +18.3% | ||||
| wikitext-103 | 0.5M | uncapped | 5.113 | 5.118 | +0.1% | 5.224 | +2.1% |
| cap | 5.114 | +0.0% | 5.275 | +3.2% | |||
| wikitext-103 | 3.3M | uncapped | 4.789 | 4.782 | -0.1% | diverged | - |
| cap | 4.775 | -0.3% | 4.974 | +4.2% | |||
| wikitext-103 | 19M, 15k | uncapped | 4.464 | 4.920 | +10.2% | 4.749 | -3.5% |
| cap | +1.0% | 4.742 | +5.1% | ||||
| wikitext-103 | 19M, 30k | uncapped | 4.358 | 5.075 | +16.5% | diverged | - |
| cap | 4.371 | +0.3% | 4.681 | +7.1% |
Does the rule transfer to Bop? Dithered Bop at 9 b/wt matches ED at every width (Figure 1), but at 4 bits on an absmax-scaled grid it loses 10 points (Table 1, right). We predicted before the run that regridding the EMA so that a level sits exactly at its threshold would restore full-precision accuracy (Appendix D), and it does, with at 5 b/wt against for the FP EMA at 33 b/wt, points at 3 bits (45.3 vs. 53.8, not shown) and at 2. At 8 bits the two grids tie, as expected once some level falls within one per-step drive of the threshold anyway. Threshold alignment is therefore a property of thresholded quantized accumulators in general, and it holds on the transformer: on the 3.3M enwik8 cell, Bop's 4-bit EMA collapses on the absmax grid () and reaches on the aligned grid, below ED-int4 at the same 5 b/wt (1.707), while its FP EMA ties ED-int8 (1.524 vs. 1.516; Appendix F).
Is the buffer just a small integer latent weight? A -bit saturating integer latent weight with SR updates ties the buffer at every matched budget, and a symmetric integer grid satisfies by construction, so the buffer coordinates are the frame in which the design variable is visible rather than a separate method. Appendix E (Table 7) adds a sign counter, which wins at 8 bits but collapses at 2, and two budget-split ablations that do not beat it.
5.2 Transformers at a fixed budget and at convergence
Does the latent-free transformer meet the criterion? Table 2 shows the 2,000-step cells. ED with an 8-bit buffer trails the latent reference by , , and at 128, 256, and 512, inside the criterion at every width, and the 4-bit buffer is within 0.06 of the 8-bit one. Does the gap close with training? In the 50,000-step regime (Table 2, last column) ED reaches 1.583 with a linear flip-lr decay, within of the latent reference (1.556), and 1.586 without it. These single-run cells land within 0.035 of each other and FP32+Adam overfits this 1.1 MB corpus well before 50k steps, so we do not rank them.
5.3 Scaling ladders
Does the gap grow with scale? Table 3 gives both ladders. On byte-level enwik8, ED with an 8-bit buffer beats the latent reference by 2.5% at 0.5M parameters and trails it by 3.3% at 3.3M and 3.9% at 19M, so the gap stops widening between the two larger sizes. On tokenized wikitext-103 the two arms land within 0.15% of each other at the two smaller sizes, but at 19M ED trails by 10.2% at equal budget and 16.5% at a doubled budget. On this vocabulary the full-precision (FP) remnant, the parameters outside the binary layers (embeddings and head, 51.5M parameters) trained by Adam, outweighs the binary core 2.7:1, a regime the byte-level ladder never enters. Is training stable? At 19M on enwik8, two of five ED launches stall in the first 2,000 steps and finish 0.14–0.20 worse, so the 19M cell averages the three runs that did not stall (9.5% with the stalled runs included). Section 5.4 traces both the stalls and the tokenized gap to one event and removes it. Does a 4-bit buffer scale? At 2,000 steps it matches the 8-bit buffer (Table 2), but the gap opens with horizon and scale. On the enwik8 ladder, at probe-set flip-lrs two to four times below the 8-bit ones, the 4-bit buffer completes every size without stalls but trails the 8-bit buffer by 5.7%, 12.6%, and 17.2%, and the 50k convergence cell lands at 1.681 against 1.583.
5.4 Launch stalls are flip avalanches, and a per-step update cap removes them
Three questions remain from §5.3: what causes the 19M stalls, and whether a buffer initialization or a flip-lr warm-up prevents them; whether the tokenized gap comes from a learning-rate mismatch between the AdamW-trained FP remnant and the ED core; and whether the 4-bit buffer saturates over long horizons. Appendix F holds the diagnostics behind this section.
The stall. With evaluations every 100 steps and per-block diagnostics, every stalled launch shows the same event. Inside a single 100-step window the flip rate doubles (38k to 79k flips per step on one captured event), the mean pre-activation magnitude of the first block rises 2.6-fold (1.28 to 3.39), the gradient norm reaching the binary weights falls five-fold (0.0097 to 0.0018), and the validation loss rises by 0.6–1.4 nats; LayerNorm gains, the head norm, and the FP remnant's gradient stay on their trend. The core then runs at a tenth of its flip rate and recovers slowly. The “failure to ramp up” of §5.3 is the aftermath of one flip avalanche in the first block; it is a property of the realization, not the seed, and neither a non-zero buffer initialization (5 of 20 launches failed, against 3 of 20, over two realizations of seeds 0–9) nor a warm-up prevents it. On a step-2000 checkpoint the magnitude of the per-weight update never exceeds 0.19 flip units on an ordinary step (median 0.0066), so a cap at 0.25 flip units, before the buffer add, leaves ordinary steps untouched, removes the one-step route to an avalanche, and replaces the stall check of §4.
Results. Table 3, capped column: where no avalanche occurred (the two smaller sizes on both corpora) the cap moves the loss by at most 0.007 nats in either direction (same seed). At 19M it removes the stalls (avalanche-free launches 16 of 20 → 13 of 13 on enwik8; completed launches 3 of 15 → 5 of 5 on wikitext-103) and lowers the loss: enwik8 1.275 ± 0.007 against 1.288 ± 0.002 for the clean uncapped runs; wikitext-103 4.510 ± 0.006 against 4.920 at 15k steps and 4.371 against 5.075 at 30k. Under one recipe (probe-set flip-lr, linear decay, C = 1.0, binary activations, cap 0.25) the byte ladder reads −2.3%, +2.1%, +2.9% and the tokenized ladder 0.0%, −0.3%, +1.0% (+0.3% at 30k) against the latent reference. The 19M tokenized gap was an avalanche-rate problem, not a capacity or learning-rate one: with embeddings and head frozen, ED and the latent reference tie (7.279 against 7.243), and at a matched remnant learning rate of 10⁻⁴ they tie again (4.610 against 4.625). A fast remnant on a 50k-token vocabulary triggers the avalanche more often than byte-level data does; the remnant’s size (2.7× the core at 19M) is unchanged and remains a limitation.
The 4-bit buffer. Histograms of the buffer over its grid, logged every 1k steps in replicates of the 50k-step cells of Table 2, decide the third question: the 4-bit buffer holds 6.2–7.5% of its weights at every interior level from step 2k to 50k (uniform: 6.7%) with at most 0.6% on the rails, while the 8-bit buffer's mass gathers near the flip threshold (18.5% in each outermost sixteenth of the range at 50k, 0.2% on each rail). The 4-bit quantum (2/15 flip units) is about twenty times the median per-step drift, so rounding noise erases the accumulated signal: the gap is variance, not saturation, and it grows with horizon and scale because both shrink the drift relative to a fixed quantum. The wikitext-103 4-bit cells of Table 3 were run under the same protocol: uncapped, 5 of 6 launches at the two smaller sizes and all three 30k launches diverged with a steady flip rate, a failure we have not diagnosed and that the cap does not remove (one of two capped 30k launches diverged as well); the completed capped runs trail the capped 8-bit arm by 3.2%, 4.2%, 5.1%, and 7.1% at 30k, against 5.7%, 12.6%, and 17.2% on enwik8, where the cap changes the 4-bit cells by at most 0.005 nats.
5.5 Deploy-then-adapt
Can a deployed binary model keep learning? No latent copy exists, so the object being trained is the deployed binary network at every step, and adapting it in place adds only the b-bit buffer per weight. Loss falls from 2.32 to in 5,000 steps at 9 b/wt (3 seeds), against 1.95 for ED from scratch at the same budget and (3 seeds, at the best of three Adam learning rates) for continued latent-weight training with its full 97-bit state re-instantiated, so the buffer matches the re-instantiated latent weight. With a 4-bit buffer (5 b/wt) adaptation reaches , a 6% cost. Does it fit on inference-class hardware? We ported the adaptation step to a fused CPU kernel and ran it on the 19M-parameter enwik8 model, adapting to Shakespeare bytes for 2,000 steps (batch 8, block 128, one seed). The deployed artifact packs eight signs per byte into 4.0 MB, against 77 MB for the float32 latents and FP remnant. The kernel applies the integer update during backpropagation, stores no weight gradients, and draws SR bits from a stateless counter-based hash [Salmon et al., 2011]. We poll resident memory every step and abort a run when its peak above the post-setup baseline (about 750 MB of Python and PyTorch) exceeds a cap. Under a 275 MB cap the fused kernel peaks at 254 MB and reaches 1.513, within 0.017 of unconstrained latent-weight continuation (1.496), which peaks at 325 MB and aborts under 150 and 200 MB caps. The FP remnant still needs Adam state and the activation memory is unchanged.
5.6 The constant-drive transfer rule
Does one number set the flip-lr at every scale? Across three corpora, widths 128–512, two activation regimes, 8-bit and 4-bit buffers, and warm-started adaptation, the selected flip-lr varies from 12 to 225, but the drive at each selected flip-lr lies within flip units per step, and off-band candidates lose (Appendix E, Figure 3). A pre-registered prediction at (optimal flip-lr 80–90, Appendix D) held, with 80 winning at loss 1.782 (binary activations, 1 seed), 160 tying, and 40 losing. The MLP harness does not log the step-250 occupancy, so the MLP cells are absent from the figure, and the rule does not extend through heavy-ball momentum. Unlike P-style transfer [Noci et al., 2024, Yang et al., 2021], the rule is measured, not derived.
6 Limitations
The tasks are a synthetic MLP benchmark and language models with at most 19M parameters (70M with the wikitext-103 embeddings) and six layers on one GPU, evaluated by validation loss and synthetic accuracy, not downstream tasks. The 50,000-step and tokenized-ladder cells are single runs, so the small margins among the converged methods are not statistically separated. We do not claim wall-clock efficiency, the cost of generating SR bits is not measured, and every ladder size trains on fixed data, so the data dimension is untested [Kumar et al., 2025]. The FP remnant (embeddings, norms, head, and their Adam state) is now the dominant residual training memory. The 1-bit-gradient ablation (Appendix E) is scoped to the weight-gradient operand and shows that gradient bits and buffer bits should not both be cut aggressively. We claim no accuracy advantage over a well-built saturating integer latent weight ( ).
7 Conclusion
ED trains binary-weight MLPs and transformers on 3–9 bits of training state per weight, up to less than latent-weight training, by carrying each weight's unrealized update in a stochastically rounded buffer whose grid has a level at the flip threshold. With a per-step cap on the buffer update, the loss stays within to of the latent reference at all six ladder sizes ( ), and a deployed binary model continues training on a CPU within a 275 MB training-memory budget. The FP remnant is the next target.
Acknowledgments
We thank the two anonymous reviewers, whose questions on the 19M stalls, the full-precision remnant, and the 4-bit buffer led to §5.4.
References
D. Anastassiou. Error diffusion coding for A/D conversion. IEEE Transactions on Circuits and Systems, 36(9):1175–1186, 1989. ISSN 0098-4094. doi: 10.1109/31.34663. URL http://dx.doi.org/10.1109/31.34663.
Yoshua Bengio, Nicholas Léonard, and Aaron Courville. Estimating or propagating gradients through stochastic neurons for conditional computation, 2013. URL https://arxiv.org/abs/1308.3432. arXiv:1308.3432.
Charlie Blake, Constantin Eichenberg, Josef Dean, Lukas Balles, Luke Y. Prince, Björn Deiseroth, Andres Felipe Cruz-Salinas, Carlo Luschi, Samuel Weinbach, and Douglas Orr. u- P: The unit-scaled maximal update parametrization, 2024. URL https://arxiv.org/abs/2407.17465. arXiv:2407.17465.
Eduardo Lobo Lustoda Cabral, Paulo Pirozelli, and Larissa Driemeier. 1 bit is all we need: binary normalized neural networks, 2025. URL https://arxiv.org/abs/2509.07025. arXiv:2509.07025.
Mengzhao Chen, Chaoyi Zhang, Jing Liu, Yutao Zeng, Zeyue Xue, Zhiheng Liu, Yunshui Li, Jin Ma, Jie Huang, Xun Zhou, and Ping Luo. Scaling law for quantization-aware training, 2025. URL https://arxiv.org/abs/2505.14302. arXiv:2505.14302.
Kamran Chitsaz, Quentin Fournier, Gonçalo Mordido, and Sarath Chandar. Exploring quantization for efficient pre-training of transformer language models, 2024. URL https://arxiv.org/abs/2407.11722. arXiv:2407.11722.
Luca Colombo, Fabrizio Pittorino, and Manuel Roveri. Training multi-layer binary neural networks with local binary error signals, 2024. URL https://arxiv.org/abs/2412.00119. arXiv:2412.00119.
Luca Colombo, Fabrizio Pittorino, Daniele Zambon, Carlo Baldassi, Manuel Roveri, and Cesare Alippi. BEP: A binary error propagation algorithm for binary neural networks training, 2025. URL https://arxiv.org/abs/2512.04189. arXiv:2512.04189.
Matthieu Courbariaux, Yoshua Bengio, and Jean-Pierre David. BinaryConnect: Training deep neural networks with binary weights during propagations. In Advances in Neural Information Processing Systems 28 (NeurIPS), 2015. URL https://arxiv.org/abs/1511.00363. arXiv:1511.00363.
Wojciech Czaja and Sanghoon Na. Frame quantization of neural networks, 2024. URL https://arxiv.org/abs/2404.08131. arXiv:2404.08131.
Robert W. Floyd and Louis Steinberg. An adaptive algorithm for spatial greyscale. Proceedings of the Society for Information Display, 17(2):75–77, 1976.
Elias Frantar, Utku Evci, Wonpyo Park, Neil Houlsby, and Dan Alistarh. Compression scaling laws: Unifying sparsity and quantization, 2025. URL https://arxiv.org/abs/2502.16440. arXiv:2502.16440.
Koen Helwegen, James Widdicombe, Lukas Geiger, Zechun Liu, Kwang-Ting Cheng, and Roeland Nusselder. Latent weights do not exist: Rethinking binarized neural network optimization. In Advances in Neural Information Processing Systems 32 (NeurIPS), 2019. URL https://arxiv.org/abs/1906.02107. arXiv:1906.02107.
Markus Höhfeld and Scott E. Fahlman. Probabilistic rounding in neural network learning with limited precision. Neurocomputing, 4(6):291–299, 1992. doi: 10.1016/0925-2312(92)90014-g.
Marcus Hutter. The human knowledge compression contest. http://prize.hutter1.net, 2006.
Sai Praneeth Karimireddy, Quentin Rebjock, Sebastian U. Stich, and Martin Jaggi. Error feedback fixes SignSGD and other gradient compression schemes. In ICML, 2019.
Andrej Karpathy. The unreasonable effectiveness of recurrent neural networks. https://karpathy.github.io/2015/05/21/rnn-effectiveness/, 2015.
Andrej Karpathy. nanoGPT. https://github.com/karpathy/nanoGPT, 2022.
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015.
Tanishq Kumar, Zachary Ankner, Benjamin F. Spector, Blake Bordelon, Niklas Muennighoff, Mansheej Paul, Cengiz Pehlevan, Christopher Ré, and Aditi Raghunathan. Scaling laws for precision. In International Conference on Learning Representations (ICLR), 2025. URL https://arxiv.org/abs/2411.04330. arXiv:2411.04330.
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations (ICLR), 2019.
Eric Lybrand and Rayan Saab. A greedy algorithm for quantizing neural networks, 2020. URL https://arxiv.org/abs/2010.15979. arXiv:2010.15979.
Shuming Ma, Hongyu Wang, Lingxiao Ma, Lei Wang, Wenhui Wang, Shaohan Huang, Li Dong, Ruiping Wang, Jilong Xue, and Furu Wei. The era of 1-bit LLMs: All large language models are in 1.58 bits, 2024. URL https://arxiv.org/abs/2402.17764. arXiv:2402.17764.
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. In International Conference on Learning Representations (ICLR), 2017.
Ionut-Vlad Modoranu, Mher Safaryan, Grigory Malinovsky, Eldar Kurtic, Thomas Robert, Peter Richtárik, and Dan Alistarh. MicroAdam: Accurate adaptive optimization with low space overhead and provable convergence. In Advances in Neural Information Processing Systems 37 (NeurIPS), 2024. URL https://arxiv.org/abs/2405.15593. arXiv:2405.15593.
Van Minh Nguyen, Cristian Ocampo, Aymen Askri, Louis Leconte, and Ba-Hien Tran. BOLD: Boolean logic deep learning, 2024. URL https://arxiv.org/abs/2405.16339. arXiv:2405.16339.
Mahdi Nikdan, Amir Zandieh, Dan Alistarh, and Vahab Mirrokni. ECO: Quantized training without full-precision master weights, 2026. URL https://arxiv.org/abs/2601.22101. arXiv:2601.22101.
Lorenzo Noci, Alexandru Meterez, Thomas Hofmann, and Antonio Orvieto. Super consistency of neural network landscapes and learning rate transfer. In Advances in Neural Information Processing Systems 37 (NeurIPS), 2024. URL https://arxiv.org/abs/2402.17457. arXiv:2402.17457.
Peter O'Connor and Max Welling. Sigma delta quantized networks, 2016. URL https://arxiv.org/abs/1611.02024. arXiv:1611.02024.
Peter O'Connor, Efstratios Gavves, and Max Welling. Temporally efficient deep learning with spikes. In International Conference on Learning Representations (ICLR), 2018. URL https://arxiv.org/abs/1706.04159. arXiv:1706.04159.
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. Technical report, OpenAI, 2019.
Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. XNOR-Net: ImageNet classification using binary convolutional neural networks. In European Conference on Computer Vision (ECCV), 2016. URL https://arxiv.org/abs/1603.05279. arXiv:1603.05279.
Peter Richtárik, Igor Sokolov, and Ilyas Fatkhullin. EF21: A new, simpler, theoretically better, and practically faster error feedback. In Advances in Neural Information Processing Systems 34 (NeurIPS), 2021. URL https://arxiv.org/abs/2106.05203. arXiv:2106.05203.
John K. Salmon, Mark A. Moraes, Ron O. Dror, and David E. Shaw. Parallel random numbers: As easy as 1, 2, 3. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (SC '11), pages 16:1–16:12, 2011.
Frank Seide, Hao Fu, Jasha Droppo, Gang Li, and Dong Yu. 1-bit stochastic gradient descent and its application to data-parallel distributed training of speech DNNs. In Interspeech, pages 1058–1062, 2014.
Hongyu Wang, Shuming Ma, Li Dong, Shaohan Huang, Huaijie Wang, Lingxiao Ma, Fan Yang, Ruiping Wang, Yi Wu, and Furu Wei. BitNet: Scaling 1-bit transformers for large language models, 2023. URL https://arxiv.org/abs/2310.11453. arXiv:2310.11453.
Junhao Xia, Ming Zhao, Limin Xiao, and Xiujun Zhang. SDQ-LLM: Sigma-delta quantization for 1-bit LLMs of any size, 2025. URL https://arxiv.org/abs/2510.03275. arXiv:2510.03275.
Greg Yang, Edward J. Hu, Igor Babuschkin, Szymon Sidor, Xiaodong Liu, David Farhi, Nick Ryder, Jakub Pachocki, Weizhu Chen, and Jianfeng Gao. Tensor Programs V: Tuning large neural networks via zero-shot hyperparameter transfer. In Advances in Neural Information Processing Systems 34 (NeurIPS), 2021. URL https://arxiv.org/abs/2203.03466. arXiv:2203.03466.
Mikail Yayla and Jian-Jia Chen. Memory-efficient training of binarized neural networks on the edge. In Proceedings of the 59th ACM/IEEE Design Automation Conference, DAC '22, pages 661–666. ACM, July 2022. doi: 10.1145/3489517.3530496. URL http://dx.doi.org/10.1145/3489517.3530496.
Shuchang Zhou, Yuxin Wu, Zekun Ni, Xinyu Zhou, He Wen, and Yuheng Zou. DoReFa-Net: Training low bitwidth convolutional neural networks with low bitwidth gradients, 2016. URL https://arxiv.org/abs/1606.06160. arXiv:1606.06160.
A Error diffusion in halftoning and in the weight update
(a) grayscale

(c) simulated ED buffer, one weight: residual → next step; flips fire at the threshold
(b) halftone: residual → later pixels


(d) flips follow demanded movement with a lag: clamp and SR noise let the gap exceed
blue: cumulative demanded black: realized by flips grey band: red: flip times
Figure 2: Error diffusion in halftoning and in the weight update. Panels (a) and (b) show Floyd–Steinberg halftoning, which renders a grayscale image with binary pixels by carrying each pixel’s rounding residual forward in scan order. Panel (c) shows the ED optimizer applying the same recurrence in time, on a simulated weight with an illustrative drive. A binary weight’s unrealized updates accumulate in a small quantized buffer (2-bit here), and a flip fires when stochastic rounding lands the buffer on the threshold level ( 5.1). Panel (d) compares the cumulative demanded movement with the movement realized by flips. The flips follow the demand with a lag. The gap can exceed C, because the clamp at discards updates that push a weight further toward its current sign, and stochastic rounding adds zero-mean noise that the buffer does not carry forward.
B The 250-step drive-probe protocol
-
Configure the target run exactly (model, data, batch, block, binarization). Pick two or three candidate flip-lrs that bracket a linear-scaling guess from the nearest known scale.
-
Train 250 steps per candidate. Record the mean absolute buffer occupancy at step 250 (flip units).
-
Compute the drive in flip units per step. Select the candidate with . If none lands in the band, interpolate and re-probe.
-
The rule has known boundaries. It does not extend through heavy-ball momentum. At the largest widths prefer the band's lower edge, because at 4 bits an in-band probe reading can precede buffer saturation. Re-probe after any change of dataset, tokenizer, block size, or warm-start status.
-
The cost is the number of candidates steps (up to about 11 GPU-minutes per candidate at 19M parameters). For long runs add the stall check, which restarts with a new seed if validation loss at step 2k exceeds its value at step 1k.
C Hyperparameters and compute
Transformers. All transformer cells share one nanoGPT-style architecture (token and position embeddings, pre-LayerNorm blocks, causal attention, GELU MLP with expansion, untied bias-free head) and the settings in Table 4. The four projections of every block (query-key-value, attention output, MLP input, MLP output) are binary. The FP parameters (embeddings, LayerNorms, head) and, in the latent arms, the latent weights are trained by AdamW with learning rate , , weight decay 0.01, no warmup, no schedule, no gradient clipping, and dropout 0. Weights initialize as and the per-layer scale is fixed. Binary activations apply with a per-batch abs-mean scale to the MLP hidden layer only, with a clipped STE that passes the gradient where , and attention internals stay FP. Validation loss is the mean over a fixed set of validation batches (50 batches of 64 sequences, 25 for wikitext-103) drawn with a fixed generator, and every cell reports the best validation loss over its evaluations. One CPU generator per run, seeded by the seed, drives initialization, batch sampling, and SR draws. The flip-lr decays linearly to in runs of 15k steps and longer.
Table 4: Transformer cells. “Layers/heads/d” give depth, head count, and width; “binary” is the number of binary weights and “FP” the FP remnant. Flip-lrs are for the 8-bit buffer with the 4-bit value in parentheses where a 4-bit cell exists. The deploy-then-adapt latent arm was swept over Adam learning rates .
| cell | layers/heads/d | binary / FP params | data, block, batch, steps (eval every) | binact | flip-lr | seeds |
|---|---|---|---|---|---|---|
| Table 2, 2k | 4/4/128, 256, 512 | 0.79M/52k, 3.1M/103k, 12.6M/207k | Shakespeare char, 256, no 64, 2k (250) | 100, 60, 80 (100, 60, 80) | 0, 1, 2 | |
| Table 2, 50k | 4/4/256 | 3.1M/103k | Shakespeare char, 256, yes 64, 50k (1000) | 60 (45) | 0 | |
| enwik8 ladder | 2/4/128, 4/4/256, 6/8/512 | 0.39M/100k, 3.1M/201k, 18.9M/407k | enwik8 bytes, 256, 64, yes 15k (1000) | 25, 60, 180 (12, 30, 45) | 0, 1, 2 (+3, 4 at 512) | |
| wikitext-103 ladder | same three | 0.39M/12.9M, 3.1M/25.8M, 18.9M/51.5M | GPT-2 BPE, 128, 64, 15k yes (30k at 512) (1000) | 40, 90, 225 | 0 | |
| deploy-then-adapt | 4/4/256 | 3.1M/201k | Shakespeare bytes, 256, yes 64, 5k (250) | 60 (30) | 0, 1, 2 | |
| 1-bit gradients | 4/4/256 | 3.1M/103k | Shakespeare char, 256, yes 64, 2k (250) | adaptive drive 0.03 | 0, 1, 2 | |
| CPU kernel | 6/8/512 | 18.9M/341k | Shakespeare bytes, 128, 8, yes 2k (500) | 60 | 0 |
MLP benchmark. The teacher draws 24,000 inputs with a fixed seed and labels them by the argmax of a 4-layer tanh network (64→48, then three 48→48 layers) followed by a random readout, and the first 20,000 examples train while the last 4,000 test. The student is a frozen random FP projection with ReLU, two binary layers with binary activations, and a trainable FP readout . Every cell trains 25 epochs at batch 128 (3,925 steps) with Adam at for the readout (and for the latent weights in the latent arms), flip-lr 1.0, and seeds 0–4. The 8-bit series of Figure 1 and Table 6 use ; the naive column of Table 1 uses . Dithered Bop keeps an EMA with at width 192 ( in the width sweep), flips when with the sign of opposing , resets to 0 on a flip, and takes the best
at width 192 ( in the width sweep). Its absmax grid quantizes onto levels over per layer, and the threshold-aligned grid uses with the flip test . The 1-bit-gradient cells round each binary layer's backward operands with per-row absmax scaling after a random-Hadamard transform of block 32 built from a Sylvester matrix and a random sign diagonal, without clipping; the transformer cells of Appendix E clip at the row abs-mean and do not use the transform.
Data. Shakespeare is the 1,115,394-byte tiny Shakespeare file with a 65-symbol character vocabulary (or 256 byte values), split 90/10 by position. enwik8 is the first bytes of English Wikipedia, split 90/5/5 by position with the last unused. wikitext-103 is the raw training split tokenized with the GPT-2 byte-pair encoding into 117.9M tokens, split 90/5/5 by position with the last unused, so the official validation and test splits are not used.
Compute. Every run uses one NVIDIA GeForce RTX 4080 SUPER (16 GB) on a Windows 11 workstation with an AMD Ryzen 5 7600 CPU, PyTorch 2.11 with CUDA 12.8. Wall-clock times per run: MLP 5-seed cells 16–90 s (longer at width 384 and with 1-bit gradients); Shakespeare 2k steps 0.4–1.4 min at d=128, 0.8–2.5 min at 256, 2.2–6.3 min at 512; Shakespeare 50k steps 25 min (FP32, latent) to 40 min (ED); enwik8 sizes 1.6–3.0, 5.5–11, and 23–55 min by size; wikitext-103 sizes 8–10, 12–17, and 26–44 min, with 61–91 min for the 30k-step cells; 5k-step adaptation 2.5–3.9 min; a 250-step probe 0.1–11 min (longest for wikitext-103 at 19M). The CPU kernel runs 1.6 steps per second at 19M parameters (about 21 min for 2,000 steps).
D Pre-registered predictions
Table 5 lists the predictions and pass criteria we wrote down before running the corresponding cells. The records are dated planning and results documents in the public code repository (docs/; Appendix G), not timestamped commits, because the version history begins after the first predictions were recorded. We report every prediction, including the one that failed.
Table 5: Pre-registered predictions and criteria, in the order they were recorded.
| prediction or criterion | record | outcome |
|---|---|---|
| Transformer pass criterion: ED-int8 within +20% of the latent reference after a flip-lr sweep, else report the negative d=512 flip-lr optimum at 80-90 (drive ), bracket {40, 80, 160}, pass if the interior candidate wins Ladder gate: ED loss runs parallel to the latent reference across sizes, and the two controls (binary activations in both arms, re-probed flip-lrs) were named before running Threshold-aligned regrid rescues dithered Bop's 4-bit collapseVelocity-scaled drive predicts that heavy-ball momentum cells at flip-lr 1.0 destabilizeSecond-order buffer: if 2+2 bits beats a 4-bit buffer the exchange curve improves, else it is droppedStall signature: validation loss at 2k above its 1k value identifies stalls, restart with a new seedCPU kernel: warm-started ED reproduces the GPU adaptation loss under the cap, the latent arm cannot run4-bit 50k cell comparable to 8-bit only at the drive-matched flip-lr (45) | docs/ADR.md (ADR-010), 2026-07-14docs/scaling-plan.md, 2026-07-14docs/scaling-plan.md, docs/RESULTS_s2.md (S2.6), 2026-07-14/15docs/RESULTS_s2.md (S2.11), 2026-07-14 to 16docs/RESULTS_s2.md (S2.4), 2026-07-15docs/ADR.md (ADR-013), 2026-07-15docs/RESULTS_s2.md (S2.9), 2026-07-15companion repo docs/plan.md, 2026-07-16docs/RESULTS_s2.md (S2.18), 2026-08-23 | passed, +4.8/ + 8.1/ + 11.4% at d 128/256/512 (3 seeds)passed, 80 wins (1.782) with 160 tying (1.783)passed after the controls, -2.5/ + 3.3/ + 3.9%passed, 46.5 → 57.0 at 5 b/wtfailed, they did not destabilize (rule does not extend through momentum)negative, droppedheld on 4 of 4 stallspassed, 1.513 under 275 MB, latent 325 MB1.681 vs. 1.583 |
E Additional results and ablations
Exchange-curve values and drive probes. Table 6 lists the values plotted in Figure 1, and Figure 3 plots every probe and sweep run behind the transformer cells (§5.6).
Controls and budget-split ablations. Table 7 gives the controls of §5.1 at matched training-state budgets. A -bit saturating integer latent weight with SR updates and sign readout ties the buffer at every matched budget, and a symmetric integer grid satisfies by construction, so the buffer coordinates are the frame in which the design variable is visible rather than a separate method. A

Figure 3: Drive at step 250 against the candidate flip-lr for every probe and sweep run behind the transformer cells (three corpora, widths 128–512, 8-bit and 4-bit buffers, from-scratch and warm-started). Filled markers are the flip-lrs selected for the reported cells, and hollow markers are the rejected candidates. The shaded band is the selection rule . Every selected flip-lr lies in the band or within below it, while the selected flip-lrs themselves span 12–225.
Table 6: Test accuracy (%) on the MLP benchmark by width , mean std over 5 seeds. All ED and Bop series use binary activations and ; the FP32+Adam series uses FP activations.
| W | 64 | 96 | 128 | 192 | 256 | 384 |
|---|---|---|---|---|---|---|
| latent reference (97 b/wt) | 40.9 ± 1.2 | 47.3 ± 1.1 | 52.3 ± 1.4 | 57.5 ± 1.0 | 59.5 ± 1.4 | 62.4 ± 0.3 |
| FP32+Adam (96 b/wt) | 42.8 ± 1.6 | 46.9 ± 1.4 | 50.3 ± 1.5 | 55.8 ± 1.0 | 58.3 ± 0.7 | 61.2 ± 0.6 |
| ED-int8 (9 b/wt) | 39.8 ± 1.2 | 46.0 ± 2.5 | 50.9 ± 1.2 | 56.3 ± 1.4 | 59.4 ± 0.6 | 62.3 ± 0.3 |
| dithered Bop int8 (9 b/wt) | 41.3 | 47.8 | 51.7 | 57.2 | 59.6 | 62.0 |
| ED-int4 (5 b/wt) | 40.3 ± 1.3 | 46.8 ± 1.6 | 50.4 ± 1.2 | 56.4 ± 1.3 | 59.8 ± 0.8 | 62.5 ± 0.5 |
magnitude-free sign counter [Colombo et al., 2024] scores at 8 bits, above both ED and the latent reference, but falls to 52.4 at 4 bits and 10.1 at 2 bits, where ED holds 56.4 and 52.3, so below 5 bits per weight only the dithered error-feedback buffer keeps accuracy above the frozen control. A 2-bit buffer plus 2-bit SR-quantized momentum (5 b/wt) scores 48.9 against 56.4 for the 4-bit buffer, a 4+4 split ties at 9 b/wt (56.3), and a second-order cascade scores 17–29% at the two budgets tested (9 b/wt and 5 b/wt), which confirms the buffer-only design. The ECO-style carrier transposes the master-weight-free error feedback of Nikdan et al. [2026] to binary weights by decaying the carried residual with a factor each step, so is the ED buffer.
Table 7: Controls at width 192 on the MLP benchmark, test accuracy (%), 5 seeds, binary activations. Budgets are bits of training state per weight.
| method | 9 b/wt | 5 b/wt | 3 b/wt |
|---|---|---|---|
| ED buffer (C=1.0) | 56.3 | 56.4 | 52.3 |
| saturating integer latent weight, SR updates, sign readout | 56.2 | 56.1 | 52.1 |
| magnitude-free sign counter [Colombo et al., 2024] | 58.4 ± 0.8 | 52.4 | 10.1 |
| buffer plus SR-quantized momentum (budget split) | 56.3 | 48.9 | |
| second-order ΔΣ cascade | 29.1 | 22.5 | - |
| ECO-style decayed carrier, β = 0.9/0.99/1 | 45.4 / 55.3 / 56.3 at 8 buffer bits | ||
One-bit gradients. Unbiased 1-bit SR of the backward operands, with per-row absmax scaling and with or without random-Hadamard mixing at block sizes 32–128, fails on transformer gradients at every learning rate, with validation loss never falling below the unigram level. Clip-then-SR (clip at the row abs-mean) restores learning, and mixing adds nothing. Scoped to the weight-gradient path [Chitsaz et al., 2024] with a per-layer adaptive drive, the 1-bit-gradient configuration reaches
(3 seeds) at and 2k steps, within of FP-gradient ED (1.881 at a constant flip-lr 60). Table 8 gives the interaction with buffer width on the MLP benchmark.
Table 8: Cost of 1-bit gradients (SR after a random-Hadamard transform of block 32, per-row absmax, no clipping) by buffer width at width 192 on the MLP benchmark, test accuracy (%), 5 seeds, binary activations, .
| buffer bits | FP gradients | 1-bit gradients | cost (points) |
|---|---|---|---|
| 8 | 56.3 ± 1.4 | 55.2 ± 1.3 | -1.0 |
| 4 | 56.4 ± 1.3 | 48.6 ± 1.0 | -7.7 |
| 2 | 52.3 ± 1.2 | 38.1 ± 0.9 | -14.2 |
F Diagnostics behind §5.4
Cell for the stall study: enwik8, 6L/512, int8 buffer, flip-lr 180 with linear decay, binary activations, evaluations every 100 steps.
Cohorts. Zero-initialized buffers, seeds 0–9: 2 stalls by the registered rule (seeds 2 and 3, S2.9) plus one transient spike that the rule does not catch. Buffers initialized uniformly in , seeds 0–9: 3 stalls (two late collapses at step 3k and one at 2k) and one slow run. A diagnostic replicate of all 20 launches: 4 avalanches above threshold (flip rate and first-block pre-activation scale between consecutive 100-step evaluations) plus one minor event; block 0 was the epicenter every time. Twelve continuations from a re-created step-2000 checkpoint with identical weights, buffers, Adam state, and random streams all ran clean, and CUDA non-associativity alone spread their best loss by 0.016–0.018 nats.
One captured event. Table 9 and Figure 4 show the diagnostics of one collapsed launch (initialization 0.5, seed 6) next to a clean one from the same cohort (seed 4).
Table 9: The captured avalanche, initialization 0.5, seed 6: diagnostics at the 100-step evaluations around the event. The FP-remnant columns (LayerNorm gains, head norm, remnant gradient) stay on their prior trend while the binary core's columns jump.
| step | val loss | flips/step | buffer |e| | act. scale, blocks 0 / 1 / 2 | grad, binary proxies | grad, FP remnant | LN gain mean / max | head norm |
|---|---|---|---|---|---|---|---|---|
| 1800 | 2.107 | 36.7k | 0.449 | 1.26 / 0.87 / 0.73 | 0.0106 | 0.81 | 1.012 / 1.16 | 19.4 |
| 1900 | 2.053 | 38.4k | 0.455 | 1.28 / 0.89 / 0.74 | 0.0097 | 0.72 | 1.013 / 1.16 | 19.6 |
| 2000 | 3.488 | 79.2k | 0.535 | 3.39 / 2.58 / 1.29 | 0.0018 | 0.45 | 1.014 / 1.17 | 19.7 |
| 2100 | 3.078 | 4.0k | 0.530 | 3.22 / 2.59 / 1.31 | 0.0041 | 0.55 | 1.014 / 1.18 | 19.6 |
| 2500 | 2.685 | 18.3k | 0.520 | 2.71 / 2.38 / 1.31 | 0.0063 | 0.57 | 1.013 / 1.18 | 20.4 |
| 3000 | 2.490 | 23.4k | 0.516 | 2.50 / 2.02 / 1.22 | 0.0073 | 0.69 | 1.012 / 1.17 | 21.0 |
Capped cohorts. Zero initialization, seeds 0–9, 3000 steps: 0 avalanches, validation loss at 3k against uncapped (1.767 for the seven clean uncapped runs). Full 15k runs, seeds 0–2: 1.2664, 1.2754, 1.2834, no stall. On wikitext-103 at 19M the capped arm (remnant Adam , flip-lr 225) ran monotonically: 5.79, 5.40, 5.18, 5.04, 4.93, 4.90, 4.78, 4.73, 4.70, 4.66, 4.63, 4.59, 4.56, 4.53, 4.50 at every 1k steps, against 6.21, 5.89, 6.29, 5.83, 5.59, 5.41, 6.55, 5.78, 5.38, 5.61, 5.27, 5.16, 5.06, 4.97, 4.92 uncapped.
Remnant controls at 19M on wikitext-103 (15k steps, seed 0 unless stated). Frozen token and position embeddings: the latent arm 5.122, the ED arm diverged in 3 of 3 launches. Remnant Adam : latent 4.625, ED 4.610 (one of five launches) and 4.615 with the cap. Remnant Adam decaying : ED 4.681 (one of three launches). Remnant Adam : latent 5.143, ED diverged in 3 of 3 launches at its probe-set flip-lr 400. Embeddings and head frozen (LayerNorms trainable): latent 7.243, ED 7.279.
Bop on the transformer (enwik8, 4L/256, binary activations, 15k steps, 3 seeds, std). Bop needs its published scale here, and (bracketed: gives , gives ; oscillates or freezes), and the 2k-step cells of Table 2 are too short for its EMA

Figure 4: The same two launches at 100-step resolution: validation loss, flips per step, first-block pre-activation scale, and the gradient norm reaching the binary proxies. The marker is the collapsed launch at step 2000. Everything that defines the event happens inside one evaluation window; recovery runs at a tenth of the normal flip rate.
to settle. A frozen core (no flips) reaches 2.069. Bop with the FP32 EMA (33 b/wt): ; ED-int8 (9 b/wt): ; Bop with a 4-bit EMA on the absmax grid: , two of three launches early-stopped with about one flip per step after step 3k; on the -aligned grid: ; ED-int4: . The rescue is partial here where it was total on the MLP: the transformer's EMA values ( ) sit on the lowest levels of a 16-level grid over , where stochastic rounding adds flips that are partly noise.
4-bit buffer on wikitext-103 (probe-set flip-lrs 20 / 45 / 45). Uncapped: 2L/128 diverged at 7k and 3k, third launch 5.224; 4L/256 diverged at 7k, 5k, 2k; 6L/512 completed at the first launch, 4.749; 6L/512 at 30k diverged at 5k in all three launches. Capped: 5.275, 4.974, 4.742, each at the first launch; at 30k the first launch diverged at 7k and the second completed at 4.681. On enwik8 the capped 4-bit cells (flip-lrs 12 / 30 / 45) are 2.007, 1.711, 1.509 against 2.002, 1.707, 1.510 uncapped.
G Reproducibility
All experiments are seeded, with a single CPU generator per run and a documented consumption order; CUDA kernel non-associativity still separates reruns of one configuration by up to about 0.02 nats in stable runs, and can decide whether an uncapped launch stalls (Appendix F). Every result row is one JSON Lines (JSONL) record that carries its configuration (the latent-arm rows of the adaptation log omit the Adam learning rate, which the run script sets). Code, run scripts, logs, and the dated records are public at https://github.com/pierreolivierbonin/error-diffusion-binary-weight-lms under the MIT License. The main branch holds the experiments of Sections 3–5, and each experiment behind §5.4 has its own branch with the exact code that produced its logs; Table 10 maps each reported artifact to its script and log. A large language model (LLM) assisted with drafting, experiment orchestration, and literature search under the author's direction. Seeded code produced all results. All citations were checked programmatically against arXiv, DOI, and Semantic Scholar records. The author reviewed and takes responsibility for all content.
| Artifact | Script(s) | Log(s) |
|---|---|---|
| Fig. 2MLP headline, Fig. 1 | tools/plot_halftone_concept_sim.pyheadline.sh, widthsweep.sh, widthsweep_int4c1.sh, r4_fixes.sh | self-contained, fixed seedheadline_5seed, widthsweep_5seed, widthsweep_int4c1, r4_widthsweep_int8c1 |
| Table 1 (ED) | p2clamp.sh, p2boundary.sh | p2clamp, p2boundary_5seed |
| Table 1 (Bop) | s2bopalign.sh, s2bopalign2.sh | s2bopalign, s2bopalign2 |
| Integer latent, counter, ECO-style carrier | s2intlat.sh, s2baselines.sh | s2intlat, s2baselines |
| Second-order buffer | s2sigma.sh | s2sigma |
| Table 2 | p3gpt.sh, audit_fix.sh, s2int4gpt.sh, r4_fixes.sh, 50k cells | p3gpt, audit_fix, s2int4gpt, r4_gpt_seed2, s2converged, s2decay, s2stationarity |
| 1-bit gradients, interaction (App. E) | p3qfix.sh, scoped runs, audit_fix.sh, r4_fixes.sh | p3qfix, p3scope, audit_fix_mlp, r4_mlp |
| Table 3 (byte ladder) | s2controls.sh, s2ladderseeds.sh, s2int4gpt3.sh | s2controls, s2ladderseeds, s2int4gpt3 |
| Table 3 (tokenized ladder) | s2tokladder.sh | s2tokladder, s2tok512long |
| Deploy-then-adapt ($5.5) | s2adapt1.sh, s2adapt2.sh, s2int4gpt2.sh, r4_fixes.sh | s2adapt, s2int4gpt, r4_adapt |
| Drive rule ($5.6, Fig. 3)$5.4, Appendix F | probes, s2tokprobe.sh, s2int4probe*.shr5_e2*.sh, r5_e3*.sh, r5_e5*.sh, r5_e1_int4_drift.sh, r5_e4*.sh | s2*probe*, parityprobe, s2ruler5_e2*, r5_e3*, r5_e5*, r5_e1_int4_drift_v2, r5_e4* |
Table 10: Scripts (scripts/, tools/) and JSONL logs (results/) behind each artifact. The files of the last row are on the repository branches whose names start with r5-e1 to r5-e5.