arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.18004cs.SEcs.AI
收藏

SWEPatchTest:评估超出复现范围的软件测试

SWEPatchTest: Evaluating Software Tests Beyond Reproduction

Baidu Inc.(百度公司);Nanjing University(南京大学);The Chinese University of Hong Kong(香港中文大学)

Hua Lu, Pengcheng Wang, Han Li, Zichen Tian, Yanyu Chen, Huang He, Bingjin Chen

AI总结:

该研究提出SWEPatchTest基准,通过联合衡量问题复现、补丁接受与拒绝的JVR评估测试质量,用其优化SFT训练方法,提升了SWE-bench基准上的补丁修复效果。

摘要:

编码智能体使用生成的测试来判断提议的补丁是否满足问题的要求。在有缺陷的程序上失败、应用参考补丁后通过的测试套件,仍可能接受错误补丁或拒绝正确补丁。我们推出SWEPATCHTEST,这是一个测试生成基准,包含来自SWE-bench Pro、SWE-bench Multilingual和DeepSWE的619个任务,以及从编码智能体轨迹中收集的82579个候选补丁。通过在有缺陷和已打补丁的代码库上重放每个测试套件,该基准共同衡量问题复现、正确补丁的接受度以及错误补丁的拒绝度。联合验证率(JVR)要求同一任务满足所有三个标准,它揭示了单一参考评估隐藏的失败:尽管表现最佳的配置在59.29%的任务上复现了参考转换,但其JVR仅达到9.21%。我们进一步使用验证分数为监督微调(SFT)选择和扩展演示。由此产生的训练方法使JVR大约增加了两倍,并在三个SWE-bench基准上改善了下游修复。因此,补丁区分既提供了测试质量的诊断指标,也提供了用于策划智能体训练数据的基于执行的信号。

英文摘要:

Coding agents use generated tests to decide whether a proposed patch satisfies an issue's requirements. A suite that fails on the buggy program and passes after applying the reference patch can still accept an incorrect patch or reject a correct patch. We introduce SWEPATCHTEST, a test-generation benchmark with 619 tasks from SWE-bench Pro, SWE-bench Multilingual, and DeepSWE and 82,579 candidate patches collected from coding-agent trajectories. By replaying each suite on the buggy and patched codebases, \benchmark jointly measures issue reproduction, acceptance of correct patches, and rejection of incorrect patches. Joint Validation Rate (JVR), which requires all three criteria on the same task, exposes failures hidden by single-reference evaluation: the best-performing configuration achieves only 9.21% JVR despite reproducing the reference transition on 59.29% of tasks. We further use validation scores to select and scale demonstrations for supervised fine-tuning (SFT). The resulting training recipe approximately triples JVR and improves downstream repair across three SWE-bench benchmarks. Patch discrimination thus provides both a diagnostic measure of test quality and an execution-based signal for curating agent training data.

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

↑