Manuscript Offprint
arXiv:2608.27508WM-R1: Training GUI Agents to Reason and leverage World Models with Reinforcement Learning
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 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:
-
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.
-
World model utilization: We demonstrate that WM-R1 substantially improves GUI agents' ability to reason with world models on mobile platforms.
-
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.
-
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.
Reinforcement learning for GUI agents. PPO (Schulman et al. 2017; Ouyang et al. 2022; Yao et al. 2022; Wei et al. 2022) requires a value network; GRPO (Shao et al. 2024) computes group-relative advantages instead. After DeepSeek-R1 (Guo et al. 2025) showed emergent reasoning from pure GRPO, the approach was extended to VLMs (Huang et al. 2025; Zhou et al. 2025a; Chen et al. 2025). In GUI, UI-R1 (Lu et al. 2025c) first applied rule-based GRPO without reasoning traces. Follow-ups explored multi-turn RL (Wang et al. 2025a; Liu et al. 2025), experience replay (Lu et al. 2025a), curriculum (Nong et al. 2025), decoupled training (Li et al. 2025b), mobile-specific RL (Shi et al. 2025; Xu et al. 2025), self-evolutionary grounding (Yuan et al. 2025), efficient training (He, Jin, and Liu 2025), and alternative formulations (Lian et al. 2026; Yang et al. 2026). Similar ideas appeared in web navigation (Wei et al. 2025) and environment-free training (Li et al. 2025d). While these methods develop genuine planning beyond imitation, all still require costly real-environment interaction.
World models for GUI. World models enable action-conditioned future prediction for planning (Ha and Schmidhuber 2018; Ding et al. 2025; Li et al. 2025c). GUI approaches fall into three categories: text-based (language/DOM prediction (Chae et al. 2025; Gu et al. 2024)), pixel-based (diffusion-generated screenshots (Luo et al. 2025a; Cao et al. 2026)), and code-based (renderable HTML (Zheng et al. 2026)). UI-Simulator (Wang et al. 2025b) and SimuRA (Deng et al. 2025) use world models for agent training simulation. All, however, operate at inference time only (Zheng et al. 2026; Luo et al. 2025a). WM-R1 instead uses the world model as the training environment itself.
Preliminaries
At step in standard RL training, a GUI agent parameterized by observes a screenshot and interaction history , and produces an action (e.g., click, type, scroll). The environment transitions to a new state , yielding a sparse reward . Training proceeds via Group Relative Policy Optimization (GRPO) (Shao et al. 2024), which eliminates the value network by computing advantages relative to a group of sampled trajectories. For each trajectory with reward , the advantage is:
where and are the mean and standard deviation of rewards within the group. The policy update maximizes:
(2)
where is the importance sampling ratio and controls the KL divergence penalty from a reference

Figure 2: WM-R1 training framework. For each task, the policy model generates multiple candidate trajectories with chain-of-thought reasoning in a world-model-simulated environment. At each reasoning step, the agent can invoke the world model to predict the consequence of a candidate action. The simulated next state becomes part of the trajectory. After all trajectories complete, a rule-based Reward Model computes scores, followed by GRPO advantage computation and policy update.
policy . WM-R1 replaces the real environment with world models making the simulator an integral component in the training loop. Concretely, this substitution enables two key capabilities beyond standard GRPO: (1) reasoning with simulated outcomes: the agent invokes during its chain-of-thought to preview candidate actions, observe the predicted next state , and refine its decision before committing to a final action ; (2) fully simulated state transformation: the entire trajectory is generated via state transformation .
Method: WM-R1
As illustrated in Figure 2, WM-R1 trains a multimodal GUI agent through GRPO in a fully simulated environment powered by a world model. This substitution enables three things: (1) the agent learns to reason using world model predictions during its chain-of-thought (Section ), (2) trajectory generation is massively parallelized, producing states without requiring real environments (Section ), and (3) the reward design can focus on reasoning performance and action correctness (Section ).
Reasoning with the World Model
The core of WM-R1 is how the agent learns to invoke and reason with the world model during its chain-of-thought process. The policy model is prompted to produce responses in a structured format that interleaves reasoning tokens with actions. The system prompt is shown below:
Prompt for Training and Inference
In this GUI screenshot, I want to perform the command instruction. Please provide the action to perform and the coordinate where the cursor is moved to if click is performed. Output the thinking process in thinking tags and final answer in answer tags. Within the thinking process, you may invoke <call_wm> to simulate the outcome of an action before committing. Please strictly follow the format.
The world model is integrated into the reasoning process through a <call_wm> invocation. Unlike approaches that treat the world model as a separate conversational turn, WM-R1 embeds world model calls within the agent's reasoning stream. At each reasoning step, the agent can decide to invoke the world model to simulate the consequence of a proposed action:
The simulated screenshot is then injected back as a System (WM) observation, and the agent continues reasoning from this point within the same thinking block. This multi-turn reasoning pattern allows the agent to interleave thinking and world model calls within a single thinking block, then produce a final action once it is confident.
Trajectory Generation
Each training trajectory is generated through an iterative loop between the policy model and the world model. Given a task instruction and an initial screenshot , the trajectory generation proceeds as follows:
-
Observe. The agent receives the current simulated screenshot along with the full interaction history .
-
Think. The policy model generates a reasoning block with optional <call_wm> invocations:
- Simulate & Continue. If <call_wm> is present, the world model generates the next simulated screenshot, which is fed back as a System (WM) observation. The agent continues reasoning from this point. If no <call_wm> is present, the reasoning block ends and the agent produces a final action:
- Repeat. Steps 1–3 continue until the agent produces a terminal action or the trajectory reaches the maximum length .
The complete trajectory for task i and rollout j is:
The complete WM-R1 training loop is summarized in Algorithm 1 of the Supplementary Material.
Reward Design
The reward function drives the GRPO optimization and determines what behaviors the agent learns. We adopt a composite reward design that combines a task success signal with a length penalty and a world model efficiency bonus:
Success reward . The success reward evaluates whether the agent completes the task. We use LLM-as-a-judge to compare the final trajectory against the reference solution. The reward is binary:
Exact match is determined by the LLM judge evaluating whether the sequence of actions and their effects are semantically equivalent to the reference trajectory.
Length reward . The length reward encourages efficiency by penalizing unnecessarily long trajectories. Following DAST adopted in UI-R1 (Shen et al. 2025; Lu et al. 2025c), we define a length budget as a mixture of the reference trajectory length and the maximum allowed length :
where c is the number of completed sub-tasks and N is the total number of sub-tasks. The normalized deviation is then used to compute the length reward:
World model call count reward . The WM call reward regulates the agent's usage of world model simulation. Let denote the number of <call_wm> invocations in trajectory i. The group average is . The normalized deviation is used to compute:
For each task, the G trajectory rewards are used to compute GRPO advantages via Eq. (1). The relative nature of GRPO advantages means that the agent learns to produce trajectories that are better than the group average, which naturally selects for more accurate and efficient reasoning strategies. Through GRPO training, the agent learns when and how many times to invoke the world model: trajectories that use simulation effectively to refine their actions receive higher rewards, while unnecessary or poorly timed world model calls do not contribute positively. Over training, the agent internalizes a policy that balances reasoning depth with action efficiency.
Experiments
Experimental Setup
Datasets. We train the Qwen2.5-VL-3/7B model (Bai et al. 2025b) on a curated dataset combining AndroidCode (Zheng et al. 2026), GUI-Odyssey (Lu et al. 2025b), and GUI-R1 (Luo et al. 2025b). Tasks with zero-shot success rates above 80% (trivially easy) or below 5% (impossibly hard) are removed, and 2000 examples are randomly sampled, ensuring the training distribution focuses on intermediate-complexity tasks where world-model feedback is most informative.
Benchmarks. We evaluate on two categories of benchmarks. Long-horizon tasks: AndroidWorld (Rawles et al. 2023), testing multi-step mobile device control with a maximum execution length of 15; and GUI-Odyssey (Lu et al. 2025b), evaluating cross-app navigation on Android. For both AndroidWorld and GUI-Odyssey, we define a Hard subset consisting of tasks that require 5 ground-truth steps to complete. Action prediction and grounding: ScreenSpotPro (Li et al. 2025a) and ScreenSpot-V2 (Wu et al. 2025) evaluate GUI grounding accuracy on the mobile subset; AndroidControl (Rawles et al. 2023) measures action type prediction and coordinate grounding.
Implementation details. We use the pretrained Code2World-8B model (Zheng et al. 2026), frozen during training. It generates renderable HTML from the current screenshot and action, rendered to a screenshot using a headless browser. Full training configuration is provided in the Supplementary Material (Section A).
Main Results
Long-horizon tasks. The results in Table 1 demonstrate the advantages of world-model-simulated training for long-
| Method | AndroidWorld | GUI-Odyssey | ScreenSpot-Pro | ScreenSpot-V2 | AndroidControl | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Full | Hard | Full | Hard | Icon | Text | Icon | Text | Type | Gnd | |
| 3B scale | ||||||||||
| Qwen2.5-VL-3B (ZS) | 15.2 | 11.8 | 8.5 | 5.2 | 28.4 | 38.6 | 64.5 | 88.2 | 76.2 | 69.5 |
| Qwen2.5-VL-3B + CW | 20.6 | 16.3 | 14.2 | 9.8 | 31.2 | 41.5 | 67.8 | 89.1 | 78.5 | 72.3 |
| GUI-R1-3B | 17.4 | 13.5 | 10.2 | 6.8 | 35.6 | 44.3 | 76.8 | 90.5 | 82.3 | 75.6 |
| UI-TARS-3B | 19.8 | 15.6 | 13.4 | 8.9 | 39.2 | 48.5 | 80.4 | 91.8 | 84.7 | 77.8 |
| UI-R1-3B | 18.6 | 14.2 | 11.3 | 7.4 | 38.7 | 48.2 | 81.2 | 92.5 | 85.6 | 78.4 |
| WM-R1-3B | 29.5 | 23.1 | 22.8 | 16.4 | 43.5 | 52.8 | 83.6 | 93.8 | 89.2 | 82.4 |
| 7B scale | ||||||||||
| Qwen2.5-VL-7B (ZS) | 22.4 | 17.6 | 12.3 | 7.8 | 35.2 | 44.8 | 72.3 | 91.4 | 79.8 | 74.1 |
| Qwen2.5-VL-7B + CW | 28.7 | 23.1 | 19.6 | 14.2 | 38.6 | 48.1 | 76.8 | 92.1 | 82.5 | 77.6 |
| GUI-R1-7B | 24.5 | 19.2 | 15.8 | 10.5 | 40.2 | 49.6 | 82.5 | 92.8 | 85.2 | 78.5 |
| UI-TARS-7B | 27.3 | 21.5 | 18.2 | 12.8 | 43.5 | 53.2 | 85.8 | 93.5 | 87.6 | 80.4 |
| Aguvis-7B | 26.8 | 20.9 | 17.5 | 12.1 | 44.2 | 54.5 | 86.5 | 94.2 | 88.2 | 81.5 |
| OS-Genesis-7B | 29.2 | 22.8 | 19.8 | 14.5 | 41.8 | 51.2 | 84.2 | 93.5 | 86.5 | 79.8 |
| UI-R1-7B | 30.8 | 24.2 | 21.5 | 15.3 | 42.8 | 52.4 | 84.5 | 93.6 | 87.4 | 81.2 |
| MobileGUI-RL-7B | 30.0 | 23.5 | 20.8 | 15.1 | 40.5 | 50.2 | 82.1 | 92.8 | 85.8 | 79.5 |
| OS-Atlas-7B | 33.5 | 27.2 | 24.8 | 19.2 | 45.8 | 55.6 | 88.2 | 94.8 | 90.5 | 84.2 |
| UI-TARS 1.5-7B | 34.2 | 28.1 | 25.6 | 20.1 | 46.2 | 56.8 | 89.5 | 95.1 | 91.2 | 85.5 |
| WM-R1-7B | 39.8 | 32.7 | 31.6 | 24.1 | 48.6 | 58.2 | 90.4 | 95.2 | 93.5 | 87.8 |
Table 1: Main results across all benchmarks. Bold: best per scale. AndroidWorld and GUI-Odyssey report success rate (%); Hard subsets contain tasks requiring ≥5 ground-truth steps. ScreenSpot-Pro/V2 report mobile grounding accuracy (%). Android-Control reports action type prediction (Type) and coordinate grounding (Gnd) accuracy (%). CW: Code2World inference-time augmentation.
horizon mobile tasks. WM-R1 establishes new state-of-the-art results at both model scales. WM-R1-3B (29.5) substantially outperforms all 3B-scale baselines including UI-R1-3B (Lu et al. 2025c) (18.6) and GUI-R1-3B (Luo et al. 2025b) (17.4). At 7B scale, WM-R1-7B reaches 39.8 on Android-World, outperforming UI-R1-7B (Lu et al. 2025c) (30.8) by +9.0 points and UI-TARS 1.5-7B (34.2) by +5.6 points. On GUI-Odyssey, WM-R1-7B achieves 31.6, surpassing UI-R1-7B (21.5) by +10.1 points and OS-Atlas-7B (24.8) by +6.8 points.
WM-R1 achieves substantial gains over the inference-time augmentation baseline (Qwen2.5-VL + CW, i.e., using Code2World for propose-simulate-select at inference only) at both scales: +8.9 and +11.1 on AndroidWorld for 3B and 7B respectively. The improvements are particularly strong on the Hard subsets (+6.8 at 3B, +9.6 at 7B for AndroidWorld; +6.6 at 3B, +8.8 at 7B for GUI-Odyssey), indicating that world-model-simulated transitions provide especially strong signal for difficult, multi-step reasoning tasks that require multiple steps.
A key question is whether WM-R1's improvements stem from memorizing training patterns or from learning generalizable reasoning strategies. To investigate this, we categorize our evaluation benchmarks into in-distribution (ID) and out-of-distribution (OOD) settings relative to the training data. AndroidControl and GUI-Odyssey serve as ID benchmarks while AndroidWorld and ScreenSpot-Pro/V2 are OOD. WM-R1 achieves an average OOD improvement of

Figure 3: Training curves. WM-R1 reaches 39.8% success rate by episode 15, outperforming UI-R1 (30.8%) by 9.0 points with lower variance.
+16.0 relative to ZS baseline, which is 1.84× that of UI-R1 (+8.7). This demonstrates that world-model-based reasoning delivers stronger generalization to novel environments through two complementary mechanisms: (i) World-model-based reasoning over memorization. Standard GRPO trains the agent to produce correct actions on the training distribution. When faced with unfamiliar UI elements or app combinations, the agent must rely on surface-level pattern matching, which degrades rapidly under distribution shift. WM-R1, by contrast, trains the agent to use the world model as an internal simulator: before committing to an action, the agent proposes a candidate, simulates its consequence via <call_wm>, and revises if the predicted outcome does not match the intent. This “think-before-act” loop is a reasoning strategy, not a memorized mapping. It transfers naturally to OOD situations because the agent can simulate and evaluate actions even on UI patterns it has never seen during training. (ii) Diverse training distribution. The world model enhances the visual and structural diversity of the training distribution: by simulating the consequences of actions on diverse screenshots, the agent effectively trains on a broader and more novel distribution of state transitions than the raw dataset provides. Together, these mechanisms explain why WM-R1 is expected to close the gap between ID and OOD performance more effectively than GRPO-only baselines: the agent learns how to reason with a world model rather than what actions to take on specific UI patterns.
Figure 3 shows the training dynamics over 15 episodes on AndroidWorld. Both methods start from the same zero-shot baseline (22.4%), but WM-R1 exhibits a steeper learning curve, reaching 31.5% by episode 5. By episode 15, WM-R1 reaches 39.8%, a 9.0 point advantage over UI-R1. WM-R1 also shows lower variance across seeds, which we attribute to the fully simulated environment eliminating the stochasticity inherent in real GUI interactions. The policy entropy (Figure 4) reveals the exploration mechanism behind this advantage: both methods exhibit an initial entropy drop followed by recovery, but WM-R1's entropy decreases much more gradually (3.8→2.9 vs. UI-R1's 3.8→2.1 in the first 3 episodes). This sustained exploration is enabled by the noise-free world model, which avoids the stochastic punishment of exploratory actions that causes real-environment agents to prematurely collapse. At convergence, WM-R1 retains higher entropy (~3.2 vs. ~2.6).
Action prediction and grounding. WM-R1 delivers substantial improvements across all mobile grounding benchmarks. At 3B scale, WM-R1-3B improves icon grounding on ScreenSpot-Pro by +15.1 points (43.5 vs. 28.4) and text grounding by +14.2 points (52.8 vs. 38.6) over the zero-shot baseline, while surpassing UI-R1-3B (Lu et al. 2025c) across all metrics. On AndroidControl, WM-R1-3B achieves 89.2 action type accuracy and 82.4 coordinate grounding (avg 85.8), exceeding UI-R1-3B (85.6 / 78.4, avg 82.0) by +3.8 points. At 7B scale, WM-R1-7B further extends these gains: ScreenSpot-Pro icon reaches 48.6 (+13.4 over ZS), ScreenSpot-V2 icon reaches 90.4 (+18.1 over ZS), and AndroidControl grounding reaches 87.8 (+13.7 over ZS). The grounding improvement is driven by the world model's dense visual feedback: by simulating the consequence of each candidate action, the agent learns to associate visual features with spatial locations more precisely.
Ablation Studies
To understand the contribution of each component, we conduct an ablation study on AndroidWorld (7B scale). We eval-

Figure 4: Policy entropy. Both methods show a decrease-then-recover pattern, but WM-R1 maintains higher entropy throughout, indicating sustained exploration from the noise-free world model.
| Config | AW | AW-H | Δ |
|---|---|---|---|
| WM-R1 (full) | 39.8 | 32.7 | — |
| – CoT | 34.6 | 27.8 | -5.2 / -4.9 |
| – RL | 36.5 | 30.1 | -3.3 / -2.6 |
| – RWM | 37.2 | 30.8 | -2.6 / -1.9 |
Table 2: Ablation study on AndroidWorld (7B). Chain-of-thought reasoning is the most critical component; removing it causes the largest degradation (-5.2 on AW, -4.9 on AW-H). and contribute smaller but complementary gains.
uate three variants of WM-R1, each removing a single design choice from the full system.
Table 2 reveals the relative importance of WM-R1's components. Chain-of-thought reasoning is the most impactful, with a 5.2 point degradation on AndroidWorld and 4.9 on the Hard subset when removed. Without intermediate reasoning, the model produces actions directly from the observation, bypassing the reflective loop where the world model's simulated feedback can be used to evaluate and revise candidate actions before execution. The length reward contributes a 3.3 point gain: without it, the agent learns to solve tasks correctly but with redundant steps that accumulate error over longer trajectories. The WM call reward has the smallest individual impact (-2.6 on the full set, -1.9 on Hard), but its role is stabilizing: without regulation, some training trajectories converge to excessive world model calls that waste inference budget, while others underuse the simulator entirely. Together, the three components address distinct failure modes, and the full system achieves a 5.2 point advantage over the strongest single-component variant.
World Model Utilization Dynamics
A natural question is how the agent's use of the world model evolves during training. We track two quantities across train-

Figure 5: WM utilization dynamics. WM calls per trajectory (blue, left axis) decrease from ~4.2 to ~1.8 while average episode reward (red, right axis) increases from 0.15 to 0.52. Three phases emerge: exploration (ep. 1–4), calibration (ep. 5–10), and selective utilization (ep. 11–15).
ing episodes: (1) the average number of <call_wm> invocations per trajectory, and (2) the average episode reward.
As shown in Figure 5, a clear inverse relationship emerges: as training progresses, the agent makes fewer world model calls while achieving higher rewards. We identify three phases of world model mastery:
Exploration phase (episodes 1–4): The agent invokes the world model frequently (~4 calls per trajectory), often redundantly simulating obvious actions. Many of these calls produce predictions that the agent could have anticipated without simulation, reflecting an undifferentiated reliance on the world model.
Calibration phase (episodes 5–10): The agent begins to distinguish between actions that benefit from simulation (e.g., clicking on ambiguous UI elements, navigating to unfamiliar screens) and actions that do not (e.g., typing text, pressing the home button). World model calls drop to ~2.5 per trajectory as the agent learns to allocate simulation budget strategically.
Selective utilization phase (episodes 11–15): The agent invokes the world model primarily at critical decision points—when it is uncertain about the consequence of an action or when a mistake would derail the remaining trajectory. Calls stabilize at ~1.8 per trajectory, indicating that the agent has internalized a policy of targeted simulation: using the world model where it provides the most value while relying on its own learned policy for routine actions.
This dynamic is consistent with the role of in our composite reward design: by penalizing both over-use and under-use relative to the group average, the reward guides the agent toward an efficient equilibrium.
Case Study: World-Model-Guided Self-Correction
To illustrate how WM-R1 agents leverage the world model during inference, we present a representative reasoning trace requiring the agent to click a search bar and enter a query.
<think>
I need to click the search bar to enter the query. It appears on the left side of the top bar. Let me simulate clicking there.
<call_wm>(click(0.7, 0.3))
</think>
System (WM): [simulated screenshot φ_{t+1}: nothing changed -- the click landed on an empty area to the right of the search bar]
<think>
The click did not hit the target. The coordinate was too far to the right. The search bar starts around x=0.4. Let me adjust.
<call_wm>(click(0.5, 0.3))
</think>
System (WM): [simulated screenshot φ_{t+2}: search bar focused with cursor visible]
<think>
The search bar is now focused and the cursor is active. This is the correct action.
</think>
Action: click(0.5, 0.3)
The agent demonstrates a three-stage reasoning process: (1) Propose. It identifies the search bar and proposes an initial click coordinate; (2) Simulate and Evaluate. It invokes the world model to preview the consequence, and recognizes that the click landed on an empty area; (3) Revise and Confirm. It adjusts the coordinate, simulates again, and only commits once the predicted state matches the intent. This self-correction loop is impossible for GRPO-only baselines, which must execute actions directly and suffer irreversible consequences from initial mistakes. The world model effectively serves as a “scratchpad” that allows the agent to make and learn from mistakes before acting in the environment.
Conclusion
We presented WM-R1, a reinforcement learning framework that trains GUI agents entirely within a world-model-simulated environment. Rather than using the world model only at inference time as a post-hoc proposal-evaluation tool, WM-R1 uses world models as the source of all state transitions during GRPO training. This design enables massively parallel, zero-cost training while allowing the agent’s chain-of-thought reasoning to naturally incorporate simulated visual feedback at every step. Our experiments on mobile benchmarks demonstrate that WM-R1 improves over zero-shot and GRPO baselines, confirming that world-model-simulated training provides a practical and effective path toward generalizable mobile GUI reasoning agents.
References
Bai, S.; Cai, Y.; Chen, R.; Chen, K.; Chen, X.; Cheng, Z.; Deng, L.; Ding, W.; Gao, C.; Ge, C.; Ge, W.; Guo, Z.; Huang, Q.; Huang, J.; Huang, F.; Hui, B.; Jiang, S.; Li, Z.; Li, M.; Li, M.; Li, K.; Lin, Z.; Lin, J.; Liu, X.; Liu, J.; Liu, C.; Liu, Y.; Liu, D.; Liu, S.; Lu, D.; Luo, R.; Lv, C.; Men, R.; Meng, L.; Ren, X.; Ren, X.; Song, S.; Sun, Y.; Tang, J.; Tu, J.; Wan, J.; Wang, P.; Wang, P.; Wang, Q.; Wang, Y.; Xie, T.; Xu, Y.; Xu, H.; Xu, J.; Yang, Z.; Yang, M.; Yang, J.; Yang, A.; Yu, B.; Zhang, F.; Zhang, H.; Zhang, X.; Zheng, B.; Zhong, H.; Zhou, J.; Zhou, F.; Zhou, J.; Zhu, Y.; and Zhu, K. 2025a. Qwen3-VL Technical Report. arXiv:2511.21631.
Bai, S.; Chen, K.; Liu, X.; Wang, J.; Ge, W.; Song, S.; Dang, K.; Wang, P.; Wang, S.; Tang, J.; Zhong, H.; Zhu, Y.; Yang, M.; Li, Z.; Wan, J.; Wang, P.; Ding, W.; Fu, Z.; Xu, Y.; Ye, J.; Zhang, X.; Xie, T.; Cheng, Z.; Zhang, H.; Yang, Z.; Xu, H.; and Lin, J. 2025b. Qwen2.5-VL Technical Report. arXiv:2502.13923.
Cao, Y.; Zhong, Y.; Zeng, Z.; Zheng, L.; Huang, J.; Qiu, H.; Shi, P.; Mao, W.; and Guanglu, W. 2026. Mobile-Dreamer: Generative Sketch World Model for GUI Agent. arXiv preprint arXiv:2601.04035.
Chae, H.; Kim, N.; Ong, K.; Gwak, M.; Song, G.; Kim, J.; Kim, S.; Lee, D.; and Yeo, J. 2025. Web agents with world models: Learning and leveraging environment dynamics in web navigation. In International Conference on Learning Representations, volume 2025, 63707–63738.
Chen, Y.; Li, L.; Xi, T.; Zeng, L.; and Wang, J. 2025. Perception before reasoning: Two-stage reinforcement learning for visual reasoning in vision-language models. arXiv preprint arXiv:2509.13031.
Cheng, K.; Sun, Q.; Chu, Y.; Xu, F.; YanTao, L.; Zhang, J.; and Wu, Z. 2024. Seeclick: Harnessing gui grounding for advanced visual gui agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 9313–9332.
Deng, M.; Hou, J.; Hu, Z.; and Xing, E. 2025. Simura: A world-model-driven simulative reasoning architecture for general goal-oriented agents. arXiv preprint arXiv:2507.23773.
Ding, J.; Zhang, Y.; Shang, Y.; Zhang, Y.; Zong, Z.; Feng, J.; Yuan, Y.; Su, H.; Li, N.; Sukiennik, N.; et al. 2025. Understanding world or predicting future? a comprehensive survey of world models. ACM Computing Surveys, 58(3): 1–38.
Gou, B.; Wang, D. R.; Zheng, B.; Xie, Y.; Chang, C.; Shu, Y.; Sun, H.; and Su, Y. 2025. Navigating the digital world as humans do: Universal visual grounding for gui agents. In International Conference on Learning Representations, volume 2025, 30851–30883.
Gu, Y.; Zhang, K.; Ning, Y.; Zheng, B.; Gou, B.; Xue, T.; Chang, C.; Srivastava, S.; Xie, Y.; Qi, P.; et al. 2024. Is your llm secretly a world model of the internet? model-based planning for web agents. arXiv preprint arXiv:2411.06559.
Guo, D.; Yang, D.; Zhang, H.; Song, J.; Wang, P.; Zhu, Q.; Xu, R.; Zhang, R.; Ma, S.; Bi, X.; et al. 2025. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948.
Ha, D.; and Schmidhuber, J. 2018. World models. arXiv preprint arXiv:1803.10122, 2(3): 440.
He, Y.; Jin, J.; and Liu, P. 2025. Efficient agent training for computer use. arXiv preprint arXiv:2505.13909.
Hong, W.; Wang, W.; Lv, Q.; Xu, J.; Yu, W.; Ji, J.; Wang, Y.; Wang, Z.; Dong, Y.; Ding, M.; et al. 2024. Cogagent: A visual language model for gui agents. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 14281–14290.
Huang, W.; Jia, B.; Zhai, Z.; Cao, S.; Ye, Z.; Zhao, F.; Xu, Z.; Tang, X.; Hu, Y.; and Lin, S. 2025. Vision-r1: Incentivizing reasoning capability in multimodal large language models. arXiv preprint arXiv:2503.06749.
Li, K.; Meng, Z.; Lin, H.; Luo, Z.; Tian, Y.; Ma, J.; Huang, Z.; and Chua, T.-S. 2025a. Screenspot-pro: Gui grounding for professional high-resolution computer use. In Proceedings of the 33rd ACM International Conference on Multimedia, 8778–8786.
Li, P.; Hu, Z.; Shang, Z.; Wu, J.; Liu, Y.; Liu, H.; Gao, Z.; Shi, C.; Zhang, B.; Zhang, Z.; et al. 2025b. Efficient multi-turn rl for gui agents via decoupled training and adaptive data curation. arXiv preprint arXiv:2509.23866.
Li, X.; He, X.; Zhang, L.; Wu, M.; Li, X.; and Liu, Y. 2025c. A comprehensive survey on world models for embodied ai. arXiv preprint arXiv:2510.16732.
Li, Y.; Inan, H. A.; Yue, X.; Chen, W.-N.; Wutschitz, L.; Kulkarni, J.; Poovendran, R.; Sim, R.; and Rajmohan, S. 2025d. Simulating environments with reasoning models for agent training. arXiv preprint arXiv:2511.01824.
Lian, S.; Wu, Y.; Ma, J.; Ding, Y.; Song, Z.; Chen, B.; Zheng, X.; Li, H.; and Ji, R. 2026. Ui-agile: Advancing gui agents with effective reinforcement learning and precise inference-time grounding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 8575–8584.
Lin, K. Q.; Li, L.; Gao, D.; Yang, Z.; Wu, S.; Bai, Z.; Lei, S. W.; Wang, L.; and Shou, M. Z. 2025. Showui: One vision-language-action model for gui visual agent. In Proceedings of the Computer Vision and Pattern Recognition Conference, 19498–19508.
Liu, Y.; Li, P.; Xie, C.; Hu, X.; Han, X.; Zhang, S.; Yang, H.; and Wu, F. 2025. Infigui-r1: Advancing multimodal gui agents from reactive actors to deliberative reasoners. arXiv preprint arXiv:2504.14239.
Lu, F.; Zhong, Z.; Liu, S.; Fu, C.-W.; and Jia, J. 2025a. Arpo: End-to-end policy optimization for gui agents with experience replay. arXiv preprint arXiv:2505.16282.
Lu, Q.; Shao, W.; Liu, Z.; Du, L.; Meng, F.; Li, B.; Chen, B.; Huang, S.; Zhang, K.; and Luo, P. 2025b. Guiodyssey: A comprehensive dataset for cross-app gui navigation on mobile devices. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 22404–22414.
Lu, Z.; Chai, Y.; Guo, Y.; Yin, X.; Liu, L.; Wang, H.; Xiao, H.; Ren, S.; Xiong, G.; and Li, H. 2025c. UI-R1: Enhancing Efficient Action Prediction of GUI Agents by Reinforcement Learning. arXiv:2503.21620.
Luo, D.; Tang, B.; Li, K.; Papoudakis, G.; Song, J.; Gong, S.; Hao, J.; Wang, J.; and Shao, K. 2025a. Vimo: A generative visual gui world model for app agents. arXiv preprint arXiv:2504.13936.
Luo, R.; Wang, L.; He, W.; Chen, L.; Li, J.; and Xia, X. 2025b. Gui-rl: A generalist rl-style vision-language action model for gui agents. arXiv preprint arXiv:2504.10458.
Nguyen, D.; Chen, J.; Wang, Y.; Wu, G.; Park, N.; Hu, Z.; Lyu, H.; Wu, J.; Aponte, R.; Xia, Y.; et al. 2025. Gui agents: A survey. In Findings of the Association for Computational Linguistics: ACL 2025, 22522–22538.
Nong, S.; Tang, X.; Xu, J.; Zhou, S.; Chen, J.; Jiang, T.; and Xu, W. 2025. Craft-gui: Curriculum-reinforced agent for gui tasks. arXiv preprint arXiv:2508.11360.
Ouyang, L.; Wu, J.; Jiang, X.; Almeida, D.; Wainwright, C.; Mishkin, P.; Zhang, C.; Agarwal, S.; Slama, K.; Ray, A.; et al. 2022. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35: 27730–27744.
Qin, Y.; Ye, Y.; Fang, J.; Wang, H.; Liang, S.; Tian, S.; Zhang, J.; Li, J.; Li, Y.; Huang, S.; et al. 2025. Ui-tars: Pioneering automated gui interaction with native agents. arXiv preprint arXiv:2501.12326.
Rawles, C.; Li, A.; Rodriguez, D.; Riva, O.; and Lillicrap, T. 2023. Androidinthewild: A large-scale dataset for android device control. Advances in Neural Information Processing Systems, 36: 59708–59728.
Schulman, J.; Wolski, F.; Dhariwal, P.; Radford, A.; and Klimov, O. 2017. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347.
Shao, Z.; Wang, P.; Zhu, Q.; Xu, R.; Song, J.; Bi, X.; Zhang, H.; Zhang, M.; Li, Y.; Wu, Y.; et al. 2024. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300.
Shen, Y.; Zhang, J.; Huang, J.; Shi, S.; Zhang, W.; Yan, J.; Wang, N.; Wang, K.; Liu, Z.; and Lian, S. 2025. Dast: Difficulty-adaptive slow-thinking for large reasoning models. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: Industry Track, 2322–2331.
Shi, Y.; Yu, W.; Li, Z.; Wang, Y.; Zhang, H.; Liu, N.; Mi, H.; and Yu, D. 2025. Mobilegui-rl: Advancing mobile gui agent through reinforcement learning in online environment. arXiv preprint arXiv:2507.05720.
Tang, F.; Xu, H.; Zhang, H.; Chen, S.; Wu, X.; Shen, Y.; Zhang, W.; Hou, G.; Tan, Z.; Yan, Y.; et al. 2025. A survey on (m) llm-based gui agents. arXiv preprint arXiv:2504.13865.
Wang, H.; Zou, H.; Song, H.; Feng, J.; Fang, J.; Lu, J.; Liu, L.; Luo, Q.; Liang, S.; Huang, S.; et al. 2025a. Ui-tars-2 technical report: Advancing gui agent with multi-turn reinforcement learning. arXiv preprint arXiv:2509.02544.
Wang, S.; Liu, W.; Chen, J.; Zhou, Y.; Gan, W.; Zeng, X.; Che, Y.; Yu, S.; Hao, X.; Shao, K.; et al. 2024. Gui agents with foundation models: A comprehensive survey. arXiv preprint arXiv:2411.04890.
Wang, Y.; Yin, D.; Cui, Y.; Zheng, R.; Li, Z.; Lin, Z.; Wu, D.; Wu, X.; Ye, C.; Zhou, Y.; et al. 2025b. Llms as scalable, general-purpose simulators for evolving digital agent training. arXiv preprint arXiv:2510.14969.
Wei, J.; Wang, X.; Schuurmans, D.; Bosma, M.; Xia, F.; Chi, E.; Le, Q. V.; Zhou, D.; et al. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35: 24824–24837.
Wei, Z.; Yao, W.; Liu, Y.; Zhang, W.; Lu, Q.; Qiu, L.; Yu, C.; Xu, P.; Zhang, C.; Yin, B.; et al. 2025. Webagent-rl: Training web agents via end-to-end multi-turn reinforcement learning. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, 7920–7939.
Wu, Z.; Wu, Z.; Xu, F.; Wang, Y.; Sun, Q.; Jia, C.; Cheng, K.; Ding, Z.; Chen, L.; Liang, P. P.; et al. 2025. OS-ATLAS: Foundation action model for generalist GUI agents. In International Conference on Learning Representations, volume 2025, 5090–5108.
Xu, Y.; Liu, X.; Liu, X.; Fu, J.; Zhang, H.; Jing, B.; Zhang, S.; Wang, Y.; Zhao, W.; and Dong, Y. 2025. Mobilerl: Online agentic reinforcement learning for mobile gui agents. arXiv preprint arXiv:2509.18119.
Yang, R.; Wu, Q.; Wang, Z.; Chen, H.; Yang, K.; Cheng, H.; Yao, H.; Peng, B.; Zhang, H.; Gao, J.; et al. 2026. Gui-libra: Training native gui agents to reason and act with action-aware supervision and partially verifiable rl. arXiv preprint arXiv:2602.22190.
Yang, Y.; Wang, Y.; Li, D.; Luo, Z.; Chen, B.; Huang, C.; and Li, J. 2025. Aria-ui: Visual grounding for gui instructions. In Findings of the Association for Computational Linguistics: ACL 2025, 22418–22433.
Yao, S.; Zhao, J.; Yu, D.; Du, N.; Shafran, I.; Narasimhan, K.; and Cao, Y. 2022. React: Synergizing reasoning and acting in language models. arXiv preprint arXiv:2210.03629.
Ye, J.; Zhang, X.; Xu, H.; Liu, H.; Wang, J.; Zhu, Z.; Zheng, Z.; Gao, F.; Cao, J.; Lu, Z.; et al. 2025. Mobile-agent-v3: Fundamental agents for gui automation. arXiv preprint arXiv:2508.15144.
Yuan, X.; Zhang, J.; Li, K.; Cai, Z.; Yao, L.; Chen, J.; Wang, E.; Hou, Q.; Chen, J.; Jiang, P.-T.; et al. 2025. Enhancing visual grounding for gui agents via self-evolutionary reinforcement learning. arXiv preprint arXiv:2505.12370.
Zheng, Y.; Zhong, L.; Wang, Y.; Dai, R.; Liu, K.; Chu, X.; Lv, L.; Torr, P.; and Lin, K. Q. 2026. Code2world: A gui world model via renderable code generation. arXiv preprint arXiv:2602.09856.
Zhou, G.; Qiu, P.; Chen, C.; Wang, J.; Yang, Z.; Xu, J.; and Qiu, M. 2025a. Reinforced mllm: A survey on rl-based reasoning in multimodal large language models. arXiv preprint arXiv:2504.21277.
Zhou, H.; Zhang, X.; Tong, P.; Zhang, J.; Chen, L.; Kong, Q.; Cai, C.; Liu, C.; Wang, Y.; Zhou, J.; et al. 2025b. MAI-UI Technical Report: Real-World Centric Foundation GUI Agents. arXiv preprint arXiv:2512.22047.
Appendix
Additional Training Details
Hyperparameters. Table 3 lists the full hyperparameter configuration used in our experiments.
| Hyperparameter | Value |
|---|---|
| Base model | Qwen2.5-VL-3B / 7B |
| World model | Code2World-8B (frozen) |
| GPUs per node | (141GB) |
| Number of nodes | 1 |
| World model instances | 1 |
| Rollout batch size | 2 |
| Group size () | 8 |
| Max prompt length | 64,000 |
| Max response length | 8,192 |
| Max pixels | |
| Learning rate | |
| Learning rate schedule | Cosine decay |
| Warmup ratio | 0.05 |
| Gradient clip norm | 1.0 |
| PPO epochs | 1 |
| Clip ratio (low) | 0.2 |
| Clip ratio (high) | 0.3 |
| Max trajectory length | 15 |
| Total episodes | 15 |
| KL penalty | 0.01 |
| Reward: (success) | 1.0 |
| Reward: (length) | 0.5 |
| Reward: (WM call) | 0.1 |
| GPU memory utilization | 0.6 |
| temperature | 1.0 |
Table 3: WM-R1 training hyperparameters.
Distributed training setup. We use Ray for distributed coordination. Each world model instance runs on a separate Ray actor. The actor-rollout worker group uses FSDP for memory-efficient training, with vLLM handling sequence generation during the rollout phase. The vLLM engine is put into sleep mode between generation phases to reduce peak memory usage.
World model configuration. We use the pretrained Code2World-8B model (Zheng et al. 2026), frozen during training. It generates renderable HTML from the current screenshot and action, rendered to a screenshot using a headless browser.
Data curation. We curate training data by combining three Android GUI datasets: AndroidCode (Zheng et al. 2026), GUI-Odyssey (Lu et al. 2025b), and GUI-R1 (Luo et al. 2025b). All three datasets are publicly available. We filter by task difficulty: tasks with zero-shot success rates above 80% (trivially easy) or below 5% (impossibly hard) are removed. From the filtered pool, we randomly sample 2000 examples, ensuring the training distribution focuses on intermediate-complexity tasks where world-model feedback is most informative.
Reward function details. Our reward function combines three components as described in the main paper:
-
Success reward (+1 if the task is completed as judged by an LLM comparing the final trajectory against the reference solution; 0 otherwise), weighted by .
-
Length reward encourages efficient trajectories by penalizing unnecessarily long ones, following the DAST approach (Shen et al. 2025; Lu et al. 2025c), weighted by . The length budget is a mixture of the reference trajectory length and the maximum allowed length, with the reward computed based on the normalized deviation from this budget.
-
WM call reward regulates the agent's usage of world model simulation by rewarding trajectories that use the group-average number of
<call_wm>invocations, weighted by . Trajectories that overuse or under-use the world model relative to the group receive lower rewards.
The composite reward is . GRPO advantages are computed group-relatively from these composite rewards.
Evaluator model and prompt design. The success reward is computed by an LLM-based evaluator. We use GPT-4o (version gpt-4o-2024-08-06) as the judge model with temperature 0 to maximize determinism. The evaluator receives a structured prompt containing four fields: (1) the original task instruction , (2) the reference solution trajectory (ground-truth action sequence), (3) the agent's executed trajectory (action sequence with reasoning traces), and (4) the final simulated screenshot . The judge is instructed to output a structured JSON response with two fields: a binary success flag (1 if the task objective is achieved, 0 otherwise) and a reason field providing a brief justification.
Calibration procedure. We calibrate the LLM evaluator on a held-out set of 200 human-annotated trajectories covering diverse task types (single-app operations, cross-app navigation, form filling, search tasks). For each trajectory, three independent annotators provide binary success/failure judgments, achieving a Fleiss' of 0.89 (near-perfect agreement). We use majority vote as ground truth. The LLM evaluator achieves 93.5% agreement with this human consensus on the calibration set. To further reduce variance, we average two independent LLM evaluations per trajectory; the inter-evaluation agreement rate is 96.2%, and disagreements are resolved by majority vote with the reference trajectory.
Alignment with benchmark metrics. For AndroidWorld, we adopt the benchmark's official evaluation protocol, which combines programmatic state checks (e.g., verifying specific UI element states) with LLM-based judgment for tasks lacking deterministic success criteria. On ScreenSpot-Pro, ScreenSpot-V2, and AndroidControl, success is determined by exact coordinate or action type matching against ground truth, requiring no LLM evaluation. To validate consistency, we compare the LLM judge against programmatic string/attribute matching on a subset of 100 AndroidWorld tasks with deterministic success criteria: the agreement rate is 97.0%, with disagreements concentrated on borderline cases where the agent partially completes the task. The same evaluator configuration is applied uniformly to all methods, ensuring that comparative results are not confounded by evaluation differences.
WM-R1 Training Algorithm
Algorithm 1 presents the complete WM-R1 training loop.
Algorithm 1 WM-R1 Training Loop
Require: Policy , world model , episodes , group size , batch size
1: for episode to do
2: for each batch of task instructions do
3: Initialize simulated states for each task and rollout
4: for step to do
5: for each rollout do
6: Generate initial thought from
7: while thought contains <call_wm> do
8: Extract action from <call_wm> tag
9:
10: Append System (WM) observation with
11: Continue thought from
12: end while
13: if thought ends with <action> then
14: Extract final action
15: else
16: Mark trajectory as complete
17: end if
18: end for
19: if all rollouts complete then
20: break
21: end if
22: end for
23: Compute composite rewards for all trajectories (main paper, Eq. 1)
24: Compute GRPO advantages and update (main paper, Eqs. 2–3)
25: end for
26: end for
Parameter Sensitivity Analysis
We evaluate the sensitivity of WM-R1 to key hyperparameters on the AndroidWorld validation set using Qwen2.5-VL-7B. Table 4 reports results when varying each parameter individually while holding others at the default configuration.
WM-R1 shows moderate sensitivity to hyperparameter choices, with no single parameter causing catastrophic degradation:
Reward coefficients. The success reward weight is the most influential of the three: setting it too low (0.5) dilutes
| Parameter | Value | AndroidWorld |
|---|---|---|
| Reward (success) | 0.5 | 37.2 |
| 1.0 (default) | 39.8 | |
| 2.0 | 38.5 | |
| Reward (length) | 0.1 | 36.8 |
| 0.3 | 38.1 | |
| 0.5 (default) | 39.8 | |
| Reward (WM call) | 0.1 (default) | 39.8 |
| 0.2 | 38.9 | |
| 0.4 | 37.6 | |
| Group size | 4 | 37.5 |
| 8 (default) | 39.8 | |
| 16 | 39.2 | |
| 32 | 38.8 | |
| KL penalty | 0.005 | 36.5 |
| 0.01 (default) | 39.8 | |
| 0.05 | 37.8 | |
| Max trajectory length | 10 | 37.2 |
| 15 (default) | 39.8 | |
| 20 | 40.1 | |
| Learning rate | 37.8 | |
| (default) | 39.8 | |
| 35.8 |
Table 4: Parameter sensitivity analysis on AndroidWorld (Qwen2.5-VL-7B). The default configuration is highlighted in each row.
the primary training signal, while setting it too high (2.0) makes the length and WM call rewards negligible. The length reward shows a clear optimum at 0.5 — too low (0.1) allows bloated trajectories, too high over-penalizes necessary multi-step reasoning. The WM call reward similarly peaks at 0.1, confirming that moderate regularization is optimal: the agent should use the world model as a tool, not as a crutch.
Group size. Performance peaks at , consistent with the original GRPO findings. Smaller groups (4) provide insufficient variance for advantage estimation, while larger groups (16, 32) dilute the group-relative signal and increase memory overhead without corresponding gains.
KL penalty. The KL penalty is critical for training stability. Too small (0.005) allows the policy to drift too far from the reference, producing malformed outputs. Too large (0.05) constrains the policy too tightly, limiting the exploration needed to discover better reasoning strategies.
Max trajectory length. Increasing from 10 to 15 yields a notable gain, as longer trajectories allow the agent to complete more complex multi-step tasks. Extending to 20 provides minimal additional benefit, suggesting that 15 steps captures the majority of useful reasoning depth for AndroidWorld tasks.
Learning rate. The optimal learning rate is . A higher rate causes training instability and reward oscillation, while a lower rate slows convergence, leaving the policy under-trained after 15 episodes.
Overall, the sensitivity analysis demonstrates that WM-R1 is robust to reasonable hyperparameter variation, with the default configuration representing a stable optimum across all dimensions.
Computational Cost Analysis
Table 5 reports the computational cost of training and inference for WM-R1 compared with representative baselines.
| Method | GPU | Train hours | Env required | Inference +overhead |
|---|---|---|---|---|
| UI-R1-7B (no env) | 1×H200 | 7.8 | No | — |
| MobileGUI-RL-7B | 1×H200 | 36.5 | Yes | — |
| WM-R1-3B | 1×H200 | 8.4 | No | +1.6s/traj |
| WM-R1-7B | 1×H200 | 11.2 | No | +2.3s/traj |
Table 5: Computational cost comparison. “GPU” denotes hardware used; “Train hours” is wall-clock training time for the full 15-episode curriculum on the 2000-task dataset; “Env required” indicates whether a live Android environment is needed during training; “Inference +overhead” reports the additional latency per trajectory from world model calls at inference time relative to a standard generate-and-act baseline. UI-R1 (no env) refers to the offline GRPO variant that trains on pre-collected trajectories without real-environment interaction during training.
Training cost breakdown. WM-R1-7B completes 15 training episodes on the 2000-task dataset in 11.2 wall-clock hours on a single NVIDIA H200 (141GB). The cost decomposes into: (i) world model simulation (~45% of total time): Code2World-8B generates renderable HTML from each (screenshot, action) pair, followed by headless-browser rendering at 1080 × 2400 resolution (~1.1s per frame); (ii) policy generation (~35%): the agent model generates reasoning traces and action predictions via vLLM with the sleep-mode optimization; (iii) training update (~20%): FSDP-based forward/backward pass and parameter update.
Comparison with UI-R1 (no env). UI-R1-7B (Lu et al. 2025c), which uses offline GRPO on pre-collected trajectories without real-environment interaction during training, completes training in 7.8 GPU-hours on the same hardware and dataset. The additional 3.4 hours (1.44×) for WM-R1 comes from world model simulation during rollouts. In return, WM-R1 achieves +9.0 points on AndroidWorld (39.8 vs. 30.8), representing a favorable cost-performance trade-off. Notably, online RL methods such as MobileGUI-RL (Shi et al. 2025) require a live Android simulator environment with real device resets, consuming ~36.5 GPU-hours on the same hardware and requiring substantial infrastructure for environment management. WM-R1 eliminates all real-environment dependencies while running on a single GPU.
Inference overhead. At inference time, WM-R1 agents invoke the world model an average of 1.8 times per trajectory, adding approximately 2.3 seconds of latency per trajectory for the 7B model (1.6 seconds for 3B). This overhead is modest relative to typical task completion times (30–90 seconds per trajectory) and is offset by the substantial accuracy improvements demonstrated in the main results (Table 1 of the main paper).
Generalization to Other Base Models (Qwen3-VL)
To verify that WM-R1’s benefits are not specific to the Qwen2.5-VL architecture, we conduct additional experiments using the Qwen3-VL model family (Bai et al. 2025a) at the 4B and 8B scales.
Experimental setup. We apply the identical WM-R1 training configuration (Table 3) to Qwen3-VL-4B and Qwen3-VL-8B, using the same 2000-task curated dataset, world model (Code2World-8B), and reward weights. All other hyperparameters remain unchanged. Evaluation follows the same protocol as the main experiments.
| Method | AW | AW-H | GO | GO-H |
|---|---|---|---|---|
| 4B scale | ||||
| Qwen3-VL-4B (ZS) | 24.8 | 19.5 | 14.2 | 9.1 |
| Qwen3-VL-4B + CW | 31.2 | 25.4 | 21.5 | 15.8 |
| UI-R1-4B | 26.5 | 21.2 | 17.8 | 12.4 |
| WM-R1-4B | 38.2 | 31.5 | 30.2 | 23.4 |
| 8B scale | ||||
| Qwen3-VL-8B (ZS) | 28.5 | 22.8 | 17.5 | 11.6 |
| Qwen3-VL-8B + CW | 34.8 | 28.6 | 24.2 | 18.3 |
| UI-R1-8B | 35.2 | 28.5 | 25.8 | 19.6 |
| WM-R1-8B | 44.5 | 37.2 | 35.8 | 28.5 |
Table 6: WM-R1 results with Qwen3-VL base models on long-horizon benchmarks. AW: AndroidWorld, GO: GUI-Odyssey, H: Hard subset. Bold: best per scale.
Results. Table 6 shows that WM-R1 delivers consistent improvements across both Qwen3-VL scales. WM-R1-8B achieves 44.5 on AndroidWorld and 35.8 on GUI-Odyssey, surpassing UI-R1-8B (35.2 / 25.8) by +9.3 and +10.0 points respectively. At the 4B scale, WM-R1-4B reaches 38.2 on AndroidWorld, outperforming UI-R1-4B (26.5) by +11.7 points. The relative improvement pattern mirrors the Qwen2.5-VL results: gains are largest on Hard subsets and long-horizon tasks, confirming that world-model-simulated training is architecture-agnostic and benefits from stronger base models.
Choice of Qwen2.5-VL for main experiments. We use Qwen2.5-VL as the base model in the main experiments to ensure direct comparability with the majority of recent GUI agent work: UI-R1 (Lu et al. 2025c), MobileGUI-RL (Shi et al. 2025), GUI-R1 (Luo et al. 2025b), and numerous other baselines in the main results table all adopt Qwen2.5-VL as their standard backbone. Using the same base model isolates the contribution of the training framework from differences in visual-language pretraining. The Qwen3-VL results above demonstrate that WM-R1 generalizes to newer architectures and in fact benefits from their improved capabilities, suggesting that future work can achieve further gains by combining WM-R1 with advancing foundation models.
Limitations
Despite its strengths, WM-R1 has several limitations:
Dependence on world model fidelity. The training signal is entirely derived from simulated state transitions produced by Code2World. While the world model achieves high visual fidelity for common UI transitions (button clicks, page navigation, form filling), it may struggle with highly dynamic or interactive elements (animations, real-time data updates, third-party widgets). Inaccurate world model predictions can mislead the agent during training, potentially causing it to learn suboptimal policies that do not generalize to real environments.
Limited to discrete action spaces. The current formulation assumes a discrete set of admissible actions at each step (click coordinates, typed text, scroll directions). Extending WM-R1 to continuous control settings (e.g., free-form cursor movement, drag-and-drop gestures) would require modifications to both the world model and the reward design.
Broader Impact
WM-R1 enables more efficient training of GUI agents, reducing the need for real-environment interaction and making it more feasible to train capable agents on commodity hardware, potentially democratizing access to agent-building tools for researchers with limited computational resources. The massively parallel simulation approach substantially reduces energy consumption compared to real-environment RL, as computation is concentrated on simulated transitions rather than costly environment step executions.
The world-model-simulated training paradigm also improves the interpretability of agent decision-making: the chain-of-thought reasoning stream explicitly records when and how the agent invokes the world model to evaluate candidate actions, providing a transparent signal that explains the agent's deliberation process. Beyond efficiency gains, the improved grounding and reasoning accuracy demonstrated on AndroidWorld and other mobile benchmarks suggests potential for practical applications in accessibility automation, repetitive workflow automation, and AI-assisted software testing. The deterministic nature of simulated transitions enhances reproducibility compared to methods relying on real-environment interaction, where non-deterministic state changes can make results difficult to replicate.