Lune

ASE2020Top-tier venue

Automated Patch Correctness Assessment: How Far are We?

Shangwen Wang, Ming Wen, Bo Lin, Hongjun Wu, Yihao Qin, Deqing Zou, Xiaoguang Mao, Hai Jin

Abstract

Test-based automated program repair (APR) has attracted huge attention from both industry and academia. Despite the significant progress made in recent studies, the overfitting problem (i.e., the generated patch is plausible but overfitting) is still a major and long-standing challenge. Therefore, plenty of techniques have been proposed to assess the correctness of patches either in the patch generation phase or in the evaluation of APR techniques. However, the effectiveness of existing techniques has not been systematically compared and little is known to their advantages and disadvantages. To fill this gap, we performed a large-scale empirical study in this paper. Specifically, we systematically investigated the effectiveness of existing automated patch correctness assessment techniques, including both static and dynamic ones, based on 902 patches automatically generated by 21 APR tools from 4 different categories. Our empirical study revealed the following major findings: (1) static code features with respect to patch syntax and semantics are generally effective in differentiating overfitting patches over correct ones; (2) dynamic techniques can generally achieve high precision while heuristics based on static code features are more effective towards recall; (3) existing techniques are more effective towards certain projects and types of APR techniques while less effective to the others; (4) existing techniques are highly complementary to each other. For instance, a single technique can only detect at most 53.5% of the overfitting patches while 93.3% of them can be detected by at least one technique when the oracle information is available. Based on our findings, we designed an integration strategy to first integrate static code features via learning, and then combine with others by the majority voting strategy. Our experiments show that the strategy can enhance the performance of existing patch correctness assessment techniques significantly.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

26 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Evaluating Representation Learning of Code Changes for Predicting Patch Correctness in Program Repair cites On the efficiency of test suite based program repair: A Systematic Assessment of 16 Automated Repair Systems for Java Programs
  • Baldur: Whole-Proof Generation and Repair with Large Language Models cites Can automated program repair refine fault localization? a unified debugging approach
  • Baldur: Whole-Proof Generation and Repair with Large Language Models cites Evaluating Representation Learning of Code Changes for Predicting Patch Correctness in Program Repair
  • Neural Program Repair with Execution-based Backpropagation cites On the efficiency of test suite based program repair: A Systematic Assessment of 16 Automated Repair Systems for Java Programs
  • Neural Program Repair with Execution-based Backpropagation cites Evaluating Representation Learning of Code Changes for Predicting Patch Correctness in Program Repair
  • On the Effectiveness of Unified Debugging: An Extensive Study on 16 Program Repair Systems cites On the efficiency of test suite based program repair: A Systematic Assessment of 16 Automated Repair Systems for Java Programs
  • On the Effectiveness of Unified Debugging: An Extensive Study on 16 Program Repair Systems cites Can automated program repair refine fault localization? a unified debugging approach
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers26

  1. Automated Repair of Programs from Large Language ModelsZhiyu Fan, Xiang Gao, Martin Mirchev, Abhik Roychoudhury et al.ICSE 2023 · 213 citations
  2. Neural Program Repair with Execution-based BackpropagationHe Ye, Matias Martinez, Martin MonperrusICSE 2022 · 146 citations
  3. Baldur: Whole-Proof Generation and Repair with Large Language ModelsEmily First, Markus N. Rabe, Talia Ringer, Yuriy BrunFSE 2023 · 89 citations
  4. Evaluating Representation Learning of Code Changes for Predicting Patch Correctness in Program RepairHaoye Tian, Kui Liu, Abdoul Kader Kaboré, Anil Koyuncu et al.ASE 2020 · 81 citations
  5. CCT5: A Code-Change-Oriented Pre-trained ModelBo Lin, Shangwen Wang, Zhongxin Liu, Yepang Liu et al.FSE 2023 · 69 citations

Builds on4

  1. On the efficiency of test suite based program repair: A Systematic Assessment of 16 Automated Repair Systems for Java ProgramsKui Liu, Shangwen Wang, Anil Koyuncu, Kisub Kim et al.ICSE 2020 · 116 citations
  2. Can automated program repair refine fault localization? a unified debugging approachYiling Lou, Ali Ghanbari, Xia Li, Lingming Zhang et al.ISSTA 2020 · 99 citations
  3. Evaluating Representation Learning of Code Changes for Predicting Patch Correctness in Program RepairHaoye Tian, Kui Liu, Abdoul Kader Kaboré, Anil Koyuncu et al.ASE 2020 · 81 citations
  4. On the Effectiveness of Unified Debugging: An Extensive Study on 16 Program Repair SystemsSamuel Benton, Xia Li, Yiling Lou, Lingming ZhangASE 2020 · 35 citations

Related papers

  1. A Large-Scale Empirical Review of Patch Correctness Checking ApproachesJun Yang, Yuehan Wang, Yiling Lou, Ming Wen et al.FSE 2023 · 11 citations
  2. Enhancing APR with PRISM: A Semantic-Based Approach to Overfitting Patch DetectionDowon Song, Hakjoo OhOOPSLA 2025 · 2 citations
  3. Patch correctness assessment in automated program repair based on the impact of patches on production and test codeAli Ghanbari, Andrian MarcusISSTA 2022 · 26 citations
  4. Practical Program Repair via Preference-based Ensemble StrategyWenkang Zhong, Chuanyi Li, Kui Liu, Tongtong Xu et al.ICSE 2024 · 8 citations
  5. Show Me Why It's Correct: Saving 1/3 of Debugging Time in Program Repair with Interactive Runtime ComparisonRuixin Wang, Zhongkai Zhao, Le Fang, Nan Jiang et al.OOPSLA 2025
Dusk over the sea between two cliffs drawn in fine vertical lines