Manuscript Offprint

arXiv:2608.27508

WM-R1: Training GUI Agents to Reason and leverage World Models with Reinforcement Learning

Yu Han, Tianwen Qian

Abstract

GUI agents trained with reinforcement learning (RL) have showcased strong environment learning capabilities on mobile platforms. However, RL typically demands extensive real-environment interactions, leading to high resource costs and instability, especially in GUI scenarios. To address these, we propose WM-R1, the first reinforcement learning framework that trains mobile GUI agents with world models instead of real environments. Specifically, world models serve as the source of state transitions during all rollouts, replacing the real Android environment within the training loop. WM-R1 also embeds world models directly into the thinking process, enabling agents to reason about the consequences of candidate actions before committing to the final action. Crucially, WM-R1 eliminates the need for real-environment interaction, supports massively parallelized and step-level granularized trajectory generation grounded in world models, and introduces a multi-dimensional rule-based reward that jointly optimizes task success, trajectory efficiency, and world model utilization. For efficient training, we curate a high-quality dataset of 2000 challenging tasks. Experiments on Android mobile benchmarks demonstrate that WM-R1-trained agents significantly outperform GRPO-only baselines and inference-time simulation methods. Code is available at https://github.com/genalyu/WM-R1.

Introduction

Autonomous GUI agents that interact with mobile interfaces through visual perception and action execution have emerged as a promising direction for automating complex digital workflows (Qin et al. 2025; Hong et al. 2024; Rawles et al. 2023; Nguyen et al. 2025). Reinforcement learning (RL) has proven effective for training these agents. While PPO (Schulman et al. 2017) requires training a separate value network, GRPO (Shao et al. 2024) eliminates this overhead by computing advantages relative to a group of sampled trajectories, enabling emergent reasoning through rule-based rewards alone. UI-R1 (Lu et al. 2025c) was the first to apply GRPO to GUI action prediction, using a rule-based reward (format + action type + coordinate) without supervised reasoning traces. ARPO (Lu et al. 2025a) introduced an experience replay buffer into GRPO, reusing successful trajectories for long-horizon tasks. Recent works have extended

Figure

Figure 1: Comparison of training paradigms. Left: Standard GRPO generates trajectories through real-environment interaction, incurring high computational cost, environment latency, and irreversibility. Right: WM-R1 replaces the environment with world models, enabling fully simulated trajectory generation.

this direction with multi-turn RL (Wang et al. 2025a), curriculum training (Nong et al. 2025) and self-evolutionary strategies (Yuan et al. 2025; Lian et al. 2026).

However, all existing RL methods require extensive real-environment interaction, introducing three bottlenecks: (1) computational cost: environment interaction is orders of magnitude slower than model inference; (2) irreversibility: a single wrong action derails long-horizon trajectories; (3) environment noise: non-deterministic transitions corrupt the reward signal. Parallel work has explored world models as a remedy. Text-based methods predict transitions via natural language (Chae et al. 2025) or DOM updates (Gu et al. 2024), capturing semantic intent but discarding spatial-visual details. Pixel-based approaches like ViMo (Luo et al. 2025a) and MobileDreamer (Cao et al. 2026) synthesize screenshots but struggle with structural controllability. Code-based methods such as Code2World (Zheng et al. 2026) generate renderable HTML, achieving both visual fidelity and structural precision. However, all these works use world models exclusively at inference time as a plug-and-play simulator that augments a pre-trained agent's decision-making, leaving the RL training loop unchanged. The fundamental challenge remains: how to leverage the world model not just for inference, but as the training environment itself.

To address these challenges, we propose WM-R1, the first reinforcement learning framework that trains mobile GUI agents entirely within a simulated environment, namely world models. As shown in Figure 1 (right), WM-R1 re-

†Corresponding author.

places the real Android environment with world models that predict next GUI states via simulated screenshots. This substitution has two critical consequences: (1) training becomes massively parallelizable and step-level granularized with environmental interaction overhead, and (2) the agent's chain-of-thought reasoning naturally incorporates world model predictions, since every state transition it observes comes from the world model. Specifically, WM-R1 embeds the world model directly into the agent's reasoning stream through a <call_wm> mechanism, allowing the agent to simulate and refine candidate actions before committing to final outputs.

Our approach uses Qwen2.5-VL-3/7B (Bai et al. 2025b) as the base model and trains on a curated dataset combining three Android GUI sources: AndroidCode (Zheng et al. 2026), GUI-Odyssey (Lu et al. 2025b), and GUI-R1 (Luo et al. 2025b). We filter by task difficulty. The training loop follows GRPO (Shao et al. 2024) with a composite reward (success + length + WM call count) to drive the policy update. Our contributions are:

  1. WM-R1 framework: A GRPO-based training framework that replaces the real Android environment with a learned world model, enabling fully simulated, massively parallel training of mobile GUI reasoning agents without any real-environment interaction.

  2. World model utilization: We demonstrate that WM-R1 substantially improves GUI agents' ability to reason with world models on mobile platforms.

  3. Multi-dimensional reward design: We propose a rule-based composite reward that aligns with GUI task objectives across task success, trajectory efficiency, and world model utilization, with ablation studies confirming each component's contribution.

  4. Experiments on mobile GUI benchmarks: We train on the curated Android dataset and evaluate on AndroidWorld, GUI-Odyssey, and AndroidControl, demonstrating that WM-R1-trained agents outperform GRPO baselines at both 3B and 7B model scales.

References (51)