Automating Bug Reproduction with Large Language Models

Friday 21 March 2025


For years, software developers have struggled with a fundamental problem: how to accurately reproduce bugs in mobile apps. It’s a challenge that can be frustrating and time-consuming, especially when trying to fix complex issues. A new approach, however, aims to make bug reproduction easier by leveraging large language models.


The process of reproducing a bug typically involves manually tracing the sequence of events leading up to the error. This can be a tedious task, requiring developers to sift through vast amounts of data and identify the exact steps that caused the issue. To make matters worse, bugs often involve complex interactions between multiple components within an app, making it difficult for humans to decipher what went wrong.


Enter AstroBR, a new system designed to automatically extract and analyze bug reports from natural language descriptions. By using large language models like GPT-4, AstroBR can identify the key steps involved in reproducing a bug and generate a high-fidelity reproduction of the issue.


The approach involves several key components. First, developers submit a bug report that includes a description of the problem they’re experiencing. This description is then fed into AstroBR’s language model, which uses its vast knowledge to identify the relevant information and extract the most important steps involved in reproducing the bug.


Next, AstroBR generates a simulated sequence of events that mirrors the actual behavior of the app. This simulation allows developers to quickly and easily reproduce the bug, without having to manually trace the issue or sift through masses of data.


To test AstroBR’s effectiveness, researchers evaluated its performance on 21 different bug reports from various mobile apps. The results were impressive: AstroBR was able to accurately identify the key steps involved in reproducing each bug, and generate a high-fidelity simulation that matched the actual behavior of the app.


The implications are significant. By automating the process of bug reproduction, developers can significantly reduce the time and effort required to fix complex issues. This can lead to faster turnaround times for bug fixes, improved overall quality of apps, and increased customer satisfaction.


AstroBR’s approach is not without its limitations, however. The system relies heavily on high-quality bug reports that include detailed descriptions of the issue being experienced. If these reports are incomplete or inaccurate, AstroBR may struggle to accurately identify the key steps involved in reproducing the bug.


Despite this limitation, AstroBR represents a significant step forward in the field of software development.


Cite this article: “Automating Bug Reproduction with Large Language Models”, The Science Archive, 2025.


Bug Reproduction, Mobile Apps, Large Language Models, Gpt-4, Astrobr, Bug Reports, Natural Language Descriptions, Software Development, Debugging, Automation, Simulation.


Reference: Junayed Mahmud, Antu Saha, Oscar Chaparro, Kevin Moran, Andrian Marcus, “Combining Language and App UI Analysis for the Automated Assessment of Bug Reproduction Steps” (2025).


Leave a Reply