arXiv:2602.10144stat.MLcs.AI2026-02被引 2

用统计方法精准识别大模型推理优化中的真实性能下降

When LLMs get significantly worse: A statistical approach to detect model degradations

  • 基于麦克尼马尔检验,逐样本对比模型输出判断是否退化
  • 可检测0.3%的微小准确率下降,避免误报假阳性
  • 适配主流评测框架,适合关注模型稳定性与优化安全的研究者

降低基础模型的推理成本和延迟已成为研究重点。优化方法包括理论上无损的方法,以及如量化等无精度保证的方法。在所有情况下,确保模型质量未退化至关重要。然而,即使在温度为零时,模型生成仍可能因数值误差而不稳定,即使是对理论上无损的优化也是如此。因此,需要统计工具来判断有限样本下的准确率偏差是模型退化的证据,还是可归因于评估中的(无害)噪声。我们提出一种基于麦克尼马尔检验的统计假设检验框架,可高效检测模型退化,并控制假阳性率。关键洞察是必须逐样本对比模型得分,而非在任务层面聚合。此外,我们提出三种将多个基准上的准确率估计聚合为单一决策的方法。我们在广泛采用的开源模型评测框架LM Evaluation Harness上提供了实现,并通过案例研究证明该方法能正确标记退化模型,而不会误报理论上无损的优化。我们发现,即使0.3%的实证准确率下降也可被可信地归因于实际退化而非噪声。

原文摘要 · Abstract (English)

Minimizing the inference cost and latency of foundation models has become a crucial area of research. Optimization approaches include theoretically lossless methods and others without accuracy guarantees like quantization. In all of these cases it is crucial to ensure that the model quality has not degraded. However, even at temperature zero, model generations are not necessarily robust even to theoretically lossless model optimizations due to numerical errors. We thus require statistical tools to decide whether a finite-sample accuracy deviation is an evidence of a model's degradation or whether it can be attributed to (harmless) noise in the evaluation. We propose a statistically sound hypothesis testing framework based on McNemar's test allowing to efficiently detect model degradations, while guaranteeing a controlled rate of false positives. The crucial insight is that we have to confront the model scores on each sample, rather than aggregated on the task level. Furthermore, we propose three approaches to aggregate accuracy estimates across multiple benchmarks into a single decision. We provide an implementation on top of the largely adopted open source LM Evaluation Harness and provide a case study illustrating that the method correctly flags degraded models, while not flagging model optimizations that are provably lossless. We find that with our tests even empirical accuracy degradations of 0.3% can be confidently attributed to actual degradations rather than noise.

模型优化统计检验性能退化大模型

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