论文研究
arxiv.org ·
贪婪解码并非精度不变:大语言模型推理中的跨精度输出分歧
该论文指出,大语言模型在相同硬件上以 BF16 与 FP16 执行贪心解码时会产生不同输出,即贪心解码并非精度不变。作者在 6 个模型(1.1B-7B,四个家族,另在 12B 上补充刻画)和 3 个基准上评估,发现 49-100% 的提示出现分歧,单个 token 翻转常级联为轨迹级分歧。误差传播分析表明,22 层累积误差无法区分翻转与非翻转步骤,结果主要取决于 LM head 处 top-2 logit 间距与候选间方向扰动的关系;该分析给出 5 项可检验预测且实验全部匹配。作者评估的低开销干预——仅在间距低于阈值时选择性重算 FP32 LM head——在 A10G 上带来 +22-36pp 精确一致率(L4 与 A100 上 +12-21pp),低批量(batch size=8 及以下)延迟开销低于 4%。
AI推荐理由 arXiv 论文,作者与摘要信息完整,实验覆盖 6 个模型(1.1B-7B,四个家族,另在 12B 上补充刻画)和 3 个基准,给出 49-100% 提示出现分歧、单 token 翻转引发轨迹级分歧等具体数据,并提出可检验的误差传播分析(5 项预测全部被实验匹配)与低开销干预(选择性 FP32 LM head 重算,A10G 上 +22-36pp 精确一致率,延迟开销 <4%)。新信息在于揭示贪心解码并非精度不变,对推理部署与可复现性有直接价值;局限是结论基于特定硬件与模型规模,摘要未给出全部基准细节。
82
正文
Computer Science > Machine Learning
arXiv:2609.26621 (cs)
[Submitted on 22 Sep 2026]
Title:Greedy Decoding Is Not Precision-Invariant: Cross-Precision Output Divergence in LLM Inference
Authors:Gaoyuan Du, Anam Nawaz Khan, Rex Zhou, Xiaoyang Liu, Deepayan Chakrabarti, Fnu Suya, Xueping Li
View a PDF of the paper titled Greedy Decoding Is Not Precision-Invariant: Cross-Precision Output Divergence in LLM Inference, by Gaoyuan Du and 6 other authors
View PDF
Abstract: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 =8 and under end-to-end FP8 in our tests.
Comments:
Subjects:
Machine Learning (cs.LG); Artificial Intelligence (cs.AI)
Cite as:
arXiv:2609.26621 [cs.LG]
(or
arXiv:2609.26621v1 [cs.LG] for this version)
https://doi.org/10.48550/arXiv.2609.26621
Focus to learn more
arXiv-issued DOI via DataCite (pending registration)
Journal reference:
Transactions on Machine Learning Research, 2026
Submission history
From: Gaoyuan Du [view email]
[v1]
Tue, 22 Sep 2026 15:54:16 UTC (1,455 KB)
Full-text links:
Access Paper:
View a PDF of the paper titled Greedy Decoding Is Not Precision-Invariant: Cross-Precision Output Divergence in LLM Inference, by Gaoyuan Du and 6 other authors
View PDF
TeX Source
view license
Current browse context:
cs.LG
new
|
recent
| 2026-09
Change to browse by:
cs
cs.AI
References & Citations
NASA ADS
Google Scholar
Semantic Scholar
export BibTeX citation
Loading...
BibTeX formatted citation
×
loading...
Data provided by:
Bookmark
Bibliographic Tools
Bibliographic and Citation Tools
Bibliographic Explorer Toggle
Bibliographic Explorer (What is the Explorer?)
Connected Papers Toggle
Connected Papers (What is Connected Papers?)
Litmaps Toggle
Litmaps (What is Litmaps?)
scite.ai Toggle
scite Smart Citations (What are Smart Citations?)
Code, Data, Media
Code, Data and Media Associated with this Article
alphaXiv Toggle
alphaXiv (What is alphaXiv?)
Links to Code Toggle
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub Toggle
DagsHub (What is DagsHub?)
GotitPub Toggle
Gotit.pub (What is GotitPub?)
Huggingface Toggle
Hugging Face (What is Huggingface?)
ScienceCast Toggle
ScienceCast (What is ScienceCast?)
Demos
Demos
Replicate Toggle
Replicate (What is Replicate?)
Spaces Toggle
Hugging Face Spaces (What is Spaces?)
Spaces Toggle
TXYZ.AI (What is TXYZ.AI?)
Related Papers
Recommenders and Search Tools
Link to Influence Flower
Influence Flower (What are Influence Flowers?)
Core recommender toggle
CORE Recommender (What is CORE?)
IArxiv recommender toggle
IArxiv Recommender
(What is IArxiv?)
Author
Venue
Institution
Topic
About arXivLabs
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Which authors of this paper are endorsers? |
Disable MathJax (What is MathJax?)