Skip to main content
QUICK REVIEW

[Paper Review] E-APR: Mapping the Effectiveness of Automated Program Repair

Aldeida Aleti, Matías Martínez|arXiv (Cornell University)|Feb 10, 2020
Software Testing and Debugging TechniquesComputer Science66 references5 citations
TL;DR

E-APR introduces a novel instance space analysis framework to objectively evaluate Automated Program Repair (APR) techniques by identifying program features that explain repair difficulty. It visualizes buggy programs in a feature space to reveal strengths, weaknesses, and generalization limits of APR tools, showing that dataset diversity and feature correlation significantly impact effectiveness.

ABSTRACT

Automated Program Repair (APR) is a fast growing area with numerous new techniques being developed to tackle one of the most challenging software engineering problems. APR techniques have shown promising results, giving us hope that one day it will be possible for software to repair itself. In this paper, we focus on the problem of objective performance evaluation of APR techniques. We introduce a new approach, Explaining Automated Program Repair (E-APR), which identifies features of buggy programs that explain why a particular instance is difficult for an APR technique. E-APR is used to examine the diversity and quality of the buggy programs used by most researchers, and analyse the strengths and weaknesses of existing APR techniques. E-APR visualises an instance space of buggy programs, with each buggy program represented as a point in the space. The instance space is constructed to reveal areas of hard and easy buggy programs, and enables the strengths and weaknesses of APR techniques to be identified.

Motivation & Objective

  • To address the lack of objective, feature-based evaluation of Automated Program Repair (APR) techniques beyond performance metrics.
  • To identify which program features correlate with repair difficulty, enabling deeper understanding of APR technique limitations.
  • To assess the diversity and representativeness of existing APR datasets like Defects4J to evaluate their generalization potential.
  • To enable practitioners to select the most suitable APR technique for their software system using machine learning-based selection models.
  • To provide a systematic, data-driven method for analyzing APR effectiveness beyond isolated benchmark results.

Proposed method

  • E-APR constructs an instance space where each buggy program is represented as a point based on extracted static and dynamic code features.
  • It applies instance space analysis inspired by Rice’s framework and prior work in machine learning and search-based testing to visualize regions of easy and hard repair instances.
  • The method uses multi-label classification to predict which APR techniques are likely to succeed on a given buggy program based on its feature profile.
  • It leverages existing APR benchmarks (e.g., Defects4J) and extracts features such as code complexity, AST structure, and test coverage to characterize each bug instance.
  • The approach includes statistical analysis to correlate features with repair outcomes and identify patterns of failure or success across techniques.
  • It integrates with existing tools like Gzoltar and Repairnator to extract and validate patch correctness and overfitting risks.

Experimental results

Research questions

  • RQ1RQ1: Which features of buggy programs correlate with the effectiveness of Automated Program Repair Techniques (APRTs), and why are some instances harder to repair?
  • RQ2RQ2: How diverse are existing APR datasets (e.g., Defects4J) in terms of features that impact APRT performance, and do they sufficiently stress-test generalization?
  • RQ3RQ3: Can machine learning models effectively select the most suitable APRT for a given buggy program based on its features, and how do they perform in terms of precision, recall, and F1-score?

Key findings

  • E-APR reveals that certain code features—such as code complexity, AST depth, and test coverage—significantly correlate with repair difficulty, explaining why some APRTs fail on specific bugs.
  • The study shows that existing APR datasets like Defects4J are not uniformly diverse; they contain clusters of similar bug instances, limiting the generalization of APRTs trained on them.
  • Multi-label classification models using E-APR’s instance space achieve high F1-scores (up to 0.85) in predicting which APR technique is most likely to succeed on a given bug.
  • The method identifies 'hard' regions in the instance space where most APRTs fail, often due to overfitting or semantic mismatches, and highlights the role of test oracle limitations.
  • E-APR demonstrates that patch overfitting is more prevalent in certain code structures, such as complex control flows or nested conditionals, which are underexplored in current benchmarks.
  • The framework enables practitioners to select APRTs based on program characteristics, reducing trial-and-error and improving repair success rates in real-world settings.

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.