Reproducible Automated Program Repair Is Hard -- Experiences With the Defects4J Dataset
Adam Krafczyk, Klaus Schmid

TL;DR
This paper examines the challenges of reproducibility in automated program repair using the Defects4J dataset, highlighting issues with test suite adequacy and proposing an improved evaluation framework.
Contribution
It provides a systematic analysis of defect dataset requirements, identifies problems with Defects4J, and introduces a stricter evaluation framework for APR tools.
Findings
21.6% of defects are unsuitable for evaluation under strict reproducibility conditions.
7.1% of defects have under-specified test suites that pass with minimal code changes.
Identified challenges can impact the validity of APR research conclusions.
Abstract
In the research of automated program repair (APR), benchmark datasets consisting of known defects in combination with test suites that indicate the defects are of high importance. They allow for an evidence-based comparison of different APR approaches. In our own work on APR we found significant challenges when working with widely used defect datasets, which go beyond mere repeatability of defects via test cases. We summarize these identified challenges and related lessons learned to bring them to the attention of the APR community and quantify the potential impact of them. In particular, we investigate the widely used benchmark Defects4J, which has according to Google Scholar over 1,800 citations. It consists of 835 defects from 17 open-source Java projects; a hand-curated collection of defects, test suites that clearly indicate the defect, and human patches where any unrelated…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
