MP-GUI: Modality Perception with MLLMs for GUI Understanding

Ziwei Wang, Weizhi Chen, Leyang Yang, Sheng Zhou, Shengchu Zhao, Hanbei Zhan, Jiongchao Jin, Liangcheng Li, Zirui Shao, Jiajun Bu

Abstract

Multimodal Large Language Models (MLLMs) have demonstrated remarkable capabilities in natural scene understanding but often falter when applied to Graphical User Interfaces (GUIs). GUIs are structured environments where meaning is derived from the precise spatial arrangement of text, icons, and functional hierarchies. We introduce MP-GUI, a specialized MLLM that treats text, graphics, and spatial layout as distinct modalities. By employing a TGS-Perception Fusion Module and a task-aware Fusion Gate, MP-GUI dynamically integrates these signals based on user intent. Our approach achieves state-of-the-art performance on GUI grounding and navigation benchmarks, demonstrating particular strength in identifying small UI elements while requiring orders of magnitude less training data than general-purpose models.

Introduction

While current MLLMs excel at describing natural images, they struggle with the artificial constructs of smartphone or web screens. Unlike a photograph of a forest, a GUI's logic is defined by its underlying structure. General-purpose models face two primary hurdles: a lack of explicit spatial modeling and a scarcity of high-quality "View Hierarchy" data, which is often noisy or restricted due to privacy concerns. MP-GUI addresses these challenges by moving away from a monolithic visual backbone toward a modality-specific perception framework.

Methods: The MP-GUI Architecture

The core of MP-GUI is the TGS-Perception Fusion Module (TGS-PFM), which extracts specialized signals from a shared vision backbone using three distinct perceivers:

  1. Textual Perceiver (TxP): Optimized for Optical Character Recognition (OCR) and text recognition.
  2. Graphical Perceiver (GaP): Specialized in identifying icons, widgets, and visual branding elements.
  3. Spatial Perceiver (SaP): Designed to learn the "where" and "within" relationships between UI elements.
The MP-GUI architecture featuring the TGS-Perception Fusion Module and the task-oriented Fusion Gate.

To manage these signals, a Fusion Gate (FG) acts as a task-aware selector. Since different GUI tasks require different information—for instance, widget captioning relies on graphics while screen summarization relies on text—the Fusion Gate uses the semantic context of the user's query to dynamically weight and combine the perceivers' outputs.

Multi-stage Training Strategy

The model is trained through a four-step process. Initially, each perceiver is "warmed up" on modality-specific data (Text, then Graphics, then Space). A key innovation here is the Spatial Relationship Prediction (SRP) task, which explicitly teaches the model to classify relationships between bounding boxes as containment (parent-child), sibling, or unrelated. Finally, the entire system, including the Fusion Gate and vision backbone, is fine-tuned end-to-end.

Datasets and Evaluation

MP-GUI was trained on a curated set of 0.68 million samples, combining existing datasets like AMEX (text-aware), AITW (graphics-aware), and Semantic UI (spatial-aware). To train the Fusion Gate, the authors generated Synthetic Data (SynD) using a teacher model (Qwen2-VL-72B) to create complex QA pairs requiring multi-modal integration.

Evaluation spanned several critical benchmarks:

  • ScreenSpot: For GUI grounding.
  • AITW & Mind2Web: For mobile and web navigation.
  • Widget Captioning & ScreenQA: For functional understanding.

Key Results and Insights

MP-GUI demonstrates that explicit modality separation significantly enhances sensitivity to fine-grained visual information.

Small Object Mastery

A common failure point for general MLLMs is the inability to ground tiny UI elements. MP-GUI shows a dramatic improvement in this area, particularly for elements occupying less than 1% of the screen area.

Performance comparison showing MP-GUI's superior accuracy in grounding small UI elements compared to general-purpose models.

Performance Benchmarks

  • Grounding: MP-GUI outperformed the next best methods by 13.2% on the RefExp (Screen Grounding) task.
  • Navigation: On the AITW mobile navigation benchmark, it achieved a score of 69.2%, surpassing specialized models like SeeClick and ShowUI.
  • Data Efficiency: Remarkably, MP-GUI reached these benchmarks using only 0.68M training samples, a fraction of the 383M samples used by models like ScreenAI.

Conclusion

By treating GUI understanding as a multi-modal fusion problem driven by task semantics, MP-GUI provides a robust and data-efficient solution for screen-based AI agents. While currently limited to static screenshots and the resolution of the underlying InternViT backbone, future iterations could extend this framework to dynamic video sequences and cross-platform desktop environments.

Summary updated

BibTeX
@inproceedings{wang2025mp,
  author = {Ziwei Wang and Weizhi Chen and Leyang Yang and Sheng Zhou and Shengchu Zhao and Hanbei Zhan and Jiongchao Jin and Liangcheng Li and Zirui Shao and Jiajun Bu},
  title = {{MP-GUI: Modality Perception with MLLMs for GUI Understanding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02766},
}
Figure