arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.00649cs.SE
收藏

Historian: 通过基于证据的评估减少APR基准测试中的手动验证

Historian: Reducing Manual Validation in APR Benchmarking via Evidence-Based Assessment

Bilkent University(比尔肯特大学)

Sahand Moslemi, Mayasah Lami, Anil Koyuncu

AI总结:

Historian通过基于证据的多参考比较,提高自动化程序修复评估的准确性与覆盖率,减少手动验证需求。

摘要:

评估由自动化程序修复(APR)生成的补丁的正确性是一个主要瓶颈。手动验证是劳动密集型且有限的:精确匹配忽略了有效的变体,而语义检查是主观的且难以重复。现有的自动化补丁正确性评估(APCA)通常依赖于不透明的预测模型,将每个补丁视为新颖的,反复重新评估语义冗余的补丁。我们对大量工具生成补丁的语料库进行了分析,发现了一种二元性:大约39%的唯一正确补丁是语法克隆,表明有自动化的机会,但大约65%的错误有多个不同的正确修复方法,使单参考评估不足。我们提出了Historian,一个利用大语言模型进行多参考比较的框架,与历史验证补丁的知识库进行比较,产生可追溯、基于证据的判断,同时保守地将新案例隔离为未知。在留一工具法评估中,Historian实现了95.0%的覆盖率和88.4%的准确性,将手动验证减少到补丁的5%。作为基于证据的预过滤,可将独立APCA工具的准确性提高高达21.8%,并启用混合流程,整体准确率为86.2%,覆盖率为100%。对工具生成补丁的长期分析(2020-2024)显示,修复尝试中的冗余很常见,表明许多补丁反复重新发现已确立的补丁,加强了基于证据的APR评估的可持续性。

英文摘要:

Assessing the correctness of patches generated by Automated Program Repair (APR) is a major bottleneck. Manual validation is labor-intensive and limited: exact matching overlooks valid variants, while semantic inspection is subjective and hard to reproduce. Existing Automated Patch Correctness Assessment (APCA) often relies on opaque predictive models that treat each patch as novel, repeatedly re-assessing semantically redundant patches. Our analysis of a large corpus of tool-generated patches reveals a duality: about 39% of unique correct patches are syntactic clones, suggesting opportunities for automation, yet about 65% of bugs have multiple distinct correct fixes, making single-reference assessment insufficient. We present Historian, a framework that leverages Large Language Models to perform multi-reference comparisons against a knowledge base of historically validated patches, producing traceable, evidence-based verdicts while conservatively isolating novel cases as Unknown. In leave-one-tool-out evaluation, Historian achieves 95.0% coverage with 88.4% accuracy, reducing manual validation to 5% of patches. As an evidence-based pre-filter, enhancing the accuracy of standalone APCA tools by up to 21.8% and enabling a hybrid pipeline with 86.2% overall accuracy and 100% coverage. A longitudinal analysis of tool-generated patches (2020-2024) shows that redundancy in repair attempts is common, indicating that many patches repeatedly rediscover established ones and strengthening the sustainability of evidence-based APR assessment.

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

↑