计算机科学 > 软件工程
[提交于 2026年10月30日]
标题:RepGen: Reproducing Deep Learning Bugs through Context-Aware Code Generation and Verification
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Reproducing deep learning (DL) bugs is challenging because failures can involve source code, models, data, dependencies, and execution environments. Incomplete bug reports further complicate reproduction by omitting essential details. We present RepGen, an open-source tool for reproducing DL bugs through context-aware code generation and iterative verification. Given a bug report and repository, RepGen explores the codebase to build a learning-enhanced context, develop a reproduction plan, and generate candidate scripts. It refines candidates using static checks and LLM feedback to improve their correctness and relevance. When enabled, the tool prepares the execution environment, runs the script, and assesses its output against the reported failure. RepGen provides an interactive command-line interface supporting local and hosted LLMs, configurable execution budgets, and inspectable artifacts, along with a GitHub Action for automated issue processing. The underlying approach reproduced 85 of 106 real-world DL bugs (80.19%). A controlled study with 27 developers showed a 23.35% improvement in reproduction success and a 56.8% reduction in reproduction time.
提交历史
来自:Mehil Bimal Shah[v1] 2026年10月30日 星期五 00:29:47 UTC (2,245 KB)