GUI-Reflection: Empowering Multimodal GUI Models with Self-Reflection Behavior

Penghao Wu, Shengnan Ma, Bo Wang, Jiaheng Yu, Lewei Lu, Ziwei Liu

Abstract

Multimodal Large Language Models (MLLMs) have shown promise in GUI understanding but often fail when encountering unexpected states or making initial errors. Standard supervised fine-tuning on expert trajectories tends to diminish a model's inherent reasoning and reflection capabilities. We propose GUI-Reflection, a framework that equips GUI agents with the ability to recognize, undo, and learn from their mistakes. By introducing a specialized reflection task suite and iterative online tuning, our model achieves a 34.5% success rate on the AndroidWorld benchmark, significantly outperforming standard end-to-end models.

Introduction

Current GUI agents are primarily trained on "perfect" trajectories where every action leads directly to a goal. However, real-world interactions are prone to errors, such as accidental clicks or unexpected pop-ups. Standard models often lack the "self-reflection" necessary to realize they have deviated from the target path, leading to aimless clicking or loops.

Comparison between standard GUI models and models with self-reflection behaviors.

As shown in Figure 1, while current models might persist in a wrong direction after an initial error, a model with self-reflection can recognize the mistake, backtrack, and re-attempt the task with a better-informed strategy.

Methodology

The GUI-Reflection framework employs a three-stage pipeline to inject reflection behavior into an InternVL2.5-8B base model.

1. GUI-Reflection Task Suite

To preserve and enhance reflection skills, we introduce three pre-training tasks:

  • Action Verification: Assessing if the previous action achieved its intent.
  • Action Reversal: Identifying the specific "undo" action (e.g., 'Back' or 'Cancel') to return to a valid state.
  • Mistake-Informed Reattempt: Formulating a new action given a previous failure.

2. Automated Reflection Data Generation

We developed a scalable offline pipeline that transforms successful trajectories into learning opportunities. By modifying goals or inserting ineffective actions (e.g., scrolling at the boundary), we force the model to practice error recovery.

3. Iterative Online Reflection Tuning

The model interacts with a distributed Android environment containing 215 task templates. A verifier identifies failure points, and the model is fine-tuned on these error-correction pairs using a curriculum that progresses from simple to complex tasks.

Evaluation and Results

We evaluated the framework on several benchmarks, including ScreenSpot and AndroidWorld.

Performance on AndroidWorld

The GUI-Reflection model achieved a 34.5% success rate on the AndroidWorld benchmark. This performance is highly competitive for an 8B-scale model, approaching the results of much larger models or complex agentic frameworks.

Task Suite and Ablation Studies

The "GUI-Pretrain-Ref" model significantly outperformed the baseline in Action Verification (87.56% vs 57.95% accuracy), proving that the model can indeed "see" its own mistakes. Ablation studies show that adding reflection data during offline SFT improved success rates on complex tasks from 14.58% to 23.61%. Further online tuning pushed this to 34.72%.

The "Expert Trap"

A key finding is the "Expert Trap": focusing solely on successful grounding during pre-training can degrade a model's ability to recognize failures. Explicit reflection training is required to maintain these "common sense" reasoning skills.

Discussion and Conclusion

GUI-Reflection demonstrates that backtracking and error correction are distinct skills that must be explicitly taught. While the current framework focuses on visual and direct action errors, future work will address high-level planning and multi-step logic failures. Additionally, expanding this approach beyond Android to desktop and web interfaces remains a key area for development.

Summary updated

BibTeX
@inproceedings{wu2025gui,
  author = {Penghao Wu and Shengnan Ma and Bo Wang and Jiaheng Yu and Lewei Lu and Ziwei Liu},
  title = {{GUI-Reflection: Empowering Multimodal GUI Models with Self-Reflection Behavior}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=qup6v4WnYX},
}
Figure