arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.13563cs.SEcs.CL
收藏

并非所有正确的修复运行表现都相同:对仓库级问题解决中补丁性能的实证研究

Not All Correct Fixes Run Alike: An Empirical Study of Patch Performance in Repository-Level Issue Resolution

The State Key Laboratory of Blockchain and Data Security, Zhejiang University(浙江大学区块链与数据安全国家重点实验室);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州高新技术开发区(滨江)区块链与数据安全研究院);Graz University of Technology(格拉茨工业大学)

Han Peng, Xing Hu, Feifei Niu, Huan Li, Xin Xia

AI总结:

该研究以SWE-bench等基准的F2P测试为工具,搭配Claude Opus 5等模型与SWE-agent,发现LLM生成补丁的运行时性能与问题解决率无关,需将补丁性能纳入仓库级问题解决的评估。

摘要:

SWE-bench等仓库级问题解决基准主要基于补丁是否通过正确性测试来评估提交的补丁,而不同通过测试的补丁的运行时性能在很大程度上未被探索。评估补丁性能至关重要但颇具挑战性,因为为每个基准实例设计性能工作负载成本高昂。不过,这些基准已提供了一个天然候选:内置的FAIL_TO_PASS(F2P)测试,其会测试问题修复所影响的行为。因此,我们研究是否可将提供的F2P测试重新用于评估补丁性能。总体而言,我们选择四个前沿模型Claude Opus 5、GPT 5.6、DeepSeek V4 Pro和Qwen 3.8 Max,搭配SWE-agent解决SWE-bench和SWE-bench-Live验证拆分的预过滤可测量语料,得到262个至少有两种不同正确解决方案的案例,其中包括开发者真实补丁。随后,我们在原生F2P测试上以指令数和挂钟时间衡量每个解决方案的运行时性能,并采用Welch ANOVA而非先前工作提出的RSD作为更稳健的统计判别准则。我们发现该方法在运行时性能上表现出显著判别能力,且在近一半的案例中识别出补丁间的性能差异。我们的实证研究表明,生成补丁的运行时性能与大语言模型(LLM)的问题解决率无关,且模型排名几乎相反。案例研究还显示,性能分析揭示了一些正确性评估未发现的补丁中的架构退化。这些发现表明,解决率无法充分表征LLM在仓库级问题解决方面的能力,推动未来评估需同时考虑补丁性能。

英文摘要:

Repository-level issue-resolution benchmarks such as SWE-bench evaluate submitted patches primarily based on whether they pass the correctness tests, leaving the runtime performance of different test-passing patches largely unexplored. Evaluating patch performance is essential but challenging since designing performance workloads for each benchmark instance is costly. However, these benchmarks already provide a natural candidate: the built-in \emph{FAIL\_TO\_PASS} (F2P) tests, which exercise the behavior affected by the issue fix. We therefore investigate whether the provided F2P tests can be repurposed to evaluate patch performance. Overall, we choose four frontier models, Claude Opus~5, GPT~5.6, DeepSeek V4 Pro, and Qwen~3.8 Max, paired with SWE-agent to resolve the pre-filtered measurable corpus from verified splits of SWE-bench and SWE-bench-Live, yielding 262 cases with at least two different correct solutions, including the developer ground-truth patch. We then measure each solution's runtime performance in instruction count and wall-clock time on the native F2P test, and use Welch ANOVA instead of the RSD proposed in prior work as a more robust statistical discrimination criterion. We find that this methodology exhibits notable discrimination capability in runtime performance and identifies performance differences among patches in almost half of the instances. Our empirical study shows that the runtime performance of generated patches is independent of the issue resolution rate of LLMs, with nearly reversed model rankings. The case study also shows that the performance analysis reveals architectural regression in some patches that the correctness evaluation overlooked. These findings suggest that resolution rate does not adequately characterize LLMs' capability for repository-level issue resolution, motivating future evaluations to consider patch performance alongside it.

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

↑