TL;DR
MP-GUI is a specialized multi-modal large language model (MLLM) designed to truly understand graphical user interfaces by explicitly decoupling and processing textual, graphical, and spatial signals. By using a clever multi-stage training curriculum and a novel data synthesis pipeline, it achieves state-of-the-art performance across various GUI tasks using a fraction of the data required by previous methods.
What Problem Does This Paper Address?
While modern Multi-modal Large Language Models (MLLMs) excel at describing natural images or transcribing documents, they frequently stumble when interacting with Graphical User Interfaces (GUIs).
The core issue is that existing models treat a user interface screenshot as a standard unstructured image. However, GUIs are fundamentally different: they consist of artificially designed elements (like icons, buttons, and text blocks) whose meanings are deeply tied to their spatial arrangement and hierarchical structure. For instance, a "right arrow" icon doesn't just mean "go right"; its actual function depends entirely on the text label next to it.
Prior attempts to fix this relied on extracting underlying metadata like View Hierarchies (VH) or HTML code. Unfortunately, this data is often noisy, incomplete, or inaccessible due to privacy constraints. The authors of this paper set out to build a model that can perceive these crucial spatial and structural relationships purely from visual pixels.
Methods
The authors introduce MP-GUI, an architecture that enhances a standard vision-language model with a specialized TGS-Perception Fusion Module.
Instead of passing raw visual features straight to the LLM, MP-GUI splits the visual processing into three distinct, specialized perceivers (implemented as MLPs):
- Textual Perceiver (TxP): Focuses on extracting and localizing text signals.
- Graphical Perceiver (GaP): Focuses on fine-grained visual elements like icons and widgets.
- Spatial Perceiver (SaP): Models the spatial relationships between the textual and graphical elements.
To combine these signals effectively based on what the user is asking, the model uses a Fusion Gate. Inspired by Mixture-of-Experts (MoE) architectures, this gate dynamically weights the importance of text, graphics, and spatial layout depending on the task semantics.
Multi-Stage Training Strategy (MTS)
To ensure each perceiver actually learns its intended role, the authors reject standard end-to-end training in favor of a strict four-step curriculum:
- Steps 1 & 2: Warm up the TxP and GaP independently using text-only and graphics-only bounding box tasks.
- Step 3: Train the Spatial Perceiver using a novel Spatial Relationship Prediction (SRP) task, forcing the model to explicitly predict containment and structural alignment between UI elements.
- Step 4: Train the Fusion Gate and fine-tune the entire system using a mix of tasks and automated synthetic data.
Datasets
MP-GUI was trained on a curated mix of existing and synthetic data totaling 680K samples:
- Text Aware Data (TAD) & Graphics Aware Data (GAD): Filtered from the AMEX and AITW datasets to isolate pure text or pure graphical elements.
- Spatial Aware Data (SAD): Built using the Semantic UI dataset to generate the structural relationship pairs for the SRP task.
- Synthetic Data (SynD): Generated using a powerful teacher model (Qwen2-VL-72B) to create single-perceiver and multi-perceiver enhanced QA pairs, including detailed local descriptions of UI components.
For evaluation, the model was tested across a massive suite of public benchmarks, including Widget Captioning, ScreenQA, WebSRC, RefExp, Screen2Words, as well as agent navigation tasks on AITW and Mind2Web, and zero-shot grounding on ScreenSpot.
Key Insights and Ideas
- Modality Decoupling Prevents Feature Dilution: Packing text, icons, and layout into a single visual embedding causes the LLM to lose fine-grained details. Explicitly separating them into three channels allows the model to preserve distinct UI attributes.
- Curriculum Learning is Essential: The ablation studies revealed that training the entire network end-to-end from scratch significantly degrades performance. Forcing the model to master text and graphics before learning spatial relationships is the secret to its success.
- Cross-Device Generalization from Mobile Only: Remarkably, even though MP-GUI was trained exclusively on mobile screen resolutions, it generalized exceptionally well to desktop and web interfaces, proving it learned generic, fundamental UI design patterns.
Key Results
MP-GUI achieved outstanding data efficiency and performance gains:
- Data Efficiency: It outperformed or matched specialized models like ScreenAI while using only 0.68M training samples compared to ScreenAI's massive 383.5M samples.
- Basic GUI Benchmarks: It beat the closest open-source baseline by 5.7% on Widget Captioning and a staggering 13.2% on RefExp (Screen Grounding).
- Small Object Grounding: Thanks to its dedicated Graphical Perceiver, MP-GUI significantly outperformed competing models when locating tiny UI elements (under 1% of screen size).
- Qualitative Improvements: As seen in case studies, MP-GUI successfully avoids common MLLM hallucinations, accurately calculating differences or counting elements where standard models fail.
Limitations and Future Work
While the paper demonstrates impressive results, a few limitations remain open for future exploration:
- Teacher Dependency: The pipeline relies heavily on high-quality synthetic data generated by a much larger model (Qwen2-VL-72B) to train its Fusion Gate.
- Generic Capability Trade-off: The authors noted that aggressive instruction-tuning on domain-specific GUI data can slightly weaken the foundational model's generic reasoning abilities on certain complex QA tasks. Future work will likely focus on mitigating this side effect.
Summary updated