[Paper Review] RunBugRun -- An Executable Dataset for Automated Program Repair
This paper introduces RunBugRun, a large-scale executable dataset of 450,000 buggy/fixed program pairs across eight programming languages, designed to advance Neural Program Repair (NPR) by enabling execution-based evaluation and feedback. The dataset supports test-based validation, error message extraction, and execution traces, offering a scalable, multi-lingual benchmark that overcomes limitations of static, non-executable training data and promotes execution-aware repair models with improved semantic correctness evaluation.
Recently, we can notice a transition to data-driven techniques in Automated Program Repair (APR), in particular towards deep neural networks. This entails training on hundreds of thousands or even millions of non-executable code fragments. We would like to bring more attention to an aspect of code often neglected in Neural Program Repair (NPR), namely its execution. Code execution has several significant advantages. It allows for test-based evaluation of candidate fixes and can provide valuable information to aid repair. In this work we present a fully executable dataset of 450,000 small buggy/fixed program pairs originally submitted to programming competition websites written in eight different programming languages. Along with the dataset we provide infrastructure to compile, safely execute and test programs as well as fine-grained bug-type labels. To give a point of reference, we provide basic evaluation results for two baselines, one based on a generate-and-validate approach and one on deep learning. With this dataset we follow several goals: we want to lift Neural Program Repair beyond fully static code representations, foster the use of execution-based features and, by including several different languages, counterbalance the predominance of Java in the current landscape of APR datasets and benchmarks.
Motivation & Objective
- To address the lack of large-scale, executable code in Neural Program Repair (NPR) datasets, which currently rely on static, non-executable code fragments.
- To reduce language bias in APR research by including eight diverse programming languages, countering the dominance of Java in existing benchmarks.
- To enable execution-based evaluation and feedback in NPR, such as test passing rates and runtime error messages, for more accurate and semantically meaningful repair validation.
- To provide fine-grained, hierarchical bug-type labels and comprehensive test suites for each program pair to support detailed analysis and model evaluation.
- To foster the development of execution-aware NPR models by offering a scalable, curated dataset that supports feedback loops using compilation and test execution.
Proposed method
- The dataset was constructed by mining 450,000 small buggy/fixed program pairs from programming competition websites, ensuring each pair is syntactically valid and executable.
- Each program is compiled and executed in a sandboxed environment to collect test results, error messages, and execution traces.
- A standardized infrastructure was built to safely compile, execute, and validate patches using comprehensive test suites for each program pair.
- The dataset includes hierarchical bug-type labels (e.g., control_flow.break.add) derived from the nature of the fix, enabling fine-grained analysis.
- The dataset is split into training, validation, and test sets with consistent data distribution, and all splits preserve executability and test coverage.
- The authors provide baseline evaluations using a generate-and-validate model and a deep learning model, both evaluated via test suite execution rather than lexical similarity.
Experimental results
Research questions
- RQ1Can execution-based evaluation improve the reliability of Neural Program Repair models compared to static, lexical metrics like BLEU or exact match?
- RQ2How does the inclusion of execution feedback—such as test passing rates and error messages—affect the performance of NPR models?
- RQ3To what extent can multi-lingual training on diverse programming languages improve the generalization and applicability of APR systems?
- RQ4How does the performance of NPR models vary across different bug types when evaluated on executable test suites versus static code similarity?
- RQ5Can large-scale, executable datasets like RunBugRun enable new training paradigms, such as feedback-driven training using test execution outcomes?
Key findings
- The dataset contains 450,000 executable buggy/fixed program pairs across eight programming languages, including Go, Ruby, PHP, and JavaScript, significantly expanding beyond the Java-dominated landscape of existing APR benchmarks.
- Execution-based evaluation revealed that lexical metrics like BLEU are insufficient for assessing repair correctness, as semantically correct fixes can be penalized due to lexical variation.
- Baseline models evaluated on the dataset showed that test suite execution is a more reliable and semantically meaningful metric than static code comparison for patch validation.
- The integration of execution feedback—such as test results and error messages—can improve NPR performance, as demonstrated by prior work showing a 7% improvement using such feedback on a small subset.
- The dataset enables new research directions, such as training models with feedback from test execution, and supports the development of polyglot APR systems capable of handling multi-language bugs.
- The authors demonstrate that execution is not only feasible at scale but also essential for capturing semantic correctness, and that such data is underutilized in current NPR research.
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.