Understanding and Mitigating Numerical Sources of Nondeterminism in LLM Inference
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
- 2023GPT-4 Technical Reportcited by 18,396
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2023A Survey on Evaluation of Large Language Modelscited by 1,242
- 2025Stop Overthinking: A Survey on Efficient Reasoning for Large Language Modelscited by 464
- 2023An Empirical Study of the Non-determinism of ChatGPT in Code Generationcited by 137
11 more
- 2025A Sober Look at Progress in Language Model Reasoning: Pitfalls and Paths to Reproducibilitycited by 93
- 2021Randomness In Neural Network Training: Characterizing The Impact of Toolingcited by 59
- 2021Nondeterminism and Instability in Neural Network Optimizationcited by 48
- 2024Impacts of floating-point non-associativity on reproducibility for HPC and deep learning applicationscited by 24
- 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMscited by 24
- 2025Assessing Consistency and Reproducibility in the Outputs of Large Language Models: Evidence Across Diverse Finance and Accounting Taskscited by 20
- 2024Optimizing Large Language Model Hyperparameters for Code Generationcited by 11
- 2025Studying How Configurations Impact Code Generation in LLMs: the Case of ChatGPTcited by 8
- 2025Measuring Determinism in Large Language Models for Software Code Reviewcited by 6
- 2025The Science of Evaluating Foundation Modelscited by 5
- 2023Benchmarking Large Language Model Volatilitycited by 4
Built on by
Citing papers per year: 2025: 3; 2026: 50.
53 papers.
Sort:
By area:
- 2026On Randomness in Agentic Evalscited by 17
- 2025Deterministic Inference across Tensor Parallel Sizes That Eliminates Training-Inference Mismatchcited by 14
- 2026Hidden Measurement Error in LLM Pipelines Distorts Annotation, Evaluation, and Benchmarkingcited by 10
- 2026The Silent Hyperparameter: Quantifying the Impact of Inference Backends on LLM Reproducibilitycited by 8
- 2026When LLMs get significantly worse: A statistical approach to detect model degradationscited by 7
- 2026The Illusion of Equivalence: Systematic FP16 Divergence in KV-Cached Autoregressive Inferencecited by 4
- 2026Dataset-Level Metrics Attenuate Non-Determinism: A Fine-Grained Non-Determinism Evaluation in Diffusion Language Modelscited by 3
- 2026Kernel Contracts: A Specification Language for ML Kernel Correctness Across Heterogeneous Siliconcited by 3
- 2026MarginGate: Sparse Margin-Triggered Verification for Batch-Invariant LLM Inferencecited by 3
- 2026Hardware-Triggered Backdoorscited by 2
- 2026SEAR: Simple and Efficient Adaptation of Visual Geometric Transformers for Unpaired RGB+Thermal 3D Reconstructioncited by 2
- 2026Paraphrase Brittleness in Production Retrieval-Augmented Commercial Recommendation: Reproducibility Below the Rerun-Stability Baselinecited by 2
38 more
- 2026FloatDoor: Platform-Triggered Backdoors in LLMscited by 2
- 2026Demystifying Numerical Instability in LLM Inference: Achieving Reproducible Inference for Mission-Critical Tasks with HEALcited by 2
- 2026AgentTrails: Towards Trust and Reuse for Agentic Taskscited by 2
- 2026Kalypso: Relational LLM Servingcited by 2
- 2026Do All LLMs Know When They're Being Harmful? A Reproducibility Study of Latent-Space Safety Probes Across Model Familiescited by 2
- 2026The Integer Alibi: Localizing Cross-Kernel Divergence in INT8-Quantized LLM Inferencecited by 2
- 2025Bit-Accurate Modeling of GPU Matrix Multiply-Accumulate Units: Demystifying Numerical Discrepancy and Accuracycited by 1
- 2026Fingerprinting Inference Systems of Large Language Modelscited by 1
- 2026Re-feeding Is Not Replaying: Measuring Replay Noise in Counterfactual Token-Credit Estimationcited by 1
- 2026M-GATE: Multilingual Grammar, Accuracy in Translation, and Efficiency Benchmark for Large Language Modelscited by 1
- 2026Routing Is Least Learnable Where It Is Most Valuable: Bounds on Representation Routing for Web Agentscited by 1
- 2026Benchmarking LLM Serving Systems for Agentic AI Workloads with XPerfcited by 1
- 2026Deterministic LLM Inference Across GPU Kernels: Power-of-Two INT8 Quantization Scales and the Limits of Tolerance-Based Conformancecited by 1
- 2026Accelerating the Mitigation of LLM Inference Nondeterminism Across GPU Architecturescited by 1
- 2026Dating the Model: Hidden Dates in System Prompts Affect LLM Evaluationcited by 1
- 2025A solution to generalized learning from small training sets found in infants repeated visual experiences of individual objectscited by 0
- 2026Information Theoretic Perspective on Representation Learningcited by 0
- 2026A Note on Non-Composability of Layerwise Approximate Verification for Neural Inferencecited by 0
- 2026Navigating the Prompt Space: Improving LLM Classification of Social Science Texts Through Prompt Engineeringcited by 0
- 2026From Accuracy to Auditability: A Survey of Determinism in Financial AI Systemscited by 0
- 2026Beyond Prediction: Tail-Aware Scheduling for LLM Inferencecited by 0
- 2026Understanding Evaluation Illusion in Diffusion Large Language Modelscited by 0
- 2026An Efficient vLLM-Based Inference Pipeline for Unified Audio Understanding and Generationcited by 0
- 2026Instability Floors: Separating Bias from Noise in Fairness Audits of Clinical LLM Agents with FairMedAgentcited by 0
- 2026Same Request, Different Answer: Quantization Amplifies Cache-Induced Divergence in LLM Servingcited by 0
- 2026Same Patient, Different Order: Action-Level Reliability of Clinical LLM Agents Under Repeated Runscited by 0
- 2026Evaluating Losslessness in Speculative Decoding Under Finite-Precision Inferencecited by 0
- 2026Inference-Engine Fingerprinting Attacks are Practical: Exploring Model-Driven Environmental Discovery, Exploitation, and Escapecited by 0
- 2026A Shared Learning Rate Is Not a Neutral Control in Selective On-Policy Distillationcited by 0
- 2026WaveFront Decoding: Parallelized Self-Speculative Decoding for Looped Language Modelscited by 0
- 2026Greedy Decoding Is Not Precision-Invariant: Cross-Precision Output Divergence in LLM Inferencecited by 0
- 2026RECLAIM: Can Agents Reproduce the Claims of Machine Learning Papers?cited by 0
- 2026ORCA: Evaluating LLMs on Data Science Code Translationcited by 0
- 2026Same Probe, Different Numbers: Are Activation Probes Robust to Inference-Time Numerical Non-Determinism?cited by 0
- 2026When Do Models Admit They Are Wrong? Failure Disclosure Is Unstable Under Reinforcement Learningcited by 0
- 2026AS2D: Accelerating On-Demand Audio Understanding on Mobile Devicescited by 0
- 2026Before It Fades: Reinforcing Temporal Representations at Inference Time in VideoLLMscited by 0
- 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)
- 2026Bookkeeping, Composition, or Unreachable Gold? Reading MemoryAgentBench's Conflict-Resolution Scores Against a Frozen Last-Write Resolver6 Oct 2026
- 2026Same Text, Different Prediction: Serving-Context Nondeterminism in Text Classifiers6 Oct 2026
- 2026Does an Agent's History Tell You When Compaction Will Hurt? A Modest, Bounded Effect on the TRACE Paired-Replay Corpus6 Oct 2026
- 2026What Does a Harness Repair? A Preregistered Study of Visibility, Baseline Adequacy and Evaluation Defects4 Oct 2026
- 2026Before It Fades: Reinforcing Temporal Representations at Inference Time in VideoLLMs1 Oct 2026
- 2026AS2D: Accelerating On-Demand Audio Understanding on Mobile Devices29 Sep 2026
- 2026Dating the Model: Hidden Dates in System Prompts Affect LLM Evaluation29 Sep 2026
- 2026When Do Models Admit They Are Wrong? Failure Disclosure Is Unstable Under Reinforcement Learning27 Sep 2026
- 2026Same Probe, Different Numbers: Are Activation Probes Robust to Inference-Time Numerical Non-Determinism?25 Sep 2026
- 2026ORCA: Evaluating LLMs on Data Science Code Translation25 Sep 2026
- 2026RECLAIM: Can Agents Reproduce the Claims of Machine Learning Papers?23 Sep 2026
- 2026Greedy Decoding Is Not Precision-Invariant: Cross-Precision Output Divergence in LLM Inference22 Sep 2026
38 more
- 2026Accelerating the Mitigation of LLM Inference Nondeterminism Across GPU Architectures22 Sep 2026
- 2026WaveFront Decoding: Parallelized Self-Speculative Decoding for Looped Language Models19 Sep 2026
- 2026Inference-Engine Fingerprinting Attacks are Practical: Exploring Model-Driven Environmental Discovery, Exploitation, and Escape17 Sep 2026
- 2026Evaluating Losslessness in Speculative Decoding Under Finite-Precision Inference14 Sep 2026
- 2026Same Patient, Different Order: Action-Level Reliability of Clinical LLM Agents Under Repeated Runs11 Sep 2026
- 2026Same Request, Different Answer: Quantization Amplifies Cache-Induced Divergence in LLM Serving4 Sep 2026
- 2026Instability Floors: Separating Bias from Noise in Fairness Audits of Clinical LLM Agents with FairMedAgent2 Sep 2026
- 2026Deterministic LLM Inference Across GPU Kernels: Power-of-Two INT8 Quantization Scales and the Limits of Tolerance-Based Conformance25 Aug 2026
- 2026A Shared Learning Rate Is Not a Neutral Control in Selective On-Policy Distillation17 Aug 2026
- 2026The Integer Alibi: Localizing Cross-Kernel Divergence in INT8-Quantized LLM Inference13 Aug 2026
- 2026Do All LLMs Know When They're Being Harmful? A Reproducibility Study of Latent-Space Safety Probes Across Model Families8 Aug 2026
- 2026Routing Is Least Learnable Where It Is Most Valuable: Bounds on Representation Routing for Web Agents6 Aug 2026
- 2026M-GATE: Multilingual Grammar, Accuracy in Translation, and Efficiency Benchmark for Large Language Models4 Aug 2026
- 2026Kalypso: Relational LLM Serving26 Jul 2026
- 2026AgentTrails: Towards Trust and Reuse for Agentic Tasks21 Jul 2026
- 2026An Efficient vLLM-Based Inference Pipeline for Unified Audio Understanding and Generation2 Jul 2026
- 2026Understanding Evaluation Illusion in Diffusion Large Language Models28 Jun 2026
- 2026Benchmarking LLM Serving Systems for Agentic AI Workloads with XPerf19 Jun 2026
- 2026Demystifying Numerical Instability in LLM Inference: Achieving Reproducible Inference for Mission-Critical Tasks with HEAL19 Jun 2026
- 2026FloatDoor: Platform-Triggered Backdoors in LLMs17 Jun 2026
- 2026Beyond Prediction: Tail-Aware Scheduling for LLM Inference16 Jun 2026
- 2026Re-feeding Is Not Replaying: Measuring Replay Noise in Counterfactual Token-Credit Estimation14 Jun 2026
- 2026MarginGate: Sparse Margin-Triggered Verification for Batch-Invariant LLM Inference28 May 2026
- 2026Fingerprinting Inference Systems of Large Language Models28 May 2026
- 2026Paraphrase Brittleness in Production Retrieval-Augmented Commercial Recommendation: Reproducibility Below the Rerun-Stability Baseline22 May 2026
- 2026The Silent Hyperparameter: Quantifying the Impact of Inference Backends on LLM Reproducibility19 May 2026
- 2026From Accuracy to Auditability: A Survey of Determinism in Financial AI Systems11 May 2026
- 2026Kernel Contracts: A Specification Language for ML Kernel Correctness Across Heterogeneous Silicon23 Apr 2026
- 2026The Illusion of Equivalence: Systematic FP16 Divergence in KV-Cached Autoregressive Inference16 Apr 2026
- 2026Dataset-Level Metrics Attenuate Non-Determinism: A Fine-Grained Non-Determinism Evaluation in Diffusion Language Models15 Apr 2026
- 2026Hidden Measurement Error in LLM Pipelines Distorts Annotation, Evaluation, and Benchmarking13 Apr 2026
- 2026Navigating the Prompt Space: Improving LLM Classification of Social Science Texts Through Prompt Engineering26 Mar 2026
- 2026SEAR: Simple and Efficient Adaptation of Visual Geometric Transformers for Unpaired RGB+Thermal 3D Reconstruction19 Mar 2026
- 2026A Note on Non-Composability of Layerwise Approximate Verification for Neural Inference17 Feb 2026
- 2026When LLMs get significantly worse: A statistical approach to detect model degradations9 Feb 2026
- 2026On Randomness in Agentic Evals6 Feb 2026
- 2026Hardware-Triggered Backdoors29 Jan 2026
- 2026Information Theoretic Perspective on Representation Learning16 Jan 2026
50 newest of 53 All 53 (JSON)
- 2026The Illusion of Equivalence: Systematic FP16 Divergence in KV-Cached Autoregressive Inferencecited by 4
- 2026Demystifying Numerical Instability in LLM Inference: Achieving Reproducible Inference for Mission-Critical Tasks with HEALcited by 2
- 2026Kalypso: Relational LLM Servingcited by 2
- 2026Beyond Prediction: Tail-Aware Scheduling for LLM Inferencecited by 0
- 2026Understanding Evaluation Illusion in Diffusion Large Language Modelscited by 0
- 2026Same Request, Different Answer: Quantization Amplifies Cache-Induced Divergence in LLM Servingcited by 0
- 2026Evaluating Losslessness in Speculative Decoding Under Finite-Precision Inferencecited by 0
- 2026WaveFront Decoding: Parallelized Self-Speculative Decoding for Looped Language Modelscited by 0
- 2026AS2D: Accelerating On-Demand Audio Understanding on Mobile Devicescited by 0
- 2026AS2D: Accelerating On-Demand Audio Understanding on Mobile Devices29 Sep 2026
- 2026WaveFront Decoding: Parallelized Self-Speculative Decoding for Looped Language Models19 Sep 2026
- 2026Evaluating Losslessness in Speculative Decoding Under Finite-Precision Inference14 Sep 2026
- 2026Same Request, Different Answer: Quantization Amplifies Cache-Induced Divergence in LLM Serving4 Sep 2026
- 2026Kalypso: Relational LLM Serving26 Jul 2026
- 2026Understanding Evaluation Illusion in Diffusion Large Language Models28 Jun 2026
- 2026Demystifying Numerical Instability in LLM Inference: Achieving Reproducible Inference for Mission-Critical Tasks with HEAL19 Jun 2026
- 2026Beyond Prediction: Tail-Aware Scheduling for LLM Inference16 Jun 2026
- 2026The Illusion of Equivalence: Systematic FP16 Divergence in KV-Cached Autoregressive Inference16 Apr 2026
- 2026On Randomness in Agentic Evalscited by 17
- 2026AgentTrails: Towards Trust and Reuse for Agentic Taskscited by 2
- 2026Routing Is Least Learnable Where It Is Most Valuable: Bounds on Representation Routing for Web Agentscited by 1
- 2026Benchmarking LLM Serving Systems for Agentic AI Workloads with XPerfcited by 1
- 2026Same Patient, Different Order: Action-Level Reliability of Clinical LLM Agents Under Repeated Runscited by 0
- 2026RECLAIM: Can Agents Reproduce the Claims of Machine Learning Papers?cited by 0
- 2026RECLAIM: Can Agents Reproduce the Claims of Machine Learning Papers?23 Sep 2026
- 2026Same Patient, Different Order: Action-Level Reliability of Clinical LLM Agents Under Repeated Runs11 Sep 2026
- 2026Routing Is Least Learnable Where It Is Most Valuable: Bounds on Representation Routing for Web Agents6 Aug 2026
- 2026AgentTrails: Towards Trust and Reuse for Agentic Tasks21 Jul 2026
- 2026Benchmarking LLM Serving Systems for Agentic AI Workloads with XPerf19 Jun 2026
- 2026On Randomness in Agentic Evals6 Feb 2026
- 2025Deterministic Inference across Tensor Parallel Sizes That Eliminates Training-Inference Mismatchcited by 14
- 2026Hidden Measurement Error in LLM Pipelines Distorts Annotation, Evaluation, and Benchmarkingcited by 10
- 2026The Silent Hyperparameter: Quantifying the Impact of Inference Backends on LLM Reproducibilitycited by 8
- 2026When LLMs get significantly worse: A statistical approach to detect model degradationscited by 7
- 2026Kernel Contracts: A Specification Language for ML Kernel Correctness Across Heterogeneous Siliconcited by 3
- 2026MarginGate: Sparse Margin-Triggered Verification for Batch-Invariant LLM Inferencecited by 3
- 2026Hardware-Triggered Backdoorscited by 2
- 2026SEAR: Simple and Efficient Adaptation of Visual Geometric Transformers for Unpaired RGB+Thermal 3D Reconstructioncited by 2
- 2026Paraphrase Brittleness in Production Retrieval-Augmented Commercial Recommendation: Reproducibility Below the Rerun-Stability Baselinecited by 2
- 2026The Integer Alibi: Localizing Cross-Kernel Divergence in INT8-Quantized LLM Inferencecited by 2
- 2025Bit-Accurate Modeling of GPU Matrix Multiply-Accumulate Units: Demystifying Numerical Discrepancy and Accuracycited by 1
- 2026Fingerprinting Inference Systems of Large Language Modelscited by 1
12 most cited of 30 All 30 (JSON)
- 2026Bookkeeping, Composition, or Unreachable Gold? Reading MemoryAgentBench's Conflict-Resolution Scores Against a Frozen Last-Write Resolver6 Oct 2026
- 2026Same Text, Different Prediction: Serving-Context Nondeterminism in Text Classifiers6 Oct 2026
- 2026Does an Agent's History Tell You When Compaction Will Hurt? A Modest, Bounded Effect on the TRACE Paired-Replay Corpus6 Oct 2026
- 2026What Does a Harness Repair? A Preregistered Study of Visibility, Baseline Adequacy and Evaluation Defects4 Oct 2026
- 2026Same Probe, Different Numbers: Are Activation Probes Robust to Inference-Time Numerical Non-Determinism?25 Sep 2026
- 2026ORCA: Evaluating LLMs on Data Science Code Translation25 Sep 2026
- 2026Greedy Decoding Is Not Precision-Invariant: Cross-Precision Output Divergence in LLM Inference22 Sep 2026
- 2026Accelerating the Mitigation of LLM Inference Nondeterminism Across GPU Architectures22 Sep 2026
- 2026Inference-Engine Fingerprinting Attacks are Practical: Exploring Model-Driven Environmental Discovery, Exploitation, and Escape17 Sep 2026
- 2026Instability Floors: Separating Bias from Noise in Fairness Audits of Clinical LLM Agents with FairMedAgent2 Sep 2026
- 2026Deterministic LLM Inference Across GPU Kernels: Power-of-Two INT8 Quantization Scales and the Limits of Tolerance-Based Conformance25 Aug 2026
- 2026The Integer Alibi: Localizing Cross-Kernel Divergence in INT8-Quantized LLM Inference13 Aug 2026
12 newest of 30 All 30 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024LLM Inference Unveiled: Survey and Roofline Model Insights
- 2025Characterizing LLM Inference Energy-Performance Tradeoffs across Workloads and GPU Scaling
- 2025Do LLMs Overthink Basic Math Reasoning? Benchmarking the Accuracy-Efficiency Tradeoff in Language Models
- 2023Efficient LLM Inference on CPUs
- 2024Inference Scaling vs Reasoning: An Empirical Analysis of Compute-Optimal LLM Problem-Solving
- 2025Mathematical Reasoning in Large Language Models: Assessing Logical and Arithmetic Errors across Wide Numerical Ranges
- 2024Highly Optimized Kernels and Fine-Grained Codebooks for LLM Inference on Arm CPUs
- 2025An Empirical Study of LLM Reasoning Ability Under Strict Output Length Constraint