Metraipolis › archive › dc_23d595076377

Greedy Decoding Is Not Precision-Invariant: Cross-Precision Output Divergence in LLM Inference — arXiv:2609.26621

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.26621
License (as archived)
CC0-1.0
Archived
2026-10-08T13:47:23.225Z
SHA-256 of the archived text
e306a40b4820274c7ed6b9e2d3374cd5beaf78345b797bdbcac1dffc318ea963
Stable URL of this page
https://metraipolis.com/documento/dc_23d595076377

How to cite

Greedy Decoding Is Not Precision-Invariant: Cross-Precision Output Divergence in LLM Inference — arXiv:2609.26621 — arXiv (en), https://arxiv.org/abs/2609.26621 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_23d595076377 (Metraipolis archive dc_23d595076377, sha256 e306a40b4820274c7ed6b9e2d3374cd5beaf78345b797bdbcac1dffc318ea963)
BibTeX
@misc{dc23d595076377,
  title = {Greedy Decoding Is Not Precision-Invariant: Cross-Precision Output Divergence in LLM Inference — arXiv:2609.26621},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.26621},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_23d595076377; sha256 e306a40b4820274c7ed6b9e2d3374cd5beaf78345b797bdbcac1dffc318ea963},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.26621. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Greedy decoding from large language models is commonly treated as deterministic. We show it is not precision-invariant: the same model, prompt, and decoding algorithm produce different outputs in BF16 versus FP16 on identical hardware. Across our evaluations of six models (1.1B-7B parameters, four families; divergence additionally characterised at 12B) and three benchmarks, 49-100\% of prompts diverge; a single token flip often cascades into trajectory-level divergence. We develop an empirical error-propagation analysis and find that 22 layers of accumulated body error do not distinguish flipping from non-flipping steps; the outcome depends primarily on the top-two logit margin at the LM head relative to the directional perturbation between the top-two candidates. The analysis makes five testable predictions about intervention outcomes, including that applying more FP32 compute (broader scope) makes agreement worse. The experiments match all five predictions. The best-performing low-overhead intervention we evaluate, selective FP32 LM head recomputation, triggered only when the margin falls below a threshold, delivers +22-36 pp exact agreement on A10G (+12-21 pp on L4 and A100) at less than 4\% latency overhead in low-batch (batch size <=4) single-stream inference. We map the applicability boundary across six models and four batch sizes, and hypothesise that training-time precision stability is a determining factor. The method is a partial mitigation rather than a universal determinism guarantee: its benefit vanishes when body-originated error dominates, including at batch size >=8 and under end-to-end FP8 in our tests.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-23 in cs.AI).
Categorie arXiv: Machine Learning (cs.LG) ; Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2609.26621 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-08T13:18:38.331Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-23?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).