arXiv(opens in a new tab)cs.LGOct 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2610.07853

Lost in the bf16 Cast: Exporting Ternary Language Models Can Revert Most Low-Learning-Rate Code Changes

Avichal Sahai, Nishant Raj, Animesh Srivastava

ABSTRACT

Ternary language models such as BitNet b1.58, Falcon-E and BitCPM are fine-tuned with higher-precision latent weights and deployed as ternary codes produced by an export step that, in the labs’ documented pipelines, first casts the latents to bf16. We audit those pipelines across three labs. In released checkpoints, fp32 quantization of the shipped latents disagrees with the deployed codes on 0.83–1.77% of codes in Falcon-E and BitCPM and on 1.530% in BitNet 2B-4T; for Falcon-E and BitCPM most disagreements are products that bf16 rounding lands exactly on the threshold, which ties-to-even maps to zero, and the unmodified onebitllms exporter reproduces all four Falcon-E releases byte for byte. At fine-tuned endpoints, with learning rates selected to match a nominal learning-rate-to-bf16-ULP ratio, the documented export lowers greedy GSM8K strict accuracy from 58.79% to 0.78% for Falcon-E-1B-Base and from 36.13% to 0.39% for BitCPM-CANN-0.5B, and a bf16 save and reload lowers BitNet 2B-4T’s strict accuracy by 27.54 points while its last-number accuracy rises. Two compatibility remedies, writing the training quantizer’s codes directly or adjusting the bf16 inputs until the unchanged tools emit them, each met a 4-point strict-accuracy non-inferiority criterion against online evaluation in all three models. In two model families, randomized interventions on the initial distance from the threshold support distance-dependent selection of the codes that fine-tuning changes.

1 INTRODUCTION

Ternary language models store each linear weight as a code in {−1,0,+1}\{-1, 0, +1\} with a per-tensor or per-row scale (Ma et al., 2024; 2025). Labs release them in two forms: a latent checkpoint in bf16, from which quantization-aware fine-tuning starts, and a deployed checkpoint of codes and scales, produced by an export step. Fine-tuning updates higher-precision latent weights, and a code changes only when its latent crosses a threshold at half the mean magnitude of its tensor (of its row, for BitCPM). At low learning rates most changed latents finish just past that threshold (§4). The labs’ documented exports pass the latents through bf16, whose 8-bit significand spaces representable values roughly 0.4–0.8% apart near the threshold, so the cast can return a just-crossed latent to its starting value (Figure 2). The model evaluated during fine-tuning is then not the model that ships.

We audit this boundary in the documented pipelines of three labs: TII's onebitllms exporter for Falcon-E (Technology Innovation Institute, 2025a;b), a bf16 checkpoint reloaded with online quantization for Microsoft's BitNet b1.58 2B-4T (Microsoft, 2025; Hugging Face, 2026), and OpenBMB's qat-convert for BitCPM-CANN (OpenBMB, 2026a). Our contributions:

• A release audit (§3). In matched releases, fp32 quantization of the released latents disagrees with the deployed codes on 0.83–1.77% of codes (Falcon-E, BitCPM) and 1.530% (2B-4T). For Falcon-E and BitCPM most disagreements are bf16 products that land exactly on the rounding threshold, ∣w⋅r∣=12|w \cdot r| = \frac{1}{2} with rr the inverse scale, which ties-to-even maps to zero, and the unmodified onebitllms exporter reproduces all four Falcon-E releases byte for byte.

• The export at fine-tuned endpoints (§4). At learning rates selected to match a nominal learning-rate-to-bf16-ULP ratio across models, the documented export lowers greedy GSM8K strict accuracy from 58.79% to 0.78% (Falcon-E-1B-Base) and from 36.13% to 0.39% (BitCPM-CANN-0.5B); a bf16 save and reload lowers 2B-4T’s strict accuracy by 27.54 points while its last-number accuracy rises by 7.62. At the higher learning rates tested the effect shrinks or is not detected.

• Two remedies (§5). Writing the training quantizer’s captured codes directly into the deployed representation, or adjusting the bf16 inputs in bounded steps until

Preprint. Copyright 2026 by the author(s).

the unchanged tools emit those codes, was non-inferior to online evaluation at a 4-point strict-accuracy margin in all three models (Figure 1).

  • Which codes fine-tuning changes (§6). On 2B-4T, changed codes are enriched for positive first-order base-gradient scores relative to codes at the same stored level, increasingly with initial distance from the threshold, and randomized interventions that change only the starting distance support distance-dependent selection in two model families.

We claim neither a new rounding mechanism—the cancellation of small updates by bf16 rounding is known (Zamirai et al., 2020; Miah & Belilovsky, 2026)—nor a general export penalty. The results concern one recipe family, one or two trajectories per arm, and 512 GSM8K dev prompts. For the prospectively packaged experiments, the analysis and decision rule were frozen before the run; Appendix A describes the protocol and lists its exceptions, including the analyses that were exploratory, adaptive or post hoc. 1^{1}

References (29)