Papers
Topics
Authors
Recent
Search
2000 character limit reached

Enhancing LLM-Based Bug Reproduction for Android Apps via Pre-Assessment of Visual Effects

Published 31 Mar 2026 in cs.SE | (2603.29623v1)

Abstract: In the development and maintenance of Android apps, the quick and accurate reproduction of user-reported bugs is crucial to ensure application quality and improve user satisfaction. However, this process is often time-consuming and complex. Therefore, there is a need for an automated approach that can explore the Application Under Test (AUT) and identify the correct sequence of User Interface (UI) actions required to reproduce a bug, given only a complete bug report. LLMs have shown remarkable capabilities in understanding textual and visual semantics, making them a promising tool for planning UI actions. Nevertheless, our study shows that even when using state-of-the-art LLM-based approaches, these methods still struggle to follow detailed bug reproduction instructions and replan based on new information, due to their inability to accurately predict and interpret the visual effects of UI components. To address these limitations, we propose LTGDroid. Our insight is to execute all possible UI actions on the current UI page during exploration, record their corresponding visual effects, and leverage these visual cues to guide the LLM in selecting UI actions that are likely to reproduce the bug. We evaluated LTGDroid, instantiated with GPT-4.1, on a benchmark consisting of 75 bug reports from 45 popular Android apps. The results show that LTGDroid achieves a reproduction success rate of 87.51%, improving over the state-of-the-art baselines by 49.16% and 556.30%, while requiring an average of 20.45 minutes and approximately $0.27 to successfully reproduce a bug. The LTGDroid implementation is publicly available at https://github.com/N3onFlux/LTGDroid.

Summary

  • The paper presents LTGDroid, a novel system that combines LLMs with visual pre-assessment to significantly improve Android bug reproduction.
  • It employs a three-module architecture (Report Analyzer, Path Explorer, Path Evaluator) to filter UI actions based on runtime visual feedback.
  • Experimental results show an 87.51% overall success rate, outperforming previous systems by up to 556.30% in non-crash bug reproduction.

Enhancing LLM-Based Automated Bug Reproduction for Android through Pre-Assessment of Visual Effects

Introduction

The paper "Enhancing LLM-Based Bug Reproduction for Android Apps via Pre-Assessment of Visual Effects" (2603.29623) addresses a critical challenge in automated bug reproduction for Android applications: the effective mapping of user-reported bug descriptions to executable sequences of UI actions. The proposed system, LTGDroid, fundamentally rethinks the LLM-based bug reproduction pipeline by introducing runtime pre-assessment of visual effects for all feasible UI actions on a given screen. This technique is motivated by the shortcomings of prior LLM-powered approaches which lack robust predictive and interpretive abilities regarding UI dynamics, often leading to task divergence and failure to reproduce complex or non-crash bugs.

Motivation and Problem Analysis

Previous LLM-based systems such as AdbGPT and ReBL rely on natural language understanding and context-aware feedback but are fundamentally limited by their inability to anticipate UI state transitions or process the visual manifestations of action consequences. The paper systematically explores these limitations using a real bug report from the AmazeFileManager application as a case study. Figure 1

Figure 1: A real bug report (AmazeFileManager#1796) illustrating ambiguous S2R instructions and the need for context-sensitive UI reasoning.

Both AdbGPT and ReBL fail to reproduce the motivating bug due to insufficient semantic alignment between report descriptions and actionable UI paths. As demonstrated, they neglect to properly resolve "empty folder" context, resulting in false action selection and premature search divergence. Figure 2

Figure 2: Reproduction actions generated by LTGDroid and baselines, highlighting action misalignments in existing systems and the iterative path selection process in LTGDroid.

LTGDroid: Architecture and Workflow

LTGDroid operationalizes the insight that successful bug reproduction demands knowledge of not only possible UI actions but also their dynamic, runtime visual effects. The approach models bug reproduction as an iterative exploration of the application’s UI state-transition graph, employing three core modules: Report Analyzer, Path Explorer, and Path Evaluator.

  • Report Analyzer: Parses and synthesizes a structured reproduction specification from raw, unstructured bug reports, leveraging LLMs for semantic filtration and distillation of goals.
  • Path Explorer: Systematically enumerates, executes, and observes all feasible UI actions in the current state, recording their visual and state transitions.
  • Path Evaluator: Filters and prioritizes exploration paths against the distilled reproduction objective, utilizing LLM-based assessment of the cumulative state sequence and runtime evidence. Figure 3

    Figure 3: System overview with module interactions and structured prompt flows ensuring effective, iterative UI state exploration and decision making in LTGDroid.

The pivotal distinction of LTGDroid is the pre-assessment of action effects. For each UI state, all candidate actions are executed and their before/after states are compared at the visual level using UI screenshots and contextual signals. Only transitions that align with the exploration objective are retained for further expansion, resulting in robust path convergence and mitigation of action cascade errors.

Experimental Results

LTGDroid was evaluated using a curated dataset of 75 real-world bug reports across 45 Android applications, encompassing both crash and non-crash cases. The system achieves an overall reproduction success rate of 87.51%, with separate rates of 88.82% for crash bugs and 84.71% for non-crash bugs. These outcomes represent substantial improvements over prior SOTA: +49.16% over ReBL and +556.30% over AdbGPT. The average resource consumption per bug is 27.48 UI actions, 67,070 LLM tokens, $0.27, and 20.45 minutes of wall-clock time, indicating practical deployability given the complexity of tasks.

Key findings include:

  • Successful reproduction of significantly more complex bugs (mean ~6.89 actions per bug), with generated action traces closely matching ground-truth manual paths.
  • Robust handling of ambiguous and incomplete bug reports, where competitors fail primarily due to poor initialization and progress tracking.
  • Marginal resource overhead from action pre-assessment is offset by greater overall coverage and reliability.

Experimental ablation isolates the UI transition assessment module as the most critical contributor; removal results in a 36.4% drop in success rate (to 51.11%). The system demonstrates consistent outperformance across both crash and non-crash domains, with visual pre-assessment shown to be especially pivotal for non-crash reproduction (where error manifestations are highly visual and subtle). Figure 4

Figure 4: Representative failure cases of LTGDroid illustrating the impact of LLM semantic limitations, insufficient initialization inference, and framework constraints on action expressivity.

Limitations and Threats to Validity

LTGDroid's design introduces dependence on the runtime action expressivity of the underlying test framework and accurate LLM reasoning over complex exploration histories. The primary failure modes arise from LLM errors in step alignment or context retention, as well as actions not supported by the emulator (e.g., fine-grained swipes or non-standard long-clicks). The authors address dataset representativeness and evaluation objectivity via multi-source aggregation, cross-validation, and multiple execution trials.

Implications and Future Directions

The methodically demonstrated superiority of the LTGDroid approach establishes pre-assessment of visual effects as a necessary mechanism for robust LLM-driven automation in mobile bug reproduction. Incorporation of multimodal state representations not only enables greater coverage but also sets a precedent for integrating LLMs with environmental simulation and explicit runtime feedback, moving towards fully autonomous RL-inspired exploration.

Practically, this work expands the applicability of LLM-based systems for reproducibility, triage, and automated regression in industrial Android development workflows. Theoretically, it reinforces the need for bridging static language-image inference with dynamic state-space reasoning, offering a unified design pattern for LLMs in UI-centric software engineering tasks.

Anticipated extensions include reducing LLM consumption via more efficient prompt engineering, incorporating finer-grained runtime sensors, supporting image-based and video bug reports, and enhancing action abstraction layers in test frameworks for improved generalization.

Conclusion

This paper presents a scalable, generalizable approach for automated bug reproduction in Android apps using LLMs augmented with systematic visual pre-assessment. LTGDroid’s architecture and empirical evaluation establish strong evidence for the necessity of runtime action effect prediction, especially as Android app UIs become increasingly dynamic and visually intricate. The open release of LTGDroid and its dataset sets a solid benchmark for subsequent advances in multimodal, LLM-based program interaction and debugging systems.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We found no open problems mentioned in this paper.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.