The Silent Hyperparameter: Quantifying the Impact of Inference Backends on LLM Reproducibility

David Pape, Jonathan Evertz, Lea SchönherrarXiv 2026

TL;DR

The choice of LLM inference backend (such as vLLM, SGLang, or llama.cpp) acts as a "silent hyperparameter" that can swing benchmark scores by up to 16.6 percentage points, even when model weights, hardware, and decoding parameters are completely identical. This paper exposes how hidden engine defaults and low-level numerical optimizations break LLM reproducibility, revealing a critical blind spot in how the machine learning community evaluates and reports model performance.

What Problem Does This Paper Address?

In the race for state-of-the-art (SOTA) LLM performance, models are often separated on leaderboards by mere fractions of a percentage point. To serve these massive models efficiently, researchers and engineers rely on specialized inference engines designed to maximize throughput and minimize latency.

However, these engines employ aggressive system-level optimizations—such as custom CUDA kernels, prefix caching, and reduced-precision arithmetic. Because autoregressive language generation is inherently sequential, a tiny numerical shift in token probabilities early in the sequence can cascade, causing the model to generate a completely different trajectory. The authors address two major gaps: quantifying how much these backend optimizations alter evaluation metrics, and documenting how rarely the ML community actually reports their specific inference stack.

Methods

The authors tackled this problem through a three-pronged approach:

  1. Landscape & Literature Survey: They mapped out the modern inference ecosystem, identifying 200 distinct engines. They then utilized an LLM-as-a-judge pipeline to audit over 35,000 papers from top-tier ML conferences (NeurIPS, ICML, ICLR, ACL, EMNLP) to quantify how frequently inference environments are documented.
  2. Controlled Empirical Evaluation: To isolate the impact of the backend, they evaluated five widely used inference engines—vLLM, SGLang, llama.cpp, LMDeploy, and Ollama—against a HuggingFace transformers reference implementation. They strictly controlled all external variables: using identical hardware (a single NVIDIA H100 GPU), greedy decoding (temperature = 0), FP16 precision, external chat templates, and a batch size of 1.
  3. Root Cause Analysis: They systematically ablated specific engine features (such as prefix caching, CUDA graphs, hidden repetition penalties, and token tie-breaking rules) to pinpoint exactly what causes the outputs to diverge.
Figure 1: Landscape of Inference Engines. (a) Distribution of 200 surveyed inference engines across the three categories, colored to distinguish between open-source and proprietary systems. (b) The distribution of primary programming languages used across the open-source engines.

Datasets

The authors evaluated five open-weight models (Llama 3.1 8B, Qwen3 4B, Qwen3 30B, DeepSeek R1 Distill Qwen 7B, and Qwen3 Thinking 30B) across four standard benchmarks targeting distinct capabilities:

  • GSM8K: Mathematical reasoning
  • GPQA Diamond: Graduate-level science Q&A
  • SimpleQA Verified: Factuality and knowledge retrieval
  • LiveCodeBench v6: Code generation

No new benchmarks were introduced; the focus was entirely on the variance observed on these established datasets.

Key Insights and Ideas

  • The Reasoning Model Fragility: Reasoning-focused models (like DeepSeek R1) are far more susceptible to backend variance than standard architectures. Because they rely on long chains-of-thought, early token-level divergence completely alters their reasoning path, leading to massive length discrepancies. For instance, Ollama generated answers that were, on average, 9,000 tokens shorter than the reference implementation on GPQA.
  • Two Tiers of Divergence: The variance stems from two distinct sources: systematic engine defaults applied before generation (like forced token injections or hidden penalties) and optimization-induced numerical drift built into the mathematical execution (like altered reduction trees from prefix caching).
  • Leaderboards are Flawed: Because backend choice can shift scores by margins far wider than the gaps separating top models, comparative benchmarking is fundamentally compromised. A model's apparent superiority might simply be an artifact of the inference engine used during testing.

Key Results

  • Massive Accuracy Swings: Holding everything else constant, changing the backend shifted benchmark scores by up to 16.6 percentage points. As seen in the evaluation results, DeepSeek R1's GSM8K score plummeted from 78.47% on the reference implementation to 61.87% when run on Ollama.
Table 1: Backend Performance Variance across Benchmarks. Performance comparison of five backends across selected models and benchmarks. Metrics are reported as accuracy (%) for GPQA and GSM8K, F1 for SimpleQA, and pass@1 for LiveCodeBench. The last column shows the difference between the maximum and minimum scores for each benchmark. Highest scores are bold, lowest scores are underlined.
  • High Disagreement Rates: Even when absolute accuracies appeared similar, the models were often answering different questions correctly. DeepSeek R1 on Ollama exhibited a 27.37% output disagreement rate compared to the reference on GSM8K.
  • Unmasking Hidden Defaults: The authors discovered that Ollama enforces a hidden default repetition penalty of 1.1 and forcefully injects a Begin-Of-Sequence (BOS) token. Disabling this repetition penalty alone recovered 11.67 percentage points for DeepSeek R1 on GSM8K.
  • The Reproducibility Crisis: The literature survey revealed that while 75% of relevant papers share a code repository, over a third of those repositories provide no environment specifications (Tier 2), making it impossible to accurately reconstruct the evaluation stack.
Figure 2: Prevalence of Reproducibility Artifacts in ML Research. A breakdown of 9,018 relevant papers categorized by their reproducibility tier.

Limitations and Future Work

A key limitation acknowledged by the authors is that their highly controlled setup (batch size 1, greedy decoding) represents a lower bound of variance. In real-world production environments featuring dynamic batching, high concurrency, and stochastic sampling, the divergence is likely even more pronounced. Furthermore, greedy decoding is inherently suboptimal for reasoning models like DeepSeek R1, which may skew the absolute baseline scores.

Future work points toward the need for inference engine developers to implement "strict reproducibility" flags and expose system fingerprints in API metadata, allowing researchers to balance high-throughput production needs with deterministic scientific validation.

Summary updated

BibTeX
@misc{pape2026silent,
  author = {David Pape and Jonathan Evertz and Lea Schönherr},
  title = {{The Silent Hyperparameter: Quantifying the Impact of Inference Backends on LLM Reproducibility}},
  year = {2026},
  eprint = {2605.19537},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.19537},
}
Figure