Abstract
Grounding natural language commands to user interface (UI) elements is a fundamental task for AI assistants. However, existing models typically operate in a single-turn manner, lacking the resilience to handle ambiguity or errors. We present MUG (Multi-turn UI Grounding), a framework that enables agents to interactively refine their actions through iterative user feedback. Our results show that this collaborative approach leads to an 18% overall boost in task completion and a 31% improvement in challenging, ambiguous scenarios.
Introduction
In real-world applications, human communication is often iterative and messy. A command like "click the one below" is inherently ambiguous without context or feedback. Most current UI agents are "one-shot": they attempt an action, and if they fail, the interaction ends. This lack of resilience limits their utility in complex, cluttered environments.
The MUG framework addresses this by treating UI grounding as a conversation. If an agent makes an incorrect selection, the user can provide corrective feedback (e.g., "No, the one to the right"), allowing the agent to self-correct and successfully complete the task.
The MUG Framework and Dataset
The authors model UI grounding as a sequence-to-sequence problem between a User and an Agent.
Model Architecture
The core of MUG is a Transformer-based encoder-decoder architecture:
- Multimodal Encoder: Processes both raw screenshots (via ResNet-50) and the underlying "view hierarchy" metadata (text, button types, positions).
- Causal Decoder: Consumes the entire interaction history, including previous commands and the agent's prior incorrect selections, to predict the next action.
The MUG Dataset
To support this research, the authors introduced the MUG Dataset, featuring 77,820 interaction sequences across 31,265 unique Android screens. Unlike previous datasets that focus on single-turn instructions, MUG includes a "Challenging" split (20% of the data) where tasks require multiple rounds of interaction due to inherent ambiguity.
Experimental Results
The researchers evaluated several training strategies, including Imitation Learning and Offline Reinforcement Learning (using Decision Transformers).
Performance Gains
The most significant finding is the dramatic impact of multi-turn interaction. Incorporating iterative feedback improved the absolute F1 score by 18% across the entire test set. On the "Challenging" subset, the improvement reached 31%.
Key Insights
- Interaction as a Safety Net: The ability to process feedback is often more critical than the accuracy of the initial guess. Even simpler models become highly effective when they can understand corrective cues.
- The "Stubborn Agent" Problem: Neural agents sometimes repeat the same mistake despite explicit correction. This suggests that while models can follow instructions, they still struggle to fully ground the concept of an "error."
- Feedback Quality: Agents performed better when guided by precise, template-based spatial feedback (heuristic) than by more natural, sometimes vague human-like language (neural).
Conclusion and Future Work
MUG demonstrates that interactivity is a powerful tool for building resilient UI assistants. Future work will focus on expanding the dataset beyond English and Android, handling multi-screen tasks, and improving the agent's internal logic to prevent repetitive errors. By moving from "one-shot" commands to collaborative dialogues, we can create AI assistants that are far more capable in the messy reality of human-computer interaction.
Summary updated