Skip to main content
QUICK REVIEW

[Paper 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 Science0 citations
TL;DR

Historian uses large language models to compare new APR patches against a historical reference set of validated patches, enabling evidence-based, multi-reference correctness verdicts and reducing manual validation. It achieves high automation and augments existing APCA methods.

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.

Motivation & Objective

  • Quantify redundancy and diversity in APR patches to motivate evidence-based assessment.
  • Introduce Historian, a framework for multi-reference, evidence-based patch comparison.
  • Demonstrate how Historian leverages LLMs to produce traceable, reference-backed verdicts.
  • Evaluate Historian's performance across tools, configurations, and a longitudinal benchmark (2020–2024).
  • Promote reproducibility by releasing artifacts and datasets for historical patch validation.

Proposed method

  • Construct a Historical Reference Set combining developer and previously validated tool-generated patches with ground-truth labels.
  • Use LLM-based semantic reasoning to perform exhaustive pairwise comparisons between a candidate patch and every reference patch.
  • Extract structured relationship labels (clone type, semantic similarity, semantic equivalence) from LLM outputs via a robust parsing pipeline.
  • Apply a two-stage Evidence-Based Inference Logic: (i) Pairwise Inference maps relationships to preliminary verdicts; (ii) Majority Voting aggregates to a final, traceable verdict.

Experimental results

Research questions

  • RQ1Can a multi-reference, evidence-based framework accurately determine patch correctness across diverse APR tools?
  • RQ2What is the impact of leveraging historical precedent on automation reach and precision in APCA?
  • RQ3How does Historian perform as a pre-filter in hybrid pipelines with existing APCA models?
  • RQ4What are the observed redundancy and diversity patterns in large APR patch corpora over time?

Key findings

  • In a 22-fold leave-one-tool-out evaluation, Historian achieves 95.0% coverage with 88.4% accuracy.
  • Historian reduces manual validation to 5% of patches.
  • As an evidence-based pre-filter, it enhances standalone APCA accuracy by up to 21.8% and enables a hybrid pipeline with 86.2% overall accuracy and 100% coverage.
  • Longitudinal analysis (2020–2024) shows 21.8% recurrence and 40.0% redundancy for correct patches, indicating lasting value of the historical record.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.