[Paper Review] On the Efficiency of Test Suite based Program Repair: A Systematic Assessment of 16 Automated Repair Systems for Java Programs
This paper conducts a large-scale empirical study on the efficiency of 16 open-source test suite-based program repair tools for Java, measuring efficiency via the number of patch candidates generated before a correct patch is found. It reveals that template-based tools, while most effective at fixing bugs, are least efficient due to generating predominantly irrelevant candidates, highlighting a critical trade-off between effectiveness and efficiency in automated program repair.
Test-based automated program repair has been a prolific field of research in software engineering in the last decade. Many approaches have indeed been proposed, which leverage test suites as a weak, but affordable, approximation to program specifications. Although the literature regularly sets new records on the number of benchmark bugs that can be fixed, several studies increasingly raise concerns about the limitations and biases of state-of-the-art approaches. For example, the correctness of generated patches has been questioned in a number of studies, while other researchers pointed out that evaluation schemes may be misleading with respect to the processing of fault localization results. Nevertheless, there is little work addressing the efficiency of patch generation, with regard to the practicality of program repair. In this paper, we fill this gap in the literature, by providing an extensive review on the efficiency of test suite based program repair. Our objective is to assess the number of generated patch candidates, since this information is correlated to (1) the strategy to traverse the search space efficiently in order to select sensical repair attempts, (2) the strategy to minimize the test effort for identifying a plausible patch, (3) as well as the strategy to prioritize the generation of a correct patch. To that end, we perform a large-scale empirical study on the efficiency, in terms of quantity of generated patch candidates of the 16 open-source repair tools for Java programs. The experiments are carefully conducted under the same fault localization configurations to limit biases.
Motivation & Objective
- To assess the efficiency of test suite-based program repair tools, defined by the number of patch candidates generated before a correct patch is found.
- To investigate whether fault localization noise impacts patch generation efficiency, especially when search space is constrained.
- To evaluate the trade-off between repair effectiveness and efficiency across 16 open-source APR tools.
- To provide a fair, reproducible benchmark by standardizing fault localization configurations across all tools.
- To call for improved strategies that enhance efficiency without sacrificing repair effectiveness for industrial adoption.
Proposed method
- The study evaluates 16 open-source APR tools under identical fault localization configurations to minimize bias.
- Patch candidates are generated and validated against the same test suite for each tool, with a fixed timeout to prevent resource exhaustion.
- The number of generated patch candidates before a correct patch is found is used as the primary efficiency metric.
- Fault localization noise is simulated by perturbing the ranking of suspicious code locations to assess robustness.
- The search space is triaged by focusing only on the top-ranked suspicious code locations to isolate the impact of fault localization on efficiency.
- All experiments are conducted on the same benchmark suite (Defects4J), and results are made fully reproducible via public artifacts.
Experimental results
Research questions
- RQ1How does the number of generated patch candidates vary across 16 test suite-based APR tools, and what is the correlation between this number and repair efficiency?
- RQ2To what extent does fault localization noise affect the efficiency of patch generation, especially when the search space is constrained?
- RQ3Why do template-based APR tools, known for high repair effectiveness, generate significantly more irrelevant patch candidates than other approaches?
- RQ4How does the strategy for traversing the search space influence the number of patch candidates generated before a correct patch is found?
- RQ5What are the practical implications of high patch candidate volume for industrial adoption of APR tools?
Key findings
- Template-based APR tools, despite being the most effective in fixing bugs, generate the highest number of patch candidates, with a majority being irrelevant.
- A significant proportion of generated patch candidates are based on incorrect code locations, indicating poor targeting of fault-prone regions.
- When the search space is limited to only the top suspicious code locations, fault localization noise has minimal impact on patch generation efficiency.
- The number of generated patch candidates is strongly correlated with the repair strategy’s ability to prioritize meaningful code mutations.
- The study reveals a critical trade-off between repair effectiveness and efficiency, where high effectiveness often comes at the cost of excessive computational overhead.
- The results suggest that future APR research should prioritize strategies that reduce the number of irrelevant patch candidates to improve practicality.
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.