大型语言模型在确定性编程任务上的准确性、稳定性和重复运行可靠性
How Much Can Repeated Running Buy? A Measured Variance Ceiling for LLM Code Evaluation
AI总结:
通过重复运行评估协议,发现运行级通过率高估了无重试覆盖率高达17.8个百分点,且差距在中等性能系统中最大,表明稳定性分析是准确性报告的必要补充。
摘要:
运行级通过率高估了无重试覆盖率高达17.8个百分点——且差距恰恰在中等性能系统中最大。我们研究了大型语言模型(LLM)在确定性文本条件生成评估中的这种准确性-稳定性关系,以编程任务作为具体测试平台。标准代码生成基准强调单次运行准确性或在重复采样下的最终成功,但许多部署场景还需要稳定性:在相同任务描述下重复调用时的一致结果。我们提出了一种重复运行评估协议,包含运行级准确性、无重试覆盖率和每个问题的变异性指标。在一个包含100道LeetCode风格问题的基于近期的基准上,我们评估了来自五个提供者家族的16个模型,使用两种提示模板,每个问题重复运行五次,共产生16,000个评估实例。尽管运行级通过率与完美稳定率强相关(r=0.985),但通过率始终超过无重试覆盖率——这一差距达到17.8个百分点,并且即使在密切匹配的系统之间也会逆转模型排名。提示效应是模型依赖的,而非普遍有益的。这些结果表明,对于确定性文本条件生成任务,重复运行稳定性分析是传统准确性报告的必要补充。
英文摘要:
A benchmark score is a measurement whose uncertainty has two sources: an aleatoric component from stochastic decoding and an epistemic component from the finite problem set. Using 16 models on 99 recent LeetCode-style problems with two prompts and five runs each (15,840 judged runs in a fully crossed design), we estimate both components and ask a design question: how much can repeated running buy? First, the pooled-binomial interval that repeated-run protocols invite answers neither question of interest---it is about $2\times$ too narrow for generalisation to new problems and $2\times$ too wide for the fixed problem set---and under correctly clustered intervals, 12 of 15 adjacent leaderboard pairs are statistically unresolved. Second, the variance ceiling $1+μ_w/σ_b^2$, the largest factor by which repetition can reduce score variance, has median 1.34 across models (range 1.05--1.71), so repetition can narrow confidence intervals by at most 23% on this benchmark, and by 14% for the median model. Third, once the cost of adding verified problems is priced in, the precision-optimal repeat count is $R^{*}=\sqrt{μ_w c_p/(σ_b^2 c_g)}$, and the variance curve is flat around it: on this benchmark the decisive reason to repeat is not precision but identification---two to three runs suffice to estimate the components that the ceiling and the fixed-benchmark interval require. All three are measurements of one benchmark at one decoding temperature, and we state explicitly what they do and do not license.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。