Skip to main content
QUICK REVIEW

[论文解读] Historian: Reducing Manual Validation in APR Benchmarking via Evidence-Based Assessment

Sahand Moslemi, Mayasah Lami|arXiv (Cornell University)|Feb 28, 2026
Software Testing and Debugging TechniquesComputer Science被引用 0
一句话总结

历史学家使用大型语言模型将新的 APR 补丁与历史参考集中的经验证补丁进行比较,从而实现基于证据的多参考正确性判定并减少人工验证。它实现高自动化并增强现有 APCA 方法。

ABSTRACT

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.

研究动机与目标

  • 量化 APR 补丁的冗余性与多样性以促进基于证据的评估。
  • 引入 Historian,一种用于多参考、基于证据的补丁比较框架。
  • 展示 Historian 如何利用大型语言模型产生可追溯、有参考背书的判定。
  • 在多工具、不同配置和纵向基准(2020–2024)上评估 Historian 的性能。
  • 通过发布历史补丁验证的工件和数据集来促进可重复性。

提出的方法

  • 构建一个历史参考集,将开发者补丁和此前经过验证的工具生成补丁与真实标签结合。
  • 使用基于 LLM 的语义推理,对候选补丁与每个参考补丁进行穷尽式对比。
  • 从 LLM 输出中通过稳健的解析流水线提取结构化关系标签(克隆类型、语义相似性、语义等价性)。
  • 应用两阶段的基于证据的推理逻辑:(i) 成对推理将关系映射为初步判决;(ii) 多数投票聚合为最终、可追溯的判决。

实验结果

研究问题

  • RQ1一个多参考、基于证据的框架是否能够在多样化的 APR 工具中准确判定补丁正确性?
  • RQ2利用历史先例对自动化覆盖率和 APCA 精度的影响如何?
  • RQ3在与现有 APCA 模型的混合管道中,Historian 作为预筛选器的表现如何?
  • RQ4在长期的 APR 补丁语料库中观察到的冗余性和多样性模式有哪些?

主要发现

  • 在 22 倍留一工具外部评估中,Historian 的覆盖率为 95.0%,准确率为 88.4%。
  • Historian 将人工验证缩减至补丁的 5%。
  • 作为基于证据的预筛选器,它将独立 APCA 的准确性提高最多 21.8%,并实现混合管道整体准确性 86.2% 与覆盖率 100%。
  • 纵向分析(2020–2024)显示正确补丁的再现率为 21.8%,冗余度为 40.0%,表明历史记录具有持续价值。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。