arXiv:2605.19537cs.LG2026-05被引 3

不同推理后端能让大模型表现差16.6个百分点,影响结果可复现性。

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

论文配图:The Silent Hyperparameter: Quantifying the Impact of Inference Backends on LLM Reproducibility
图 1 · 摘自论文原文
  • 对比5种主流推理引擎,固定模型和硬件测试表现差异。
  • 后端选择可导致基准分数波动达16.6个百分点,输出不一致率高。
  • 适合关注模型评估可复现性的研究者与开发者参考。

大模型进展常以百分点级差异衡量,而推理后端的广泛使用正悄然改变评估结果。我们调查了200种推理引擎,分析3.5万篇论文发现,多数研究未报告具体后端。在固定模型权重、解码参数和硬件条件下,对五种常用引擎(vLLM、SGLang、llama.cpp等)在多个开源模型和基准上进行系统评估。结果表明,仅更换后端即可使基准分数变化高达16.6个百分点,并引发高频率输出不一致。通过追踪执行流程,我们发现该差异主要由前缀缓存、CUDA图、自定义CUDA核函数及引擎特有的逻辑处理默认值等系统优化引起。研究揭示推理后端是此前被忽略却至关重要的超参数,呼吁标准化报告推理栈以提升基准比较的可复现性与可解释性。

原文摘要 · Abstract (English)

Progress in LLMs is increasingly measured through standardized benchmarks, where state-of-the-art improvements are often separated by fractions of a percentage point. At the same time, the computational cost of evaluating modern LLMs has driven widespread adoption of specialized inference backends, software systems that execute trained models efficiently at inference time. While critical for scalability, system-level optimizations, such as custom CUDA kernels and reduced-precision arithmetic, can alter token probabilities and introduce non-determinism, possibly cascading into divergent generation. In this work, we first survey the inference landscape, identifying 200 distinct engines, and analyze 35,000 ML publications, finding that the specific inference stack is rarely reported despite this widespread diversity. We then present a systematic empirical study of how inference backends affect LLM benchmark results. Holding model weights, decoding parameters, and hardware constant, we evaluate five widely used inference engines, including vLLM, SGLang, and llama$.$cpp, across multiple open-weight models and established benchmarks. We show that the choice of backend alone can shift benchmark scores by up to 16.6 percentage points and induce high rates of output disagreement. By isolating backend optimizations and tracing the execution pipeline, we find this divergence is driven by system-level optimizations like prefix caching and CUDA graphs, custom kernels, and engine-specific defaults in logit processing. Our findings identify the inference backend as a previously unreported but consequential hyperparameter in the evaluation of LLM and advocate standardized reporting of inference stacks to improve the reproducibility and interpretability of benchmark comparisons.

大模型评估推理后端可复现性基准测试

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。