Abstract
The recent DeepSeek-R1 has showcased the emergence of reasoning capabilities in LLMs through reinforcement learning (RL) with rule-based rewards. Despite its success in language models, its application in multi-modal domains, particularly in graphic user interface (GUI) agent tasks, remains under-explored. To address this issue, we propose UI-R1, the first framework to explore how rule-based RL can enhance the reasoning capabilities of multimodal large language models (MLLMs) for GUI action prediction tasks. Specifically, UI-R1 introduces a novel rule-based action reward, enabling model optimization via policy-based algorithms such as Group Relative Policy Optimization (GRPO). For efficient training, we curate a small yet high-quality dataset of 136 challenging tasks, encompassing five common action types on mobile devices. Experimental results demonstrate that our proposed UI-R1-3B achieves significant improvements over the base model (i.e. Qwen2.5-VL-3B) on both in-domain (ID) and out-of-domain (OOD) tasks, with average accuracy gains of 22.1% on ScreenSpot, 6.0% on ScreenSpot-Pro, and 12.7% on ANDROIDCONTROL. Furthermore, UI-R1-3B delivers competitive performance compared to larger models (e.g., OS-Atlas-7B) trained via supervised fine-tuning (SFT) on 76K samples. We additionally develop an optimized version, UI-R1-E-3B, which significantly improves both grounding efficiency and accuracy.
Introduction
Building a GUI agent—a model capable of interpreting visual screen data to execute commands like "click the search bar"—traditionally relies on Supervised Fine-Tuning (SFT). While effective, SFT is notoriously data-hungry, requiring massive human-annotated datasets. Moreover, SFT-trained models often exhibit brittleness, failing to generalize to out-of-domain (OOD) tasks or new operating systems, and frequently lack the explicit reasoning steps necessary for complex visual contexts.
Inspired by the success of DeepSeek-R1, UI-R1 introduces rule-based reinforcement learning to the multimodal GUI domain. By allowing models to explore and learn from automated feedback rather than static human labels, UI-R1 achieves superior performance with a fraction of the training data.
The UI-R1 Framework
The core innovation of UI-R1 is the transition from human-labeled imitation to Rule-Based Rewards. The framework employs three primary automated checks to guide the model's learning:
- Format Reward: Ensures the model adheres to the required output structure, specifically using
<think>and<answer>tags. - Action Type Reward: Validates whether the model correctly identified the intended action (e.g., "Click" vs. "Scroll").
- Coordinate Accuracy Reward: Verifies if the predicted [x, y] coordinates fall within the bounding box of the target element.
Optimization is performed using Group Relative Policy Optimization (GRPO). Unlike standard RL algorithms that require a separate critic model, GRPO generates multiple candidate responses for a single prompt and rewards those that exceed the group's average performance. This approach encourages the model to refine its internal reasoning (the "thinking" phase) to achieve more accurate predictions.
Data Efficiency and Generalization
A defining characteristic of UI-R1 is its extreme data efficiency. The researchers curated a "less is more" dataset consisting of only 136 high-quality, challenging mobile samples. These samples were selected to refine click action arguments and cover diverse action types like scrolling and typing.
As shown in Figure 1, UI-R1-3B (trained via Reinforcement Fine-Tuning or RFT) achieves performance comparable to or exceeding models like OS-Atlas-7B, which require orders of magnitude more training data (76K samples) via SFT. Furthermore, the radar chart illustrates that while trained primarily on mobile data, UI-R1 generalizes remarkably well to out-of-domain tasks in Web, Desktop, and specialized software environments such as CAD and Scientific tools.
Experimental Results
UI-R1-3B demonstrates substantial improvements over its base model, Qwen2.5-VL-3B, across several benchmarks:
- ScreenSpot: Achieved an average accuracy gain of 22.1%.
- AndroidControl: Improved accuracy by 12.7%.
- ScreenSpot-Pro: Showed a 6.0% gain, proving effective even in high-resolution professional software tasks.
The researchers also introduced UI-R1-E-3B, an optimized version that employs a two-stage training process. This version includes "Difficulty-Adaptive Slow-Thinking" (DAST) to adjust reasoning depth based on task complexity and a "NOTHINK" stage to bypass reasoning for simple grounding tasks, maximizing inference speed. UI-R1-E-3B reached a state-of-the-art 89.2% accuracy on the ScreenSpot benchmark.
Conclusion and Future Work
UI-R1 proves that rule-based RL can unlock significant reasoning and grounding capabilities in multimodal GUI agents with minimal data. Future research will focus on expanding the action space beyond the current five types and extending the framework to handle multi-step, high-level task planning. These results pave the way for more autonomous and adaptable digital assistants.
Summary updated