AI
New Tool Helps Researchers Automatically Reproduce Deep Learning Bugs
RepGen, an AI-powered system, can recreate failures in machine learning code by analyzing bug reports and testing scenarios—achieving an 80% success rate on real-world issues.
Reproducing bugs in deep learning systems is notoriously difficult because failures can stem from multiple layers: the code itself, trained models, training data, software dependencies, and the computational environment. Vague or incomplete bug reports make the problem even worse. Researchers have developed RepGen, an open-source tool designed to automatically track down and recreate these elusive failures.
How RepGen Works#
The system takes a bug report and source code repository as input, then systematically explores the codebase to reconstruct the context needed to reproduce the issue. It builds a reproduction plan, generates candidate scripts, and refines them through static analysis and feedback from large language models. When configured to run tests, RepGen sets up the execution environment, executes the generated code, and compares the output to the reported failure to verify whether reproduction was successful.
The tool offers an interactive command-line interface compatible with both local and cloud-hosted language models, allows users to set execution time budgets, and saves all generated artifacts for inspection. A GitHub Action integration enables automated processing of bug reports filed as issues.
Real-World Performance#
Testing on 106 genuine deep learning bugs pulled from production repositories, RepGen successfully reproduced 85 of them—a success rate of roughly 80%. In a controlled user study involving 27 developers, the tool demonstrated its practical value: participants using RepGen achieved a 23% improvement in their ability to reproduce bugs and completed the task in 57% less time compared to manual approaches.
Why It Matters#
Reproducing bugs is often the critical first step toward fixing them. By automating this process, RepGen reduces friction for maintainers and contributors, freeing them to focus on root-cause analysis and solutions rather than spending hours reconstructing failing scenarios. The approach demonstrates how AI-assisted code generation can help tackle real challenges in software engineering practice.

