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

This paper tackles the challenge of limited high-quality data for training GUI agents by introducing a "mid-training" phase. By pre-training Vision-Language Models (VLMs) on diverse, data-rich, non-GUI tasks, they achieve significant improvements in GUI agent performance, demonstrating that reasoning skills learned in other domains can effectively transfer to complex visual interface interactions.

What Problem Does This Paper Address?

Building effective GUI agents that can automate complex digital tasks is a major goal for improving productivity. However, a significant bottleneck is the scarcity of high-quality, diverse trajectory data that captures how agents should interact with graphical user interfaces. Existing VLMs, while powerful, often struggle with the sequential planning and reasoning required for GUI tasks, leading to subpar performance. The authors aim to bridge this gap by exploring how to leverage more readily available, data-rich, non-GUI datasets to enhance the foundational capabilities of these agents before fine-tuning them on limited GUI-specific data.

Methods

The core of this work is the introduction of a mid-training stage. This stage occurs after the initial pre-training of a VLM (like Qwen2-VL-7B-Instruct) but before the fine-tuning on GUI trajectory data. The authors experiment with training VLMs on a variety of non-GUI tasks, including:

  • Vision-and-Language Modality Tasks: Chart/Document QA, Non-GUI Perception, GUI Perception, Web Screenshot2Code, Multi-modal Math, Multi-round Visual Conversation, Non-GUI Agent Trajectories.
  • Language Modality Tasks: MathInstruct, Olympiad Math, CodeI/O, Web Knowledge Base.

The key idea is that by exposing the VLM to these diverse reasoning-intensive tasks, it develops stronger generalizable planning and reasoning abilities that can then be applied to GUI tasks. They also propose a combined dataset, GUIMid, composed of the most effective mid-training tasks. The training process involves a two-stage approach: mid-training followed by fine-tuning on GUI trajectory data, integrated under a single optimizer.

Datasets

The paper utilizes a combination of existing and implicitly used datasets:

  • Mid-Training Datasets (Non-GUI):
    • Vision-and-Language: InfographicVQA, Ureader QA, MAmmoTH-VL, MPDocVQA, MathV360k, Ureader OCR, DUE, MultiUI, Web2Code, SVIT, AlfWorld.
  • Language: MathInstruct, NuminaMath, CodeI/O, Synatra, AgentTrek.
  • Post-Training Datasets (GUI Trajectories): OS-Genesis (Web & Mobile), MM-Mind2Web, VisualWebArena, Aguvis.

The authors also introduce GUIMid, a curated dataset of 300K examples from the most effective mid-training domains.

Key Insights and Ideas

  • Task Generalization is Powerful: The most striking insight is how effectively skills learned from non-GUI tasks can generalize to GUI agents. This challenges the assumption that only GUI-specific data is valuable for training.
  • Mathematical Reasoning is a Superstar: Both text-only and multimodal mathematical reasoning tasks provided the most significant performance boosts. This suggests that abstract reasoning skills are highly transferable and crucial for complex planning.
  • Text-Only Math is Surprisingly Effective: The paper highlights that even text-based mathematical reasoning data significantly improved performance on multimodal GUI tasks, underscoring the power of cross-modal generalization.
  • GUI Perception Data Has Limited Impact: Contrary to intuition, data specifically focused on GUI perception (e.g., recognizing UI elements) had a comparatively smaller impact on final performance. This suggests that existing VLMs might already possess strong visual perception capabilities, and the bottleneck lies elsewhere.
  • Mid-training is Key to Overcoming Data Scarcity: The proposed mid-training strategy is a practical solution to the data bottleneck, enabling agents to achieve higher performance with less GUI-specific data.

Key Results

  • Substantial Performance Gains: Mid-training with selected non-GUI tasks led to significant improvements. For example, multimodal mathematical reasoning boosted performance on AndroidWorld by 6.3%.
  • Text-based Math Dominance: Text-only MathInstruct data improved WebArena performance by 5.6% and AndroidWorld by 5.4%.
  • Optimized Dataset (GUIMid): The curated GUIMid dataset resulted in absolute performance gains of 8.0% on WebArena and 12.2% on AndroidWorld.
  • Cross-Domain Transfer: Language-only tasks like Olympiad Math and CodeI/O showed remarkable effectiveness for multimodal GUI tasks, outperforming many vision-language tasks.
  • Efficiency: The GUI Mid + Post-training approach achieved comparable or better performance than the baseline while using only 20% of the post-training data.

Limitations and Future Work

  • Domain Gap Instability: Mixing GUI trajectory data during mid-training can sometimes lead to training instability due to domain gaps, although mixing generally improves performance.
  • GUI Perception Data: The limited impact of GUI perception data suggests future work could explore more targeted ways to leverage it or focus on other areas.
  • Future Work: The authors plan to open-source their data, models, and training recipes to facilitate further research in this domain. They also implicitly suggest exploring other data-rich, reasoning-intensive domains for mid-training.

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