TongUI: Building Generalized GUI Agents by Learning from Multimodal Web Tutorials

Bofei Zhang, Zirui Shang, Zhi Gao, Wang Zhang, Rui Xie, Xiaojian Ma, Tao Yuan, Xinxiao Wu, Song-Chun Zhu, Qing LiarXiv 2025 · DOI

Abstract

TongUI is a novel framework that converts millions of multimodal web tutorials—including YouTube videos and WikiHow articles—into structured trajectory data for training GUI agents. By releasing GUI-Net-1M, the largest open-source dataset of its kind with 1 million trajectories, the authors have developed agents that significantly outperform existing baselines in navigating and interacting with diverse operating systems and applications.

Introduction: The Challenge of Generalized GUI Agents

Building a "Generalized GUI Agent"—an AI capable of navigating any software on any device—is a primary goal of digital automation. However, these agents are notoriously data-hungry. Researchers have historically faced a "quality vs. scale" dilemma: manual annotation is high-quality but expensive and slow, while synthetic data often lacks the messy diversity of real-world usage. Furthermore, existing datasets are frequently siloed into specific platforms (e.g., Android-only). There is a critical need for a massive, cross-platform dataset capturing how humans solve tasks across Windows, macOS, Linux, iOS, and Android.

The TongUI Framework

The TongUI framework treats the internet as a massive, pre-labeled training ground. The pipeline consists of four main stages:

  1. Tutorial Crawling: LLMs expand "seed tasks" into thousands of search queries to scrape content from platforms like YouTube, Bilibili, WikiHow, and Baidu Experience.
  2. Multimodal Processing:
    • Textual: Whisper (ASR) transcribes video audio, and LLMs summarize steps into "rough descriptions."
    • Visual: GPT-4o-mini distinguishes screenshots from noise, and the MOG2 algorithm detects significant UI changes.
  3. Trajectory Generation: A zero-shot agent (UI-TARS) translates tutorial screenshots and descriptions into specific "thoughts" and "actions" (clicks, types, scrolls).
  4. Data Filtering: A three-stage pipeline (Duplicate Removal → Content Filtering → Trajectory Filtering) ensures high-quality interactions.
The TongUI framework pipeline, illustrating the flow from tutorial sources to agent tuning.

The resulting model is built by fine-tuning Qwen2.5-VL (3B, 7B, and 32B) models using Supervised Fine-Tuning (SFT) and LoRA.

The GUI-Net-1M Dataset

The primary contribution is GUI-Net-1M, the largest open-source collection of its kind, containing 1 million trajectories across five operating systems (Android, Windows, Linux, macOS, and iOS) and over 280 applications.

Comprehensive statistics of the GUI-Net-1M dataset, including OS distribution, filtering efficiency, step counts, and action types.

Key Insights and Results

  • The Internet as a Teacher: Real-world "how-to" guides provide a rich source for translating human-centric instructions into machine-readable trajectories.
  • Granularity and Robustness: Using "rough descriptions" as intermediate hints improves performance over high-level goals. Diversity in tutorial age helps the model handle evolving UI layouts.
  • Performance Gains: TongUI-7B improved grounding accuracy by 5% to 20% over baselines and achieved a 73.3% average score on the AITW benchmark. It also demonstrated strong cross-domain performance on Mind2Web.
  • Human Validation: Filtered data received a quality score of 4.12/5, validating the effectiveness of the pipeline.

Limitations and Future Work

Current limitations include a reliance on offline tutorials and a temporal gap as UIs evolve. Future work points toward continual learning, where agents autonomously browse for new tutorials to self-update their skills when encountering unfamiliar applications.

Summary updated

BibTeX
@misc{zhang2025tongui,
  author = {Bofei Zhang and Zirui Shang and Zhi Gao and Wang Zhang and Rui Xie and Xiaojian Ma and Tao Yuan and Xinxiao Wu and Song-Chun Zhu and Qing Li},
  title = {{TongUI: Building Generalized GUI Agents by Learning from Multimodal Web Tutorials}},
  year = {2025},
  eprint = {2504.12679},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.12679},
}
Figure