mlsanityData to 14 Oct 2026

Understanding and Mitigating Numerical Sources of Nondeterminism in LLM Inference

arXiv 2506.09501 ↗First posted 11 Jun 2025cs.CLcited by 53

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) are now integral across various domains and have demonstrated impressive performance. Progress, however, rests on the premise that benchmark scores are both accurate and reproducible. We demonstrate that the reproducibility of LLM performance is fragile: changing system configuration, such as evaluation batch size, GPU count, and GPU version, can introduce significant differences in the generated responses. This issue is especially pronounced in reasoning models, where minor rounding differences in early tokens can cascade into divergent chains of thought, ultimately affecting accuracy. For instance, under bfloat16 precision with greedy decoding, a reasoning model like DeepSeek-R1-Distill-Qwen-7B can exhibit up to 9% variation in accuracy and 9,000 tokens difference in response length due to differences in GPU count, type, and evaluation batch size. We trace the root cause of this variability to the non-associative nature of floating-point arithmetic under limited numerical precision. This work presents the first systematic investigation into how numerical precision affects reproducibility in LLM inference. Through carefully controlled experiments across various hardware, software, and precision settings, we quantify when and how model outputs diverge. Our analysis reveals that floating-point precision - while critical for reproducibility - is often neglected in evaluation practices. Inspired by this, we develop a lightweight inference pipeline, dubbed LayerCast, that stores weights in 16-bit precision but performs all computations in FP32, balancing memory efficiency with numerical stability. Code is available at https://github.com/nanomaoli/llm_reproducibility.

Key facts. Cited by 53 papers in the map (data through 14 Oct 2026). Builds on 23 of its 39 references that are in the map. First posted on arXiv 11 Jun 2025.

Builds on

23 of 39 references.

References · 23

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  4. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  5. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  6. 2024Qwen2.5 Technical Reportcited by 4,942
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  8. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  9. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  10. 2023A Survey on Evaluation of Large Language Modelscited by 1,242
  11. 2025Stop Overthinking: A Survey on Efficient Reasoning for Large Language Modelscited by 464
  12. 2023An Empirical Study of the Non-determinism of ChatGPT in Code Generationcited by 137
11 more
  1. 2025A Sober Look at Progress in Language Model Reasoning: Pitfalls and Paths to Reproducibilitycited by 93
  2. 2021Randomness In Neural Network Training: Characterizing The Impact of Toolingcited by 59
  3. 2021Nondeterminism and Instability in Neural Network Optimizationcited by 48
  4. 2024Impacts of floating-point non-associativity on reproducibility for HPC and deep learning applicationscited by 24
  5. 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMscited by 24
  6. 2025Assessing Consistency and Reproducibility in the Outputs of Large Language Models: Evidence Across Diverse Finance and Accounting Taskscited by 20
  7. 2024Optimizing Large Language Model Hyperparameters for Code Generationcited by 11
  8. 2025Studying How Configurations Impact Code Generation in LLMs: the Case of ChatGPTcited by 8
  9. 2025Measuring Determinism in Large Language Models for Software Code Reviewcited by 6
  10. 2025The Science of Evaluating Foundation Modelscited by 5
  11. 2023Benchmarking Large Language Model Volatilitycited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 50.

53 papers.

Sort:

By area:

  1. 2026On Randomness in Agentic Evalscited by 17
  2. 2025Deterministic Inference across Tensor Parallel Sizes That Eliminates Training-Inference Mismatchcited by 14
  3. 2026Hidden Measurement Error in LLM Pipelines Distorts Annotation, Evaluation, and Benchmarkingcited by 10
  4. 2026The Silent Hyperparameter: Quantifying the Impact of Inference Backends on LLM Reproducibilitycited by 8
  5. 2026When LLMs get significantly worse: A statistical approach to detect model degradationscited by 7
  6. 2026The Illusion of Equivalence: Systematic FP16 Divergence in KV-Cached Autoregressive Inferencecited by 4
  7. 2026Dataset-Level Metrics Attenuate Non-Determinism: A Fine-Grained Non-Determinism Evaluation in Diffusion Language Modelscited by 3
  8. 2026Kernel Contracts: A Specification Language for ML Kernel Correctness Across Heterogeneous Siliconcited by 3
  9. 2026MarginGate: Sparse Margin-Triggered Verification for Batch-Invariant LLM Inferencecited by 3
  10. 2026Hardware-Triggered Backdoorscited by 2
  11. 2026SEAR: Simple and Efficient Adaptation of Visual Geometric Transformers for Unpaired RGB+Thermal 3D Reconstructioncited by 2
  12. 2026Paraphrase Brittleness in Production Retrieval-Augmented Commercial Recommendation: Reproducibility Below the Rerun-Stability Baselinecited by 2
38 more
  1. 2026FloatDoor: Platform-Triggered Backdoors in LLMscited by 2
  2. 2026Demystifying Numerical Instability in LLM Inference: Achieving Reproducible Inference for Mission-Critical Tasks with HEALcited by 2
  3. 2026AgentTrails: Towards Trust and Reuse for Agentic Taskscited by 2
  4. 2026Kalypso: Relational LLM Servingcited by 2
  5. 2026Do All LLMs Know When They're Being Harmful? A Reproducibility Study of Latent-Space Safety Probes Across Model Familiescited by 2
  6. 2026The Integer Alibi: Localizing Cross-Kernel Divergence in INT8-Quantized LLM Inferencecited by 2
  7. 2025Bit-Accurate Modeling of GPU Matrix Multiply-Accumulate Units: Demystifying Numerical Discrepancy and Accuracycited by 1
  8. 2026Fingerprinting Inference Systems of Large Language Modelscited by 1
  9. 2026Re-feeding Is Not Replaying: Measuring Replay Noise in Counterfactual Token-Credit Estimationcited by 1
  10. 2026M-GATE: Multilingual Grammar, Accuracy in Translation, and Efficiency Benchmark for Large Language Modelscited by 1
  11. 2026Routing Is Least Learnable Where It Is Most Valuable: Bounds on Representation Routing for Web Agentscited by 1
  12. 2026Benchmarking LLM Serving Systems for Agentic AI Workloads with XPerfcited by 1
  13. 2026Deterministic LLM Inference Across GPU Kernels: Power-of-Two INT8 Quantization Scales and the Limits of Tolerance-Based Conformancecited by 1
  14. 2026Accelerating the Mitigation of LLM Inference Nondeterminism Across GPU Architecturescited by 1
  15. 2026Dating the Model: Hidden Dates in System Prompts Affect LLM Evaluationcited by 1
  16. 2025A solution to generalized learning from small training sets found in infants repeated visual experiences of individual objectscited by 0
  17. 2026Information Theoretic Perspective on Representation Learningcited by 0
  18. 2026A Note on Non-Composability of Layerwise Approximate Verification for Neural Inferencecited by 0
  19. 2026Navigating the Prompt Space: Improving LLM Classification of Social Science Texts Through Prompt Engineeringcited by 0
  20. 2026From Accuracy to Auditability: A Survey of Determinism in Financial AI Systemscited by 0
  21. 2026Beyond Prediction: Tail-Aware Scheduling for LLM Inferencecited by 0
  22. 2026Understanding Evaluation Illusion in Diffusion Large Language Modelscited by 0
  23. 2026An Efficient vLLM-Based Inference Pipeline for Unified Audio Understanding and Generationcited by 0
  24. 2026Instability Floors: Separating Bias from Noise in Fairness Audits of Clinical LLM Agents with FairMedAgentcited by 0
  25. 2026Same Request, Different Answer: Quantization Amplifies Cache-Induced Divergence in LLM Servingcited by 0
  26. 2026Same Patient, Different Order: Action-Level Reliability of Clinical LLM Agents Under Repeated Runscited by 0
  27. 2026Evaluating Losslessness in Speculative Decoding Under Finite-Precision Inferencecited by 0
  28. 2026Inference-Engine Fingerprinting Attacks are Practical: Exploring Model-Driven Environmental Discovery, Exploitation, and Escapecited by 0
  29. 2026A Shared Learning Rate Is Not a Neutral Control in Selective On-Policy Distillationcited by 0
  30. 2026WaveFront Decoding: Parallelized Self-Speculative Decoding for Looped Language Modelscited by 0
  31. 2026Greedy Decoding Is Not Precision-Invariant: Cross-Precision Output Divergence in LLM Inferencecited by 0
  32. 2026RECLAIM: Can Agents Reproduce the Claims of Machine Learning Papers?cited by 0
  33. 2026ORCA: Evaluating LLMs on Data Science Code Translationcited by 0
  34. 2026Same Probe, Different Numbers: Are Activation Probes Robust to Inference-Time Numerical Non-Determinism?cited by 0
  35. 2026When Do Models Admit They Are Wrong? Failure Disclosure Is Unstable Under Reinforcement Learningcited by 0
  36. 2026AS2D: Accelerating On-Demand Audio Understanding on Mobile Devicescited by 0
  37. 2026Before It Fades: Reinforcing Temporal Representations at Inference Time in VideoLLMscited by 0
  38. 2026What Does a Harness Repair? A Preregistered Study of Visibility, Baseline Adequacy and Evaluation Defectscited by 0

50 most cited of 53 All 53 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2024LLM Inference Unveiled: Survey and Roofline Model Insights
  2. 2025Characterizing LLM Inference Energy-Performance Tradeoffs across Workloads and GPU Scaling
  3. 2025Do LLMs Overthink Basic Math Reasoning? Benchmarking the Accuracy-Efficiency Tradeoff in Language Models
  4. 2023Efficient LLM Inference on CPUs
  5. 2024Inference Scaling vs Reasoning: An Empirical Analysis of Compute-Optimal LLM Problem-Solving
  6. 2025Mathematical Reasoning in Large Language Models: Assessing Logical and Arithmetic Errors across Wide Numerical Ranges
  7. 2024Highly Optimized Kernels and Fine-Grained Codebooks for LLM Inference on Arm CPUs
  8. 2025An Empirical Study of LLM Reasoning Ability Under Strict Output Length Constraint