Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agent

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Shah, Mehil B, Rahman, Mohammad Masudur, Khomh, Foutse
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914351501279232
author Shah, Mehil B
Rahman, Mohammad Masudur
Khomh, Foutse
author_facet Shah, Mehil B
Rahman, Mohammad Masudur
Khomh, Foutse
contents Despite their wide adoption in various domains (e.g., healthcare, finance, software engineering), Deep Learning (DL)-based applications suffer from many bugs, failures, and vulnerabilities. Reproducing these bugs is essential for their resolution, but it is extremely challenging due to the inherent nondeterminism of DL models and their tight coupling with hardware and software environments. According to recent studies, only about 3% of DL bugs can be reliably reproduced using manual approaches. To address these challenges, we present RepGen, a novel, automated, and intelligent approach for reproducing deep learning bugs. RepGen constructs a learning-enhanced context from a project, develops a comprehensive plan for bug reproduction, employs an iterative generate-validate-refine mechanism, and thus generates such code using an LLM that reproduces the bug at hand. We evaluate RepGen on 106 real-world deep learning bugs and achieve a reproduction rate of 80.19%, a 19.81% improvement over the state-of-the-art measure. A developer study involving 27 participants shows that RepGen improves the success rate of DL bug reproduction by 23.35%, reduces the time to reproduce by 56.8%, and lowers participants' cognitive load.
format Preprint
id arxiv_https___arxiv_org_abs_2512_14990
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agent
Shah, Mehil B
Rahman, Mohammad Masudur
Khomh, Foutse
Software Engineering
Artificial Intelligence
Machine Learning
Despite their wide adoption in various domains (e.g., healthcare, finance, software engineering), Deep Learning (DL)-based applications suffer from many bugs, failures, and vulnerabilities. Reproducing these bugs is essential for their resolution, but it is extremely challenging due to the inherent nondeterminism of DL models and their tight coupling with hardware and software environments. According to recent studies, only about 3% of DL bugs can be reliably reproduced using manual approaches. To address these challenges, we present RepGen, a novel, automated, and intelligent approach for reproducing deep learning bugs. RepGen constructs a learning-enhanced context from a project, develops a comprehensive plan for bug reproduction, employs an iterative generate-validate-refine mechanism, and thus generates such code using an LLM that reproduces the bug at hand. We evaluate RepGen on 106 real-world deep learning bugs and achieve a reproduction rate of 80.19%, a 19.81% improvement over the state-of-the-art measure. A developer study involving 27 participants shows that RepGen improves the success rate of DL bug reproduction by 23.35%, reduces the time to reproduce by 56.8%, and lowers participants' cognitive load.
title Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agent
topic Software Engineering
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2512.14990