Greedy Decoding Is Not Precision-Invariant: Cross-Precision Output Divergence in LLM Inference
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 34 of its 43 references that are in the map. First posted on arXiv 22 Sep 2026.
Builds on
34 of 43 references.
References · 34
- 2017Attention Is All You Needcited by 59,932
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
22 more
- 2017Mixed Precision Trainingcited by 1,135
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
- 2024TinyLlama: An Open-Source Small Language Modelcited by 604
- 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
- 2024OLMoE: Open Mixture-of-Experts Language Modelscited by 291
- 2023A Survey on Model Compression for Large Language Modelscited by 263
- 2019A Study of BFLOAT16 for Deep Learning Trainingcited by 227
- 2019MLPerf Training Benchmarkcited by 114
- 2024Non-Determinism of "Deterministic" LLM Settingscited by 84
- 2025Defeating the Training-Inference Mismatch via FP16cited by 62
- 2021Randomness In Neural Network Training: Characterizing The Impact of Toolingcited by 57
- 2025Understanding and Mitigating Numerical Sources of Nondeterminism in LLM Inferencecited by 47
- 2024Low-Bit Quantization Favors Undertrained LLMs: Scaling Laws for Quantized LLMs with 100T Training Tokenscited by 18
- 2026LLM-42: Enabling Determinism in LLM Inference with Verified Speculationcited by 14
- 2025Deterministic Inference across Tensor Parallel Sizes That Eliminates Training-Inference Mismatchcited by 13
- 2026Hidden Reliability Risks in Large Language Models: Systematic Identification of Precision-Induced Output Disagreementscited by 5
- 2026The Illusion of Equivalence: Systematic FP16 Divergence in KV-Cached Autoregressive Inferencecited by 4
- 2026Beyond Reproducibility: Token Probabilities Expose Large Language Model Nondeterminismcited by 3
- 2023Mitigating Outlier Activations in Low-Precision Fine-Tuning of Language Modelscited by 2
- 2025Dynamic Vocabulary Pruning: Stable LLM-RL by Taming the Tailcited by 2
- 2026Introducing Background Temperature to Characterise Hidden Randomness in Large Language Modelscited by 2
Built on by
Not cited yet.