GUICourse: From General Vision Language Models to Versatile GUI Agents

Wentong Chen, Junbo Cui, Jinyi Hu, Yujia Qin, Junjie Fang, Yue Zhao, Chongyi Wang, Jun Liu, Guirong Chen, Yupeng Huo, Yuan Yao, Yankai Lin, Zhiyuan Liu, Maosong Sun

TL;DR

While Vision Language Models (VLMs) excel at general visual tasks, they struggle as practical Graphical User Interface (GUI) agents due to poor text localization (OCR/grounding) and a lack of domain-specific interaction knowledge. This paper introduces GUICourse, a comprehensive training pipeline and dataset suite that systematically fixes these flaws, enabling even lightweight models (3.1B parameters) to navigate complex web and mobile interfaces effectively.

What Problem Does This Paper Address?

Imagine asking an AI assistant to "find the products" or "accept the cookies" on a website. While a human does this instantly, standard VLMs frequently stumble. They suffer from two primary limitations in GUI environments:

  1. Inadequate OCR and Grounding: They cannot precisely locate small text or UI elements at the pixel level.
  2. Lack of GUI Knowledge: They do not inherently understand the functional mechanics of web widgets or how to translate an instruction into a sequence of valid actions (like clicking, scrolling, or typing).

Furthermore, existing GUI datasets are often too small, overly simplistic, or restricted to narrow domains. To bridge this gap, the authors focus on training vision-only agents that interact with GUIs purely through screenshots and position-based actions, mimicking human behavior without relying on underlying source code (like HTML or iOS backend code) which is often inaccessible.

Figure 1: An example of several GUI tasks. Qwen-VL-Chat gives an incorrect bounding box for "Log in", which means its OCR and grounding capabilities are insufficient. Also, it can’t finish GUI navigation tasks such as "find the products" and "accept the cookies" because it lacks the knowledge of GUI control actions. Trained on our datasets, our GUI agent Qwen-GUI performs these tasks well.

Methods

The authors propose a structured, two-stage data-driven pipeline to transform general VLMs into versatile GUI agents:

  • Stage 1: Knowledge Enhancement (Pre-training): To fix the foundational OCR and grounding deficiencies, the VLM is pre-trained on millions of webpage screenshots paired with their complete layout sequences and text annotations. This teaches the model where things are on a screen.
  • Stage 2: Action and Interaction Training (Supervised Fine-Tuning): The model is then fine-tuned on specific GUI navigation tasks and multi-turn dialogues.

The agents operate in a unified, position-based action space consisting of 11 core action types (e.g., click, hover, swipe, input, scroll). Instead of abstract choices, the model outputs structured text (like JSON or CSV) containing precise pixel coordinates or bounding boxes for its actions.

Datasets

The core contribution of this work is GUICourse, a dataset suite split into three distinct parts:

  1. GUIEnv (10.7M samples):
    • GUIEnv-global (10M): Full-page screenshots with text, grounding, and layout sequences used for pre-training.
  2. GUIEnv-local (0.7M): Region-specific QA pairs (e.g., "text-to-bbox" and "bbox-to-text") for fine-tuning.
  3. GUIAct (~82k instructions): A massive navigation dataset spanning 50 web scenarios and smartphone apps. It includes 67k human-verified single-step instructions, 5,696 human-annotated multi-step web trajectories, and 9,157 smartphone instructions adapted from the Android In The Wild (AITW) dataset.
  4. GUIChat (50k dialogues): 44k single-turn and 6k multi-turn dialogues based on website screenshots to improve the agent's natural language interaction and reasoning capabilities.

For external evaluation, the authors benchmarked their models on Mind2Web (cross-task/website web navigation) and AITW (smartphone navigation).

Figure 2: An example of our GUIAct dataset with 17 steps of action-screenshot pairs. Each step corresponds with one website screenshot and one or more actions. Some actions (e.g., “click”) have their location information, represented by a bounding box.

Key Insights and Ideas

  • Grounding is Non-Negotiable: Ablation studies revealed that skipping the GUIEnv pre-training phase severely cripples the agent. Element localization accuracy (Text2Bbox) drops dramatically without it, proving that general VLMs cannot navigate effectively without explicit layout training.
  • Resolution is a Game Changer: Increasing the input resolution (from $448 \times 448$ to $1344 \times 1344$ via flexible patching) yielded massive performance gains, as high resolution is critical for recognizing tiny text and icons on dense web pages.
  • Size Isn't Everything: Highly optimized, smaller models can punch well above their weight class when fed high-quality, structured GUI data.

Key Results

The authors evaluated their fine-tuned models—MiniCPM-GUI (3.1B), Qwen-GUI (9.6B), and Fuyu-GUI (9.4B)—against baseline VLMs and commercial models:

  • Outperforming Proprietary Models: On the authors' internal test sets, both MiniCPM-GUI and Qwen-GUI achieved a mean step success rate of ~57%, significantly outperforming GPT-4o-mini, which scored only 32.0% due to poor action execution and grounding.
  • Mind2Web & AITW Benchmarks: Fine-tuned models showed dramatic improvements over their baselines. On Mind2Web, MiniCPM-GUI improved its step success rate from 5.2% (baseline) to 14.6%. On AITW, it jumped from 48.9% to 58.4%.
  • Dynamic Adaptation: In interactive smartphone testing, the agent demonstrated true generalization rather than just memorizing action sequences. For instance, if a "Settings" icon was hidden, it successfully swiped to find it; if it was already visible, it tapped it directly.
Figure 4: An example of our GUI agent executing the same instruction with different environments. The numbers in the "<point></point>" are the related positions from 0 to 1000.

Limitations and Future Work

Despite the impressive results, the authors note several areas for improvement:

  • SFT Bottlenecks: Pure supervised fine-tuning (SFT) may not be sufficient to create flawless, assistant-level autonomy. The authors plan to explore Reinforcement Learning from Human Feedback (RLHF) to further boost reliability.
  • Scenario Gaps: The current datasets focus heavily on web browsers and smartphones. To build a truly universal GUI agent, future iterations will need to incorporate data from desktop operating systems (Windows/macOS) and professional software suites.

Summary updated

BibTeX
@inproceedings{chen2025guicourse,
  author = {Wentong Chen and Junbo Cui and Jinyi Hu and Yujia Qin and Junjie Fang and Yue Zhao and Chongyi Wang and Jun Liu and Guirong Chen and Yupeng Huo and Yuan Yao and Yankai Lin and Zhiyuan Liu and Maosong Sun},
  title = {{GUICourse: From General Vision Language Models to Versatile GUI Agents}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=6rceZ5jvJq},
}
Figure