[Paper Review] Empirical Review of Java Program Repair Tools: A Large-Scale Experiment on 2,141 Bugs and 23,551 Repair Attempts
This large-scale empirical study evaluates 11 Java test-suite-based program repair tools across 5 bug benchmarks, including Defects4J, using 23,551 repair attempts. It finds that tools achieve 21% overall repairability, with significantly higher success on Defects4J (47%) than on other benchmarks (10–30%), and identifies six key causes of patch generation failure, such as faulty fault localization and multiple fault locations.
In the past decade, research on test-suite-based automatic program repair has grown significantly. Each year, new approaches and implementations are featured in major software engineering venues. However, most of those approaches are evaluated on a single benchmark of bugs, which are also rarely reproduced by other researchers. In this paper, we present a large-scale experiment using 11 Java test-suite-based repair tools and 5 benchmarks of bugs. Our goal is to have a better understanding of the current state of automatic program repair tools on a large diversity of benchmarks. Our investigation is guided by the hypothesis that the repairability of repair tools might not be generalized across different benchmarks of bugs. We found that the 11 tools 1) are able to generate patches for 21% of the bugs from the 5 benchmarks, and 2) have better performance on Defects4J compared to other benchmarks, by generating patches for 47% of the bugs from Defects4J compared to 10-30% of bugs from the other benchmarks. Our experiment comprises 23,551 repair attempts in total, which we used to find the causes of non-patch generation. These causes are reported in this paper, which can help repair tool designers to improve their techniques and tools.
Motivation & Objective
- To investigate whether the performance of automatic program repair tools generalizes across different bug benchmarks.
- To identify and analyze the root causes of failure in patch generation across diverse benchmarks.
- To provide a comprehensive empirical evaluation of repair tools beyond the commonly used Defects4J benchmark.
- To develop and release a reusable execution framework, RepairThemAll, to standardize and simplify large-scale repair experiments.
Proposed method
- Designed and executed a large-scale experiment with 11 test-suite-based repair tools on 2,141 bugs from 5 distinct benchmarks.
- Developed RepairThemAll, a unified framework to abstract and automate the execution of repair tools across different benchmarks.
- Executed 23,551 repair attempts, systematically logging results and failure reasons for each tool-bug pair.
- Analyzed failure patterns by categorizing non-patch generation into six primary causes, including incorrect fault localization and multiple fault locations.
- Used a standardized evaluation pipeline to ensure reproducibility and consistency across tools and benchmarks.
- Collected and analyzed data on repairability, patch correctness, and execution time across all tool-benchmark combinations.
Experimental results
Research questions
- RQ1Do repair tools exhibit consistent performance across different bug benchmarks, or do they overfit to specific benchmarks?
- RQ2What are the primary causes that prevent repair tools from generating valid patches for bugs?
- RQ3How does the performance of repair tools on Defects4J compare to their performance on other benchmarks?
- RQ4To what extent is the benchmark choice a confounding factor in evaluating repair tool effectiveness?
- RQ5Can failure reasons be systematically categorized and used to guide future tool improvements?
Key findings
- The 11 repair tools collectively generated patches for 21% of the 2,141 bugs across all benchmarks, indicating limited overall repairability.
- Defects4J showed significantly higher repair success (47%) compared to other benchmarks, which ranged from 10% to 30%.
- Incorrect fault localization was a major cause of failure, preventing tools from identifying the correct code locations to modify.
- Multiple fault locations in a single bug were a significant obstacle, as most tools assume a single fault per bug.
- Tool-specific limitations, such as search space constraints and syntactic repair operators, contributed to failure in 30% of non-patch cases.
- The RepairThemAll framework successfully enabled reproducible execution across all tools and benchmarks, facilitating large-scale analysis.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.