Breaking the Data Barrier -- Building GUI Agents Through Task Generalization

Junlei Zhang, Zichen Ding, Chang Ma, Zijie Chen, Qiushi Sun, Zhenzhong Lan, Junxian He

TL;DR

Pure vision-based GUI agents are heavily bottlenecked by the scarcity of high-quality interaction trajectories. This paper breaks through this data barrier by introducing a "mid-training" stage that leverages abundant, reasoning-heavy datasets (like math and coding) before fine-tuning on GUI tasks. This approach yields massive performance boosts, proving that abstract reasoning capabilities generalize remarkably well to digital agent planning.

What Problem Does This Paper Address?

Building autonomous GUI agents that can navigate websites or mobile apps using only screenshots (a pure-vision approach) is incredibly challenging. The hardest part isn't seeing the screen, but visual planning—the ability to break down a complex user goal (e.g., "check my GitHub repositories with the most stars") into a sequence of precise, step-by-step actions.

While large Vision-Language Models (VLMs) have the potential to act as these agents, they often struggle with multi-step planning and error recovery. Unfortunately, high-quality GUI trajectory data is scarce, expensive to annotate, and difficult to synthesize reliably. The authors tackle a fundamental question: How can we improve the agentic and planning abilities of VLMs using scalable, non-GUI data sources?

Methods

The authors propose a two-stage training framework:

  1. Mid-Training: Before exposing the model to specific GUI tasks, the VLM is trained on data-rich, reasoning-intensive tasks from outside the GUI domain. Crucially, to prevent the model from forgetting its agentic nature during this phase, a small amount of GUI trajectory data is mixed directly into the mid-training data to stabilize the optimization process.
  2. Post-Training: The model is fine-tuned on a limited set of actual web and mobile GUI trajectories.

The agent architecture splits the problem into a planner model (which outputs a high-level text thought and action description) and a grounding model (which translates that description into exact pixel coordinates).

Figure 1: Overview of the mid-training and fine-tuning process. Left: We first train the GUI agent on mid-training data, primarily from non-GUI domains, to investigate whether the enhanced capabilities can generalize to GUI agent tasks; Right: We perform post-training on GUI trajectory data.

Datasets

The authors systematically evaluate 11 different mid-training domains across two modalities:

  • Vision-and-Language Modality: Chart/Document QA, Non-GUI Perception (OCR), GUI Perception (MultiUI), Web Screenshot2Code (Web2Code), Multi-modal Math (Mavis), Visual Conversation (SVIT), and Non-GUI Agent Trajectories (AlfWorld).
  • Language Modality: MathInstruct, Olympiad Math (NuminaMath), CodeI/O, and Web Knowledge Base.

By combining the top-performing domains, they introduce GUIMid, a curated 300k-sample mixture dataset consisting of samples from MathInstruct, CodeI/O, Olympiad Math, and Multi-modal Math.

For post-training and evaluation, they utilize high-quality trajectories from OS-Genesis, MM-Mind2Web, VisualWebArena, and Aguvis, testing final performance on the interactive benchmarks WebArena and AndroidWorld.

Key Insights and Ideas

  • Cross-Modal Reasoning Transfer: Remarkably, training on pure-text mathematical datasets significantly improves a visual agent's performance on web and mobile interfaces. Abstract logical reasoning transfers across domains and modalities, meaning text-based problem solving directly enhances visual planning.
  • The Perception Illusion: Counter to common intuition, adding GUI perception data (like bounding boxes or screenshot-to-code tasks) provides almost no benefit to final agent performance. Modern VLMs are already excellent at basic perception; the real bottleneck is sequential planning and error correction.
  • The Necessity of Data Mixing: Directly switching from text-heavy mid-training to visual GUI trajectories causes severe training instability and loss spikes. Co-training (mixing GUI data into the mid-training phase) is essential for smooth optimization.
Case study showing how mid-training helps the agent recover from incorrect states

Key Results

  • Models mid-trained on the combined GUIMid dataset achieved absolute success rate gains of 8.0% on WebArena and 12.2% on AndroidWorld over the post-training-only baseline.
  • GUIMid achieved a 21.2% success rate on AndroidWorld, setting a new state-of-the-art for pure-visual settings.
  • Text-only math data alone (MathInstruct) boosted WebArena performance by 5.6% and AndroidWorld by 5.4%, underscoring the power of cross-domain knowledge transfer.

Limitations and Future Work

The authors note a few challenges and constraints:

  • Evaluation Instability: Interactive web benchmarks can suffer from live website updates, which can invalidate tasks over time (prompting the authors to rely on localized Docker setups for WebArena).
  • Hardware Constraints: Due to memory demands during the VLM training process, the batch size per device was limited to 1 with a gradient accumulation of 4.
  • Future Directions: The paper opens up promising avenues for exploring how other out-of-domain mid-training techniques can be systematically scaled and tailored specifically for digital agents.

Summary updated

BibTeX
@inproceedings{zhang2025breaking,
  author = {Junlei Zhang and Zichen Ding and Chang Ma and Zijie Chen and Qiushi Sun and Zhenzhong Lan and Junxian He},
  title = {{Breaking the Data Barrier -- Building GUI Agents Through Task Generalization}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=QDtORaZt8K},
}
Figure