TL;DR
When we crown a new state-of-the-art Large Language Model (LLM), we often celebrate victory margins of a fraction of a percentage point—assuming the underlying software running the model is just a neutral calculator. This paper reveals that switching the inference engine (like vLLM, llama.cpp, or Ollama) while holding the model, prompt, and hardware completely identical can swing benchmark scores by up to 16.6 percentage points. The software serving your model isn’t passive plumbing; it’s a silent hyperparameter actively reshaping model behavior, rankings, and even safety alignment.
What Problem Does This Paper Address?
Running modern LLMs is computationally brutal. To evaluate or deploy them without going bankrupt on GPU hours, engineers rely on specialized inference backends—engines like vLLM or SGLang that use clever memory tricks and custom hardware kernels to make text generation fast.
Ideally, these speedups shouldn't change what the model says, only how fast it says it. Because LLMs generate text autoregressively—predicting one word based on all previous words—tiny floating-point rounding differences in early math operations can flip a single token, sending the rest of the response down a completely different timeline (a classic butterfly effect). While researchers obsessively document prompts, quantization, and random seeds, almost nobody asks whether the serving software itself warps benchmark leaderboards or breaks safety guardrails in production.
Methods
The authors tackled this from three angles:
- Ecosystem & Literature Survey: They mapped out 200 distinct inference engines across self-hosted libraries, managed APIs, and routers, and used an LLM-assisted pipeline to audit over 35,000 recent ML conference papers (NeurIPS, ICML, ICLR, ACL, EMNLP) to see how often researchers actually report their inference stack.
- Controlled Benchmarking: Using Hugging Face
transformersas a reference baseline, they tested five popular self-hosted backends (vLLM,SGLang,llama.cpp,LMDeploy, andOllama) across five open-weight models (4B to 30B parameters, covering both standard and chain-of-thought reasoning models). Everything else was locked down: a single NVIDIA H100 GPU, FP16 precision, external prompt templates, batch size of 1, and greedy decoding (temperature = 0). - Root-Cause Forensics: They systematically toggled engine features on and off—like prefix caching, CUDA graphs, and penalty parameters—and tracked layer-by-layer numerical drift to see why outputs diverged.
Datasets
No new evaluation benchmarks were introduced; instead, the authors evaluated models on five established datasets:
- GSM8K (math word problems)
- GPQA Diamond (graduate-level science questions)
- SimpleQA Verified (short-form factuality)
- LiveCodeBench v6 (code generation)
- JailbreakBench (adversarial safety and robustness, used in ablations)
They also curated a corpus of 35,000+ ML publications (narrowed to 9,018 papers running local open-weight LLM inference) for their reproducibility meta-analysis.
Key Insights and Ideas
- Sneaky Engine Defaults Cause Massive Drops: The wildest score swings weren't from exotic GPU math—they came from hidden software defaults. Even when told to use raw prompts, Ollama and LMDeploy silently injected Beginning-of-Sequence (BOS) tokens, and Ollama applied a default repetition penalty of
1.1that crippled chain-of-thought reasoning. - Speed Optimizations Break Math Associativity: In computer arithmetic, $(a + b) + c$ doesn't always equal $a + (b + c)$. Optimizations like prefix caching (chopping prompts into reusable chunks) change the order of floating-point additions, while parallel GPU kernels can introduce hardware race conditions when breaking ties between equally likely tokens.
- Reasoning Models Are Canaries in the Coal Mine: Models that "think out loud" for thousands of tokens amplify tiny numerical drifts. A slight early divergence can truncate a reasoning chain by thousands of tokens and completely flip the final answer.
- The "Deployment Gap" Is a Security Risk: If you safety-test a model in Hugging Face
transformersand deploy it on a fast serving engine, its vulnerability to jailbreaks can shift dramatically without a single weight changing.
Key Results
- Benchmark Swings: Backend choice alone shifted GSM8K accuracy on DeepSeek R1 Distill Qwen 7B by 16.60 percentage points (78.47% on
transformersvs. 61.87% onOllama), and reversed leaderboard rankings between closely matched models on GPQA. - High Output Disagreement: Even when overall accuracy looked similar, backends frequently disagreed on individual questions—Ollama disagreed with
transformerson 27.37% of DeepSeek's GSM8K answers and generated GPQA responses over 9,000 tokens shorter on average. - Safety Fluctuations: Switching backends caused DeepSeek R1 Distill Qwen 7B's vulnerability on JailbreakBench to fluctuate by 8.9 percentage points.
- Underreporting in Science: Among the 9,018 relevant ML papers, 25% provided no code URL; of those, 64% failed to even name their inference engine. Even among papers with accessible GitHub repos, over a third (1,778 repos) lacked environment dependency files to reconstruct the stack.
Limitations and Future Work
The controlled experiments focused exclusively on self-hosted backends running 4B–30B text models in FP16 on single GPUs. They didn't test massive frontier-scale models, multimodal/diffusion architectures, or commercial API routers—where hidden quantization, dynamic batching, and provider updates likely make variance even worse.
For future work and community standards, the authors urge leaderboards and researchers to treat the inference stack as a mandatory reported hyperparameter, release pinned environment containers, and push engine developers to build "strict deterministic modes" alongside their high-speed production kernels.
Summary updated