[Paper Review] Program Repair: Automated vs. Manual
This study compares automated program repair (APR) tools with manual debugging through a large-scale human experiment involving 20 developers and 160 repair tasks. It finds that while APR tools reduce debugging time and increase the number of correctly fixed bugs, they often produce lower-quality patches and misleading reports, suggesting that usability improvements—especially in report clarity and feedback—are critical for practical adoption.
Various automated program repair (APR) techniques have been proposed to fix bugs automatically in the last decade. Although recent researches have made significant progress on the effectiveness and efficiency, it is still unclear how APR techniques perform with human intervention in a real debugging scenario. To bridge this gap, we conduct an extensive study to compare three state-of-the-art APR tools with manual program repair, and further investigate whether the assistance of APR tools (i.e., repair reports) can improve manual program repair. To that end, we recruit 20 participants for a controlled experiment, resulting in a total of 160 manual repair tasks and a questionnaire survey. The experiment reveals several notable observations that (1) manual program repair may be influenced by the frequency of repair actions sometimes; (2) APR tools are more efficient in terms of debugging time, while manual program repair tends to generate a correct patch with fewer attempts; (3) APR tools can further improve manual program repair regarding the number of correctly-fixed bugs, while there exists a negative impact on the patch correctness; (4) participants are used to consuming more time to identify incorrect patches, while they are still misguided easily; (5) participants are positive about the tools' repair performance, while they generally lack confidence about the usability in practice. Besides, we provide some guidelines for improving the usability of APR tools (e.g., the misleading information in reports and the observation of feedback).
Motivation & Objective
- To evaluate the effectiveness and efficiency of state-of-the-art automated program repair (APR) tools compared to manual program repair in real-world debugging scenarios.
- To investigate whether APR-generated repair reports can enhance manual debugging performance.
- To identify usability challenges in APR tools from the developer’s perspective, especially regarding patch quality and report clarity.
- To provide actionable guidelines for improving the practicality and adoption of APR tools in real development workflows.
Proposed method
- Conducted a controlled experiment with 20 participants performing 160 manual repair tasks on 8 real bugs from the Defects4J benchmark.
- Selected three state-of-the-art APR tools representing different repair categories and used their repair reports as debugging aids.
- Implemented a custom platform, MoocTest, to automate bug and report assignment and ensure consistent experimental conditions.
- Collected quantitative data on repair time, number of attempts, and patch correctness, along with qualitative feedback via questionnaires.
- Analyzed the impact of repair frequency, patch quality, and report usability on developer performance.
- Proposed practical guidelines based on observed usability issues, such as misleading patches and unstructured log feedback.
Experimental results
Research questions
- RQ1How do automated and manual program repair compare in terms of debugging time, number of attempts, and patch correctness?
- RQ2To what extent can APR tools improve the effectiveness of manual program repair in real-world settings?
- RQ3What usability issues do developers face when using APR-generated repair reports?
- RQ4How do misleading or low-quality patches in APR reports affect developer debugging behavior?
- RQ5What improvements to repair reports and feedback mechanisms can enhance developer trust and productivity?
Key findings
- Manual program repair is influenced by the frequency of code modification actions, with higher frequencies potentially indicating less efficient debugging strategies.
- APR tools are significantly faster than manual repair, reducing average debugging time, but manual repair results in a higher correctness rate with fewer attempts.
- APR tools improve the number of correctly fixed bugs when used as aids, but they also increase the risk of generating incorrect or low-quality patches.
- Developers spend considerable time verifying potentially incorrect patches, and many are misled by plausible but incorrect suggestions from APR tools.
- Despite positive perceptions of APR tool performance, developers express low confidence in the usability and reliability of repair reports in practice.
- Feedback in log outputs is often underutilized due to poor structure and lack of actionable debugging hints, indicating a need for better integration of execution logs and patch suggestions.
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.