Papers · 2026 · Reading: 24 min, plus 4 in closed details. +3h 20m of resources. Data as of 2 November 2026.
Paper · arXiv preprint · arXiv 2610.41073

bf16 Rounding Silently Discards Most RL Policy Updates: A Hidden Training-Inference Mismatch and an Unbiased One-Line Fix (Fair Cast)

Andrew Gao, William Gao
Stanford · 29 October 2026 (arXiv v1, the only version as of 2 November 2026)

In one line: On single-GPU GRPO runs with Qwen3-0.6B to 4B, exporting the fp32 master to the bf16 sampler with stochastic rounding and computing the loss on that served copy, instead of round-to-nearest, ended more than one point ahead in held-out accuracy on 18 of 25 matched seed-pairs, within one point on 6 and behind on 1 (mean +6.1 points, median +3.1, much of it from three zebra-puzzle pairs).

0.4 to 0.5% of served weights change
per optimizer step on Qwen3-1.7B at learning rate 10⁻⁶ under round-to-nearest export; under Fair Cast 2 to 15% change
measured over a full run · §3, Figure 4b
18 / 6 / 1 of 25 seed-pairs
Fair Cast ahead by more than one point / within one point / behind, final held-out accuracy after 150 steps; mean +6.1 points, without the three zebra pairs +2.5
recomputed from the released per-pair table · Table 2
0.57 vs 0.33 zebra accuracy
Fair Cast (4 runs, ± 0.16) against round-to-nearest (3 runs, ± 0.10), Qwen3-1.7B; round-to-nearest collapsed on every seed, an fp32 sampler reached 0.69
one Fair Cast run also fell, to 0.34 · §7.2, Figure 5

How far to trust it: Believe the mechanism: the dead-zone arithmetic is exact, the fix is a few lines of released code, and the paper measures the lag directly (one optimizer step moves an fp32 sampler from 0.17 to 0.84 while the bf16 export stays at 0.19). Treat the size of the gain as provisional: one training implementation, models up to 4B, mostly single seeds, 14 of the 25 differences smaller than one standard error, a mean carried by three zebra pairs, and one task (list functions) where removing the lag cost 14.5 points until an explicit EMA lag was added back. The evidence, judged.

The idea in one sentence

§1

RL trainers keep fp32 master weights but sample from a bf16 copy made by round-to-nearest, which throws away every update smaller than half a bf16 gap, so the sampler serves a policy tens to hundreds of steps old; exporting with stochastic rounding (unbiased: the copy equals the master on average) and computing the loss on that exact served copy removes the lag (abstract and §1).

Fig. 1 · Where the two ratios live: what frameworks check, and what they never form

  1. The fp32 master. The optimizer (AdamW at η ≈ 10−6) has just updated the master weights θ, the grey glass plate: they hold the optimizer's view of the policy.
  2. Export by round-to-nearest. After every step the master is cast to bf16 for the sampler. Almost every per-step update is smaller than half a bf16 gap, so the cast drops it: only 0.4 to 0.5% of served weights change per step on Qwen3-1.7B, a thin stream into the orange copy q.
  3. vLLM samples from the copy. Rollouts (24 prompts, groups of 8, up to 2,048 tokens) come from q, so the policy that acts is the stale one.
  4. The trainer reads the same rounded weights. Its forward pass runs in bf16, so trainer and sampler agree: the visible ratio πtrainer/πsampler stays at one (mean |log ρ| about 0.01, the short green bar). That is the ratio PPO clipping, TIS and IcePop check.
  5. The update lands on θ, and the gap nobody measures grows. The master moves on; the copy does not follow. The hidden ratio πθ/πq (red) climbs to 0.10 to 0.16 on MATH and about 0.45 on knights-and-knaves, and no framework computes it.

Redrawn from Figure 2: the loop runs clockwise from the master (back left) through the export and the served copy to the sampler and the trainer, and the update returns to the master. The two boxes Fair Cast changes are the export and the trainer's forward pass. The |log ρ| values are the paper's measurements on Qwen3-1.7B at η = 10−6 (§4, Figure 4c); the stream densities are schematic.

You need: the GRPO loop and the importance ratio πnew/πold that PPO clips and TIS reweights (RL for LLMs); how bf16 stores a number, the gap between neighbouring values, round-to-nearest and stochastic rounding, and why mixed-precision training keeps fp32 master weights (Numerical computing, sections 2, 3 and 9); the straight-through estimator of quantisation-aware training (Quantization and Precision, section 5).

New terms on this page
Master θ
the fp32 weights the optimizer updates; they hold the optimizer's view of the policy.
Served copy q
the bf16 weights the inference engine (vLLM here) samples rollouts from; q = R(θ), made by the export rule R after every optimizer step.
Gap u
the spacing between neighbouring bf16 values near a weight w: u = 2⌊log₂|w|⌋ − 7, between |w|/256 and |w|/128 (§3).
Dead zone
round-to-nearest leaves the copy unchanged until the master has moved more than u/2 from it, so smaller accumulated updates never reach the sampler.
Visible ratio
πtrainer/πsampler, the trainer's and the engine's probability of the same token (Eq. 3); what PPO clipping, TIS and IcePop look at.
Hidden ratio
πθ/πq, the master policy against the served policy (Eq. 4); no framework computes it.
Lag
how many optimizer steps of motion the served copy is missing.
Stochastic rounding (SR)
round up with probability equal to the fractional position between the two neighbours, so the expected copy equals the master.
Error feedback (EF)
carry each weight's rounding error into the next export, so errors cancel over time.
Training on the served copy
the trainer's forward pass uses exactly q; the gradient is passed to θ unchanged (straight-through).
EMA export
export an exponential moving average of the master instead of the master: a chosen lag of about 1/α steps.

Problem: round-to-nearest discards almost every update

§3

Modern RL stacks separate the optimizer from the sampler. Every open-source framework the authors examined (verl, TRL, OpenRLHF, slime, prime-rl, AReaL) makes the sampler's bf16 copy from the fp32 master by round-to-nearest (§1). bf16 keeps 7 significand bits, so near a weight w its values are u ≈ |w|/128 apart, and round-to-nearest maps an update Δ to zero whenever |Δ| < u/2 ≈ |w|/256 (§3). The master starts exactly on the bf16 grid, so this bites from the first step. (How the formats store numbers is owned by Numerical computing, which runs the same nearest-against-stochastic comparison on one weight.)

At the learning rates RL post-training uses (η ≈ 10−6 with Adam), almost every per-step update is that small. The paper's estimate from the measured distribution of Adam's normalized update is 0.3 to 0.7% of served weights changing per step on Qwen3-1.7B; measured, it is 0.4 to 0.5%. A weight drifting at mean speed |Δ̄| crosses a rounding boundary only every τ ≈ u/(2|Δ̄|) steps, 50 to 200 steps at these values, and with a decaying learning rate τ grows without bound (§3).

A weight of 0.02 receives a steady update of 5 × 10−7 per step (learning rate 10−6, a normalized Adam update of 0.5). The bf16 copy is made by round-to-nearest after every step. When does the copy first change?

Muon makes it worse: its per-element updates are nearly uniform in size, so at η = 10−6 almost none cross a boundary. A controlled test isolates the mechanism (Figure 4a): on 64 knights-and-knaves problems, one optimizer step moved an fp32 sampler from 0.17 to 0.84, while the round-to-nearest bf16 sampler stayed at about 0.19 across three steps. In a full run, round-to-nearest left the sampler nearly frozen for about 20 steps (0.12, 0.15, 0.22 at steps 0, 9, 19) while Fair Cast moved at once (0.12, 0.51, 0.79).

The hidden lag: the ratio frameworks check stays at one

§2, §4

The sampler draws from q, the trainer evaluates the loss at a bf16 version of θ, and the update lands on θ. Frameworks guard against the trainer and the engine disagreeing by computing the visible ratio πtrainer/πsampler and clipping (PPO), reweighting (TIS) or masking (IcePop) tokens where it strays (§2; the RL for LLMs page owns these corrections). But when the trainer's forward pass runs in bf16, by autocast or by evaluating the copy, both numerator and denominator are functions of q alone, so the ratio is about one however far θ has moved. The ratio that matters for the policy gradient, the hidden ratio πθ/πq, is never formed (Eq. 4).

The authors log both (§4, Figure 4c). On Qwen3-1.7B at η = 10−6 the mean per-token |log ρvisible| stays near 0.01 for the whole run, while the hidden one grows from 0 to 0.10 to 0.16 on MATH and about 0.45 on knights-and-knaves; under Fair Cast it stays near 0.01. The per-token effective sample size between master and served policy (Eq. 5) falls to 0.2 to 0.35 on tasks with 2,000-token responses and is about 0.9 with 500-token responses. The authors use it as a gauge of how far the served policy has fallen behind, not as a correction: a gradient at q with samples from q needs none.

This reconciles an earlier finding: lower learning rates were reported to reduce the training-inference mismatch (Zhang et al.). They reduce the visible ratio and increase the hidden one, because fewer updates clear the dead zone (§4). Prior work on the same threshold (the TRL team's analysis, PULSE) treated it as a communication artefact and made the trainer agree with the stale sampler; TRL now ships only the roughly 1% of bf16 elements that change each step as a sparse delta (§1).

The paper's Figure 4: one step moves the fp32 policy, the bf16 export does not, and the checked ratio does not notice
Three panels: bar chart of held-out accuracy before and after one to three optimizer steps, fp32 sampler against bf16 nearest export; percentage of served weights changed per step, round-to-nearest low and flat against Fair Cast rising, on a log scale; mean per-token absolute log ratio, the hidden ratio under round-to-nearest rising while the visible ratio and Fair Cast stay flat near zero
Notice (b): the red line (round-to-nearest, 0.4 to 0.5% of weights per step in the text) stays flat for the whole run, an order of magnitude below Fair Cast's blue line (2 to 15%, §9); and (c): the red hidden ratio climbs while the dashed visible ratio, the one frameworks check, stays flat near 0.01. Figure 4 of Gao and Gao (2026), arXiv 2610.41073, CC BY 4.0, unchanged except converted to WebP. In panel (a) the bf16 bar after step 1 is visibly lower than the other three, while the text says the sampler stayed at 0.19.

Method: Fair Cast, two changes at the export

§5

1. Export with an unbiased rounding rule. For a master θ between neighbouring bf16 values ⌊θ⌋ and ⌊θ⌋ + u, stochastic rounding exports the upper value with probability p = (θ − ⌊θ⌋)/u. Then E[q] = θ exactly, and an update Δ raises the probability by Δ/u, so the served weight moves by Δ on average at any learning rate. The released kernel adds 16 uniformly random bits to the fp32 bit pattern and truncates the low 16 (sr_cast_bf16). The deterministic alternative, error feedback, keeps one fp32 residual per weight: qt = round(θt + rt−1), rt = θt + rt−1 − qt. The export errors telescope, so their sum stays within u forever (Eq. 6): unbiased over time rather than per export.

2. Compute the loss on the served copy. The trainer's forward pass uses the exact bf16 qt that generated the rollouts, and the gradient reaches the fp32 master through a straight-through estimator (the standard trick of quantisation-aware training, owned by Quantization and Precision). The sampled and the differentiated policy are then the same object. The change sits in the weight-export call, adds no hyperparameters and leaves the optimizer, loss, sampler kernels and framework alone (§5).

What is and is not guaranteed (§5), and the two ways to train on the copy

Unbiasedness is about weights, not the policy: E[q] = θ does not give E[πq] = πθ, because the network is nonlinear. The paper's precise statements (§5): (i) rollouts are exactly on-policy for qt, whose log-probabilities enter the loss, so the policy-gradient estimate at qt has no importance-weighting error; (ii) πq differs from πθ by a rounding of each weight by less than u. Under round-to-nearest that error has the same sign step after step, so its first-order effect ∇π·(q − θ) accumulates over the lag; under stochastic rounding it is zero-mean and independent, the first-order term vanishes in expectation and a second-order term ½ tr(HΣ) with Σ ⪯ (u²/4)I remains; (iii) the straight-through gradient is the gradient at qt, not at θt, with bias bounded by the same rounding width. The residual is measured: |log(πθ/πq)| stays near 0.01 under Fair Cast. The objective becomes the expected reward of the exported model, Eq[J(q)], the model that samples and the model that is deployed.

Two implementations are equal in value: substitute qt for the parameters in the forward call, or write qt into the parameter storage for the step and restore the master before the optimizer update. With activation checkpointing only the second is exact, since the recomputed backward pass then also sees qt. The main runs used the first; the second gave the same results on Qwen3-0.6B (knights-and-knaves 0.977 against 0.967, GSM8K 0.756 against 0.742, seed 0; Table A1). The code README calls the second "the verified form".

Variants (§5): dithered error feedback (stochastic rounding of the error-fed value, residual still carried) and the EMA export of section 7.5.

One weight between two bf16 neighbours: where each rule sends it

Stale, not noisy: one weight under the three rules

§5, §9

Why does a perturbation of at most |w|/256, harmless in a forward pass, matter in training? Round-to-nearest holds the same weights back in the same direction for 50 to 150 steps, so the served policy is a stale copy rather than a noisy one; and the optimizer never learns of it, because its gradient is computed on a copy that shares the rounding. Stochastic rounding makes the perturbation zero-mean and independent across steps (§9). Its single-export error is larger (up to u, against u/2), so the gain comes from removing the correlation, not from shrinking the error (§5).

Fig. 2 runs this page's rounding engine (the one in Round a weight, at its defaults) on one weight of 0.02 for 300 optimizer steps, with the three export rules side by side: round-to-nearest in front, stochastic rounding in the middle, error feedback at the back. The black ball is the fp32 master, the coloured block its bf16 copy, and the bar at the right end of each rail is the master minus the copy, in gaps u. The update size (0.5η per step with 0.5η of step-to-step noise, η = 10−6) is illustrative, as in the simulator.

  1. Start on the grid. The master starts on a bf16 value, w₀ = 0.02, where neighbouring bf16 values are u = 1.22 × 10−4 apart; all three copies equal it. Round-to-nearest's dead zone is the half gap either side, between the two orange glass gates.
  2. Steps 1 to 40. The master creeps 0.19 u. The round-to-nearest copy does not move. The stochastic copy has changed 8 times, first at step 28: it rounds up with a chance equal to the master's position, so near w₀ it seldom does. Error feedback has also changed 8 times, first at step 14, once its carried errors added up to half a gap.
  3. Steps 41 to 100. The master reaches 0.49 u and round-to-nearest still serves w₀: for 100 steps its error has had one sign, and the optimizer's motion has been withheld. The stochastic copy has changed 32 times; the average of 256 stochastic copies (the blue glow) is at 0.47 u, on the master.
  4. Step 101: the jump. The master passes the midpoint and round-to-nearest moves a whole gap at once. Now the copy leads the master by half a gap: its error flips sign and stays negative for the next 117 steps.
  5. Steps 102 to 300. The master ends at 1.30 u. Round-to-nearest changed once in 300 steps (0.33% of steps; the paper measures 0.4 to 0.5% of weights per step), stochastic rounding 103 times, error feedback 135. Round-to-nearest's error kept one sign for up to 117 steps at a time, stochastic rounding's for at most 31 and error feedback's for 20: the unbiased rules leave noise, not lag. The average of 256 stochastic copies ends at 1.29 u, the master at 1.30.

Setup

§6

GRPO-style clipped policy gradient, group size 8, 24 prompts per step, 150 optimizer steps (500 for long runs), rollouts up to 2,048 tokens. Each arm runs on one H100, a vLLM sampler and a Hugging Face trainer sharing the device. Models: Qwen3-0.6B, 1.7B (default) and 4B, plus OLMoE-1B-7B and Qwen2.5-1.5B-Instruct; AdamW at η = 10−6 by default, Muon where stated. Tasks: Reasoning Gym logic puzzles (knights-and-knaves, zebra puzzles, list functions, string manipulation, Countdown), MBPP+ and HumanEval+, MATH, GSM8K and games with exact solvers (Nim). Evaluation: greedy decoding of the served copy on a held-out set every 10 steps, 512 problems where available. One seed per arm unless stated; a seed changes the trainer and sampler randomness, never the order of training prompts (§6).

All settings (Table A1) and the MBPP+ overlap

Clip 0.2; AdamW β = (0.9, 0.999), weight decay 0.01; Muon at 10−6 with momentum 0.95 and RMS-matched updates (0.2·√max(m, n)) on 2-D hidden weights, AdamW for embeddings, norms and the output head; temperature 1.0; 6,144 tokens for Nim; the 1.7B MATH levels 3 to 5 pair ran 300 steps with cosine decay to 10−7; lag 1 between sampler and trainer (Table A1). The harness multiplies Muon's learning rate by a default factor of 20, but every Muon configuration in the repository sets it to 1.0, matching the text. MBPP+ shares 154 of its 378 task ids with the MBPP split used for training, so MBPP+ is scored on the other 224 (121 of the first 128 for the seed-0 pair); HumanEval+ has 164 problems; the 1.7B MATH and Countdown runs used 128 (§6). Appendix B prints one held-out prompt each for zebra, knights-and-knaves and Nim.

Result 1: both halves are needed

§7.1, Table 1
Keep the trainer's forward pass on the fp32 master (as frameworks do now) but switch only the export to an unbiased rule. What happens?
Trainer forward on the fp32 masterTrainer forward on the served copy
Round-to-nearest exporttoday's default: the hidden lagthe same policy: both copies sit downstream of the same rounding (0.6B: knights-and-knaves 0.889 against 0.865, GSM8K 0.705 against 0.742)
Unbiased export (SR or EF)collapse: EF 0.00 in 4 of 4 runs; SR 0.6B GSM8K 0.13, MATH 0.002Fair Cast: stable, learns faster

Table 1, held-out accuracy of the served copy. The two aligned cells are stable, the two crossed ones are not. The "same policy" pair differs by +2.4 and −3.7 points, inside the 3-point noise of one comparison at 512 problems.

Result 2: long-rollout tasks, where the lag does the most damage

§7.2, Figure 5

Zebra puzzles (Qwen3-1.7B). Round-to-nearest learns for about twenty steps, then collapses on every seed, from a peak of 0.57 ± 0.01 to 0.33 ± 0.10 (3 runs). Between steps 30 and 60 its responses lengthen into the 2,048-token cap (held-out truncation 0.47 to 0.89) while training reward falls: a policy pushed toward longer derivations by rewards computed on a model it no longer matches. A DAPO-style truncation penalty on the round-to-nearest arm did not prevent the collapse (final 0.45). Three of four Fair Cast runs ended at 0.62 to 0.70 and tracked an fp32-sampler oracle (0.69); the fourth, a repeat of seed 0, held 0.53 to 0.63 for 130 steps and then fell to 0.34 in its last fifteen, so the four-run mean is 0.57 ± 0.16 (§7.2, Figure 5).

Knights-and-knaves. Here the lag costs speed. With AdamW at 1.7B, Fair Cast reached 0.88 at step 9 and about 0.97 by step 40; round-to-nearest needed about 40 more steps and ended 3.7 points lower. With Muon, whose updates almost all fall below u/2, Fair Cast led at all 15 checkpoints on both seeds (0.988 ± 0.003 against 0.907 ± 0.016). At 0.6B the gain is 10.2 points; at 4B both reach the ceiling (0.992 against 0.988).

Nim (6,144-token cap). Both arms gain about 38 points; Fair Cast leads by 10 to 30 points through step 100 and peaks at 0.736 against 0.596, then the two converge (0.580 against 0.570 at step 150). The lag is a delay here, not a different destination.

The paper's Figure 5: round-to-nearest runs lengthen into the token cap and collapse; Fair Cast tracks the fp32 sampler
Three stacked panels against optimizer step for zebra puzzles: held-out accuracy, training reward and response length, for round-to-nearest, Fair Cast and an fp32-sampler oracle
Notice the bottom panel: round-to-nearest's responses climb to the dashed 2,048-token cap between steps 30 and 60, exactly when its accuracy (top) falls. Bands are ± 1 s.d. over three round-to-nearest and four Fair Cast runs (seed 0 twice), so the Fair Cast band includes the repeated seed-0 run that fell to 0.34 in its last fifteen steps. Figure 5 of Gao and Gao (2026), arXiv 2610.41073, CC BY 4.0, converted to WebP.

Result 3: across sizes, optimizers and benchmarks, 25 matched pairs

§7.3, Table 2

Table 2 gives endpoints after 150 steps for thirteen configurations; Fair Cast is ahead at nearly every checkpoint, by the most on long-rollout logic and by a few points on the standard benchmarks (Figure 7). On Qwen3-0.6B, with three seeds each, it gains 2.7 points on MATH levels 3 to 5 and 5.1 on GSM8K, and the curves separate in the first 30 steps, where the dead zone withholds the largest share of the optimizer's motion. Counting each seed separately, plus the list-functions pair of section 7.5, gives 25 matched pairs: ahead by more than one point on 18, within one point on 6, behind on 1, mean +6.1 points (§7.3). The authors released the per-pair table, so every pair is plotted below.

Two things the plot makes plain. The gain is real in direction: 20 pairs positive, 4 negative, 1 zero (two-sided sign test p = 0.0015 if the pairs were independent, which they are not quite). But 14 of the 25 differences are smaller than one standard error, the three zebra pairs supply 96.9 of the 152.5 summed points, and without them the mean is +2.5. The released zebra seed-0 pair uses the first Fair Cast run (0.623), not the repeat that fell to 0.34; with the repeat the mean is +5.0.

Each matched pair: final held-out accuracy, Fair Cast minus round-to-nearest

From the code repository's results/TABLE2_PAIRS.md; MBPP+ endpoints also checked against its released held-out curves. Grey band: one standard error of a difference between two evaluations, √(2·0.25/n), for the problems each pair was scored on (3.1 points at 512, 4.7 at the 224 held-out MBPP+ problems, 5.5 at HumanEval+'s 164, 6.2 at 128). The paper gives the 3 and 6 point figures itself (§9).

Result 4: under round-to-nearest, the checkpoint is not the model

§7.4, Table 3

The fp32 master you save and the bf16 copy that was trained and evaluated are different objects. Under round-to-nearest they agree at step 0 and then drift apart, by up to 50 points on HumanEval+ (served 59.8, master 9.1 at step 99) and 20 to 30 on MBPP+. The gap is not monotone: the withheld residual is flushed into the copy only when weights cross boundaries, so the master can be 30 points below its export at one checkpoint and level 50 steps later. Of 9 round-to-nearest runs with master evaluations, 5 showed a gap of at least 12 points at some checkpoint and 2 at the final one; under Fair Cast master and export agreed within 3 points at every checkpoint of 12 runs (§7.4, Figure 8).

Saved fp32 masterbf16fp16FP8 via bf16FP8 via fp16

Table 3, held-out accuracy (%) of one saved master exported four ways. Formats at or coarser than bf16 discard the same residual the sampler never saw and reproduce the training score; finer formats (fp16, fp32 evaluation, continued training) inherit it. The fp16 export of the HumanEval+ master wrote responses of 1,679 tokens on average against 344 for bf16: a different model.

The practical rule: evaluate and ship the served copy; deploy from bf16, or FP8 calibrated on bf16; do not ship fp16 or resume training from the fp32 master after round-to-nearest training without re-evaluating. The text says such a pipeline "can deploy a model 30 to 40 points worse" than its curve; in Table 3 that holds for HumanEval+ (42.0 and 30.4 points lost), while Countdown loses 11.7.

Result 5: the lag was also a regularizer, and can be put back on purpose

§7.5, Figure 9

Round-to-nearest passes a weight's motion on only once it has built up past a boundary, so the served policy is a low-pass-filtered master: fast, small changes are suppressed and only sustained drift gets through. That is a bias (the lag) and also a regularizer (the sampler cannot commit to whatever the current step's reward favours). Fair Cast removes both. The filter can be restored explicitly by exporting an exponential moving average mt = (1 − α)mt−1 + αθt with the same unbiased rounding and served-copy training; α sets a lag of about 1/α steps in place of an accidental one that depends on each weight's magnitude (§7.5).

List functions (Qwen3-1.7B, 512 held-out problems): which ends higher, round-to-nearest with its accidental lag, or Fair Cast with no lag at all?

The authors have not characterised in advance which tasks need the explicit lag (§9), and the conclusion speaks of "two configurations" where removing the lag is harmful while section 7.5 reports one.

The paper's Figure 9: without any lag, Fair Cast's answers shrink to a bare boxed answer; an EMA lag restores the derivations
Two panels against optimizer step for list functions: held-out accuracy and training response length, for round-to-nearest, Fair Cast with no lag, and Fair Cast with EMA lag at two settings
Notice the right panel: the blue line (Fair Cast, no lag) drops to near zero tokens within about 20 steps and stays there, while every lagged run keeps writing hundreds of tokens. Single runs except the two EMA α = 0.05 seeds. Figure 9 of Gao and Gao (2026), arXiv 2610.41073, CC BY 4.0, resized to 1,400 px and converted to WebP.

Transfer, ablations and cost

§7.6, §7.7

Transfer. MATH-trained 1.7B checkpoints evaluated on competition problems (8,192 tokens, temperature 1, avg@16): on the cosine-schedule pair Fair Cast scored 0.204 against 0.152 on AIME24, 0.548 against 0.495 on AMC23, 0.790 against 0.754 on MATH-500, and GSM8K was unchanged at 0.83; on the level-5 pair the two were within noise (AIME24 0.163 against 0.165) (§7.6).

Ablations (§7.7). Stochastic rounding and error feedback tie on knights-and-knaves and HumanEval+; error feedback is stronger only on the 500-step Countdown run. Fair Cast composes with TIS, which corrects version lag, and the effects add. An FP16 sampler shrinks the dead zone eightfold but does not remove it and risks overflow. Raising round-to-nearest's learning rate closes part of the speed gap but at 3 × 10−6 and 10−5 produced two MATH collapses. On OLMoE-1B-7B and Qwen2.5-1.5B-Instruct (MATH, 128 problems) the two rules were within noise, Fair Cast never worse.

Cost. One full export of Qwen3-1.7B on an H100: round-to-nearest 4.3 ms, stochastic rounding 21.7 ms with the bit-trick kernel (136.6 ms for a naive seven-operation one), error feedback 37.2 ms plus 6.9 GB of fp32 residuals. Against optimizer steps of 31 to 130 s that is under 0.1% for stochastic rounding (error feedback reaches 0.12% at the fastest step). Time per step is identical when output lengths match (knights-and-knaves 56.2 against 56.0 s). One real cost: Fair Cast changes 2 to 15% of served weights per step instead of 0.4 to 0.5%, so delta-sync schemes that ship only changed elements compress several times less (§9).

How much of this to believe

§9 Limitations

What holds up. The mechanism is arithmetic, not a fitted claim: round-to-nearest provably holds back any accumulated update below u/2, and this page's engine (bit-identical to torch's cast on 1,993 test values) reproduces the dead zone from the definition. The paper then measures the consequence three independent ways: the single-step test (an fp32 sampler moves from 0.17 to 0.84, the bf16 export does not), the per-step fraction of changed weights, and the hidden ratio against the visible one (Figure 4). The crossed cells of Table 1 are the right controls: training on the served copy alone changes nothing, unbiased export alone collapses, which separates the two halves. The fix is a few lines of released, MIT-licensed code, and every Table 2 mean and standard deviation recomputes from the released per-pair table (all 13 rows; tables tab).

What to discount.

  • Most comparisons are single runs inside the noise. Eight of the 25 pairs come from configurations run with one seed, and 14 of the 25 differences are smaller than one standard error of a difference (3.1 points at 512 problems, 4.7 at the 224 MBPP+ problems actually scored). The authors state the 3 and 6 point figures themselves (§9), which counts in their favour.
  • The mean is carried by one task. The three zebra pairs give 96.9 of 152.5 summed points; the other 22 average +2.5, the median of all 25 is +3.1. The zebra pair for seed 0 uses the first of two Fair Cast runs; the repeat collapsed to 0.34, like round-to-nearest.
  • Removing the lag can hurt. On list functions Fair Cast lost 14.5 points until an EMA lag was added back, and which tasks need it is not known in advance; the paper's own sections disagree on whether this happened in one configuration or two (§7.5, §10).
  • Narrow setting. One training implementation, one GPU per arm with lag 1, models up to 4B, 150-step runs at η = 10−6. The lag scales roughly as |w|/η, so larger learning rates (or LoRA) should shrink the effect, and the paper notes Fair Cast is inert once updates clear the dead zone unaided; larger models and multi-node asynchronous setups are untested.
  • Small wording slips. "Tied on 6" in the abstract means within one point (three of the six are slightly negative); "30 to 40 points worse" holds for HumanEval+ only; "below 0.1%" cost holds for stochastic rounding, error feedback reaches 0.12%; panel (a) of Figure 4 shows a lower bf16 bar after step 1 than the text's 0.19.

Verdict. The diagnosis is solid and cheap to check in any stack: count how many served weights change per step. The fix costs milliseconds and is the right default on correctness grounds alone, since it makes the trained, sampled and deployed model the same one. How much accuracy it buys is less settled: large on the long-rollout zebra and knights-and-knaves runs, a few points or nothing on short-answer benchmarks, negative where the accidental lag was doing useful smoothing.

What it takes to use this

§9 What to change

Replace the weight-sync cast (master.to(torch.bfloat16)) with sr_cast_bf16, and make the trainer's forward pass use the exact served values with a straight-through gradient (served_forward or ste_params); both come in the torch-only faircast package with a 60-line GRPO example (README). It pays off when the learning rate is small relative to weight magnitudes (full-parameter RL at about 10−6, Muon, decaying schedules) and on long rollouts; it buys little when updates already clear the dead zone. Watch for tasks where answers collapse to short outputs, and try the EMA export there.

The details: release, hardware, checks to run
  • Code and licence: MIT. The package, the example, the Modal harness used for every run (harness/drift_rl.py: sync_mode "cast", "sr", "ef", "efsr"; forward_mode "autocast", "ste", "ste_swap"; Fair Cast is "sr" with "ste_swap"; ema_export: 0.05 for the explicit lag), the 87 per-arm configurations, the pair table and the MBPP+ curves.
  • Hardware: the paper's runs used one H100 per arm with the vLLM sampler in sleep mode beside a Hugging Face trainer; the export itself costs 22 to 38 ms per 1.7B parameters, error feedback adds 4 bytes per parameter.
  • A one-minute check on your own stack: log the fraction of served bf16 weights that change per step, and evaluate the fp32 master against its served export at a checkpoint. A fraction well under 1% and a gap of many points mean you have the lag.
  • Deployment: ship and resume from what was served (bf16, or FP8 calibrated on bf16), not an fp16 cast of the master.
Since the paper (checked 2026-11-02)

arXiv v1 of 29 October 2026 is the only version. The repository's last commit is 7c213b2 (29 October 2026). It holds the package, harness, configurations, the 25-pair table and the MBPP+ held-out curves; the per-step training logs and held-out evaluations the figure scripts read (results/logs, results/evals.json) are not in it, and the paper's promised checkpoints and held-out responses were not found. No follow-up paper, framework adoption or independent replication was found by this date. Two unmerged prime-rl pull requests had proposed stochastic rounding for FP8 export before the paper, with no learning results (§8).

Why it matters (beyond the paper)

The training-inference mismatch has been one of 2025 and 2026's busiest RL-infrastructure topics: TIS (Yao et al.), IcePop, the FP16 proposal (Qi et al.), learning-rate schedules (Zhang et al.) and rounding-location alignment (Ke et al.) all target the visible ratio. This paper's point is that a second mismatch sits upstream of all of them, at the export, and that the same bf16 arithmetic has now been reported in ternary quantisation-aware fine-tuning (Sahai et al.) and in multi-teacher on-policy distillation (Zhu et al.), and at 4 bits by a user running RL from Inkling 2 Mini's released NVFP4 weights, where Adam steps of about 10−6 met grid steps of 10−3 to 10−2, almost no expert weight changed and learning was about as slow as with the experts frozen (one report, a comment on the Miles framework's port of the 4-bit recipe, 24 November 2026; End-to-End 4-Bit Training). Whether it matters at frontier scale is open: the lag depends on the ratio of learning rate to weight size, and frontier runs differ in learning rates, asynchronous samplers and FP8 exports.

Connections

  • RL for LLMs: GRPO, the importance ratio and the engine-trainer mismatch corrections this paper argues cannot see the export lag.
  • Score Centering: the additive correction for the engine-trainer drift; like TIS and MIS it is computed from the probabilities the sampler logs, so it measures the gap between the served copy and the trainer's forward pass, and the export lag sits upstream of it too.
  • Numerical computing for ML: bf16's bits and gaps, round-to-nearest against stochastic rounding, fp32 master weights.
  • Quantization and Precision: low-precision formats, FP8 recipes, and the straight-through estimator used to train on the served copy.
  • DeepSeekMath (GRPO), Qwen3 Technical Report (the models), LoRA (predicted, untested, to escape the dead zone).