How Complete Must an Environment Be to Train a Capable GUI Agent?

Jingxing Wang, Teng Wang, Xingyu Lou, Zihan Guo, Jun Wang, Weiwen Liu, Weinan Zhang, Jianghao LinarXiv 2026

TL;DR

Building high-fidelity executable environments for GUI agents is expensive, leading researchers to often simplify rewards, data, or features. This paper reveals a counterintuitive reality: while cutting reward and data coverage hurts performance, selectively pruning application features actually improves agent training by preventing the reinforcement of long, suboptimal "detour" successes that otherwise erode the agent's broader skill set.

What Problem Does This Paper Address?

Training autonomous agents to navigate Graphical User Interfaces (GUIs)—like mobile apps or websites—requires executable environments. However, building these environments is a massive engineering undertaking. To save time and cost, developers often make "construction choices" that reduce environment completeness:

  1. Reward Coverage: Only rewarding a specific "gold standard" path rather than any successful outcome.
  2. Data Coverage: Stripping away "extra" data (like unrelated emails or calendar events) to focus only on task-relevant records.
  3. Feature Coverage: Implementing only the specific app functions needed for a task (e.g., implementing "Alarm" but not "Stopwatch").

Until now, these choices were made based on engineering intuition. This paper systematically investigates how each dimension of completeness affects the final capability of a trained agent when it is deployed back into a "Full," unpruned environment.

Methods

The authors used MobileGym, a platform for mobile app interaction, to train a Qwen3-VL-4B-Instruct model using Reinforcement Learning (specifically a variant of GSPO). They systematically varied the environment along the three dimensions mentioned above:

  • Reward: Comparing a verifier that rewards any successful state vs. one that only rewards a single reference trajectory.
  • Data: Testing different levels of record filtering (R0, R1, R2) where varying amounts of unrelated application data were kept.
  • Features: Testing functional pruning (F0, F1) where dispensable application modules were disabled.

Crucially, regardless of the training environment, all agents were evaluated in the Full environment to see how well their learned skills transferred to the real world.

Figure 1. Three dimensions of GUI environment construction. Top: reward coverage. A verifier rewards long-press deletion but not an edit-sheet solution that reaches the same goal. Middle: data coverage. R0/R1/R2 retain the records the task needs and vary the unrelated ones. Bottom: feature coverage. Full/F0/F1 expose different application functions. Policies train in the reduced environments and are evaluated in Full.

Datasets

The study utilizes the MobileGym benchmark, consisting of:

  • 192 training templates across various mobile applications (Clock, Notes, Calendar, WeChat, etc.).
  • 155 evaluation templates, including 132 In-Distribution (ID) templates with new instances and 23 Out-of-Distribution (OOD) templates.

Key Insights and Ideas

  • Narrow Rewards Stifle Exploration: Restricting rewards to a single reference path (Path-restricted) dropped success by over 10 points. It penalizes valid alternative solutions, effectively discarding useful experience.
  • Realistic "Noise" is Essential: Removing unrelated records (Data Coverage) also lowered success. Agents trained on "clean" environments struggle when faced with the clutter of a real application.
  • The "Detour" Trap: Surprisingly, pruning unneeded features improved success from 51.61% to 56.13%. The authors discovered this isn't because the tasks themselves become easier, but because it changes the training signal for other tasks.
  • Length-Weighting Bias: In standard RL (using response averaging), longer successful episodes contribute more to the gradient update. In a full environment, agents often find "detour" successes—long, wandering paths that eventually reach the goal. These detours carry heavy weight in training and cause the model to "forget" efficient strategies for other tasks. Pruning features removes these detours, forcing the model to stay focused.
Figure 3. Episode weighting changes the environment effect. Left: response averaging gives longer episodes more advantage-bearing terms, and episode balancing removes this dependence with weights C/Ti. Right: four continuations start from the same F0 step 12 model. Counts show successes on 153 retention instances evaluated in Full. Weighting reverses the F0–Full gap, yielding an 18.30-point interaction.

Key Results

The authors synthesized their findings into MobileGym-Lite, a training environment that keeps reward and data coverage complete but selectively prunes unneeded features.

  • Performance: MobileGym-Lite achieved 55.48% success in the full environment, significantly outperforming the agent trained in the Full environment (51.61%).
  • Efficiency: The Lite version reduced application source code by ~14% per pruned task and required ~33% fewer tokens for an LLM-based coding agent to rebuild the environment compared to the full version.
  • Generalization: The gains from feature pruning were most prominent on tasks whose environments were not modified, proving that pruning acts as a regularizer for the shared policy.

Limitations and Future Work

  • Model Specificity: The study primarily uses Qwen3-VL-4B-Instruct; it remains to be seen if these dynamics shift significantly with much larger or smaller models.
  • Simulator Dependency: The results are tied to the MobileGym simulator. While the insights about RL objectives and detours are likely general, the specific "Lite" restorations might vary across different OS benchmarks (like AndroidWorld or OSWorld).
  • Future Direction: The authors suggest that instead of just pruning features, future work could explore "episode balancing" as a purely algorithmic way to mitigate the length-weighting bias without needing to modify the environment at all.

Summary updated

Abstract

Graphical user interface (GUI) agents are widely trained in executable GUI environments. To lower cost, build environments in batches, and reduce manual effort, each work trades away part of the environment through its construction choices. We describe these choices along three dimensions: reward coverage, the goal-reaching trajectories the verifier rewards; data coverage, the application data the agent is exposed to beyond what the task reads or writes; and feature coverage, the application features beyond what the task uses. Existing works set each dimension on engineering grounds, but they do not measure its effect on training. How complete must an environment be to train a capable agent, and along which dimensions? In MobileGym, we adjust each dimension separately, train Qwen3-VL-4B-Instruct, and evaluate every policy in the original full environment. A verifier that rewards only one reference path lowers success by 10.53 points, and removing unneeded records also lowers success. Pruning unneeded features instead raises success from 51.61% to 56.13%, entirely on tasks whose environments it left unchanged. The gain reverses when each episode is weighted equally and vanishes when only episodes on the pruned tasks are balanced. Without pruning, length weighting there reinforces long detour successes that erode skills on other tasks. Following these findings, we build MobileGym-Lite, which keeps reward and data coverage complete and prunes unneeded features. It outperforms Full in the full environment (55.48% versus 51.61% success) with lower construction cost.
BibTeX
@misc{wang2026how,
  author = {Jingxing Wang and Teng Wang and Xingyu Lou and Zihan Guo and Jun Wang and Weiwen Liu and Weinan Zhang and Jianghao Lin},
  title = {{How Complete Must an Environment Be to Train a Capable GUI Agent?}},
  year = {2026},
  eprint = {2611.23946},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.23946},
}
Figure