MobileGUI-RL: Advancing Mobile GUI Agent through Reinforcement Learning in Online Environment

Yucheng Shi, Wenhao Yu, Zaitang Li, yonglingwang, Hongming Zhang, Ninghao Liu, Dong Yu · Submission to ICLR 2026 · Rejected

TL;DR

MobileGUI-RL introduces an online reinforcement learning framework that trains vision-based mobile GUI agents directly inside live Android emulator environments. By combining reverse-engineered self-exploration tasks, a text-based world model curriculum filter, and a trajectory-aware adaptation of Group Relative Policy Optimization (GRPO), the approach allows a 32B model to outperform both GPT-4o and a 72B baseline on complex mobile device benchmarks using only 436 training tasks.

What Problem Does This Paper Address?

Vision-language models (VLMs) can theoretically operate smartphone apps by looking at screenshots and predicting actions like clicks, swipes, or text entry. However, most existing models rely heavily on supervised fine-tuning (SFT) or offline reinforcement learning over static, pre-recorded human trajectories.

This offline paradigm has severe drawbacks:

  • Static datasets are labor-intensive and expensive to annotate.
  • Agents easily overfit to rigid UI templates and brittle interaction sequences.
  • When dynamic pop-ups, updated app layouts, or unexpected errors appear, offline-trained policies fail to adapt.

Online RL allows agents to learn directly from trial-and-error interaction, but it brings steep systems hurdles (slow emulator rendering, compute bottlenecks) and algorithmic challenges (long-horizon credit assignment, sparse rewards, and uninformative gradient updates when all rollouts in a batch either pass or fail).

Methods

MobileGUI-RL establishes an end-to-end framework to make online RL scalable, stable, and data-efficient:

[ Parallel Android Emulators (CPUs) ] ──> Trajectories ──> [ GPU Policy Update ]
                 ▲                                                 │
                 └────────────── Rollouts / Policy ────────────────┘
  1. Scalable Asynchronous Architecture: Trajectory generation runs across batched, parallel Android Virtual Devices (AVDs) on CPU instances, fully decoupled from policy optimization running asynchronously on GPUs.
  2. Self-Exploration with Reverse Task Synthesis: An exploration agent takes heuristic random walks through mobile apps. GPT-4o then reverse-engineers a natural-language goal from the observed state transitions.
  3. Text-Based World Model Task Filtering & Curriculum: Raw synthetic tasks are often ambiguous or impossible. An LLM-based textual world model simulates candidate tasks before rollout, decoupling visual grounding errors from pure planning feasibility. Tasks are admitted only if solvable within a step budget ($T_{\max}$), and their simulated step length forms an automatic easy-to-hard curriculum.
  4. MobGRPO (Trajectory-Aware Policy Optimization):
  5. Trajectory-Level Advantage: A single scalar advantage is assigned across every step in an episode, bypassing noisy step-wise credit assignment.
  6. Multi-Component Composite Reward: Rewards are scored using a VLM oracle (Qwen2.5-VL-72B). Successful runs are scaled by an exponential efficiency decay factor ($e^{-\lambda |\tau|}$) to penalize unnecessarily long paths, while failed runs receive a penalty proportional to how prematurely the agent gave up.
  7. Degenerate Batch Filtering: Batches where every trajectory fails are dropped to avoid vanishing gradient signals.

Datasets

  • Training: 436 curated, solvable synthetic mobile GUI navigation tasks discovered through self-exploration (pruned down from 1,251 initial candidates).
  • Evaluation Benchmarks:
  • AndroidWorld (AW): Standard dynamic benchmark executing live tasks on an Android environment.
  • Android-in-the-Wild General (AITW-Gen): Curated down to 300 feasible, sandboxed tasks (removing operations requiring external app installation).
  • Android-in-the-Wild WebShop (AITW-Web): Deduplicated and filtered to 150 unique web-navigation tasks.

Key Insights and Ideas

  • Smarter curriculum beats training stability: Uniformly sampling easy and hard tasks gives flat, stable training reward curves, but curriculum ordering (easy tasks first) yields far higher final accuracy. Mastering fundamental primitives on simple tasks early prevents the agent from destabilizing when confronted with complex, multi-step tasks later.
  • Rewarding efficiency fixes GRPO plateaus: In standard GRPO with binary outcomes ($0$ or $1$), if all sampled rollouts succeed, the relative advantage collapses to zero and halts policy updates. Introducing an exponential step-count decay factor ($e^{-\lambda |\tau|}$) preserves gradient variance among successful trajectories and encourages minimal, human-like interaction paths.
  • High data efficiency via online exploration: Achieving state-of-the-art results required only 436 diverse tasks trained over a single epoch, contrasting sharply with prior models that required tens of billions of pre-training tokens.

Key Results

Experiments conducted on Qwen2.5-VL-7B and Qwen2.5-VL-32B showed marked gains across all evaluation benchmarks:

Model AndroidWorld (AW) AITW-Gen AITW-Web
Baselines
GPT-4o 34.5% — —
Claude Computer Use 27.9% — —
UI-TARS-7B 33.0% 48.0% 16.7%
Qwen2.5-VL-72B 35.0% 51.3% 31.3%
Ours
MobileGUI-7B 30.0% (+8.0 vs base) 65.3% (+16.3 vs base) 22.7% (+2.7 vs base)
MobileGUI-32B 44.8% (+13.3 vs base) 58.0% (+15.3 vs base) 30.7% (+6.0 vs base)
  • State-of-the-Art on AndroidWorld: MobileGUI-32B reached 44.8%, outperforming the much larger base model Qwen2.5-VL-72B (35.0%) and GPT-4o (34.5%).
  • Component Ablations (AW Success Rate):
  • Removing task filtering dropped 32B performance from 44.8% to 41.0%.
  • Removing curriculum ordering caused a massive drop from 44.8% to 34.0%.
  • Removing the decaying reward dropped performance to 35.5%.

Limitations and Future Work

  • Evaluation Oracle Dependency: Episode outcomes depend on a large VLM judge (Qwen2.5-VL-72B) examining final screenshots, which can inherit evaluation biases or errors on subtle visual changes.
  • Sandboxed Action Constraints: Certain real-world system tasks (such as downloading/installing arbitrary third-party APKs or handling complex biometric authentications) were excluded during benchmark curation due to sandbox restrictions.
  • Scaling Synthetic Discovery: While 436 tasks proved remarkably effective, expanding exploration across hundreds of diverse third-party applications and cross-app workflows remains an open challenge.

Summary updated

BibTeX
@misc{shi2025mobilegui,
  author = {Yucheng Shi and Wenhao Yu and ZAITANG LI and yonglingwang and Hongming Zhang and Ninghao Liu and Dong Yu},
  title = {{MobileGUI-RL: Advancing Mobile GUI Agent through Reinforcement Learning in Online Environment}},
  year = {2025},
  eprint = {2507.05720},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.05720},
}
Figure