arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.10144stat.MLcs.AIcs.LG
收藏

当大语言模型显著变差:一种检测模型退化的方法

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

Amazon(亚马逊)

Jonas Kübler, Kailash Budhathoki, Matthäus Kleindessner, Xiong Zhou, Junming Yin, Ashish Khetan, George Karypis

AI总结:

本文提出了一种基于McNemar检验的统计方法,用于检测大语言模型的退化,通过对比每个样本的模型评分,有效区分退化与噪声。

摘要:

最小化基础模型的推理成本和延迟已成为研究的关键领域。优化方法包括理论上无损的方法以及没有准确保证的其他方法,如量化。在所有这些情况下,确保模型质量没有退化至关重要。然而,即使在温度为零的情况下,模型生成也不一定对理论无损的模型优化具有鲁棒性,这可能由于数值误差所致。因此,我们要求统计工具来决定有限样本准确性偏差是模型退化的确凿证据,还是可以归因于(无害的)评估噪声。我们提出了一种基于McNemar检验的统计上可靠的假设检验框架,以有效检测模型退化,同时保证假阳性率受控。关键见解是,我们必须在每个样本上面对模型评分,而不是在任务层面汇总。此外,我们提出了三种方法,将多个基准的准确性估计汇总为单一决策。我们基于广泛采用的开源LM评估工具包提供了实现,并提供了一个案例研究,说明该方法能够正确标记退化模型,同时不标记可证明无损的模型优化。我们发现,即使在我们的测试中,经验准确率退化0.3%也可以自信地归因于实际退化,而不是噪声。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑