Introduction
Automating tasks across diverse graphical user interfaces (GUIs)—from mobile apps to complex web environments—remains a significant challenge in artificial intelligence. Traditional GUI agents typically rely on one of two paradigms: text-based agents that parse underlying metadata (like HTML or accessibility trees) and vision-based agents that process raw screenshots. While text-based approaches often fail when metadata is messy or missing, vision-based models face a massive computational bottleneck: high-resolution screens generate thousands of visual tokens, making Transformer-based processing prohibitively expensive.
ShowUI addresses these challenges by introducing a lightweight 2B-parameter Vision-Language-Action (VLA) model. By leveraging a novel UI-guided token selection mechanism and a highly curated dataset, ShowUI achieves state-of-the-art performance while significantly reducing computational redundancy.
Methodology
ShowUI is built upon the Qwen2-VL-2B architecture and introduces three core innovations to optimize GUI interaction:
1. UI-Guided Visual Token Selection
Unlike natural images, UI screens contain significant "empty space" and uniform backgrounds. ShowUI treats a screenshot as a graph where each patch is a node. Using the Union-Find algorithm, it groups neighboring patches with similar RGB values into connected components. During training, the model randomly samples tokens from these components. Crucially, ShowUI employs Token Selection rather than merging; by preserving the original positional embeddings of selected tokens, the model maintains the precise spatial awareness required to interact with small, specific UI elements like buttons or checkboxes.
2. Interleaved VLA Streaming
To manage multi-step navigation, the model unifies visual history and action sequences. It supports two distinct modes: Action-Visual Streaming for tracking navigation history and Action-Query Streaming for pairing multiple actions to a single screenshot. This allows the model to learn from multi-turn dialogues efficiently within a single forward pass.
3. Standardized Action Space
ShowUI structures all GUI actions—such as CLICK, TYPE, and SCROLL—into a unified JSON format. This standardization allows the model to generalize across different operating systems (iOS, Windows, Android) and web environments seamlessly.
Data Strategy
Rather than simply increasing data volume, the researchers focused on data quality and balance, curating a 256K-sample dataset from diverse sources:
- Web-visual elements (22K): Focused on visually rich functional elements like buttons rather than static text.
- Desktop-diverse query (6K): High-quality elements from OmniAct, using GPT-4o to derive complex queries based on intent and spatial relationships.
- Mobile-Functionality: Data sourced from AMEX and Android-in-the-Wild (AITW).
- Navigation: Trajectories from GUIAct for both web and mobile.
A rebalanced sampling strategy was employed to ensure the model did not overfit to the more abundant mobile data, maintaining strong performance across desktop and web tasks.
Key Results and Insights
ShowUI demonstrates that UI redundancy is a feature that can be exploited. By pruning redundant tokens (e.g., white sidebars), the model achieves higher efficiency without losing accuracy. The researchers also found that Selection is superior to Merging because it preserves the integrity of positional encodings vital for grounding.
- Zero-Shot Grounding: ShowUI-2B achieved 75.1% accuracy on the Screenspot benchmark, significantly outperforming much larger models such as CogAgent-18B (47.4%) and SeeClick-9.6B (53.4%).
- Efficiency: The UI-guided token selection reduced visual token redundancy by 33%, resulting in a 1.4× training speedup.
- Navigation: On AITW (mobile) and Mind2Web (web) benchmarks, ShowUI outperformed models relying on closed-source APIs or HTML metadata, reaching a 70.0% overall score on AITW.
Conclusion
ShowUI represents a significant advancement for lightweight GUI agents. By treating UI screens as structured graphs and optimizing token selection, it proves that a 2B-parameter model can outperform significantly larger counterparts in both accuracy and efficiency. Future work will look toward online Reinforcement Learning to handle novel error cases and improving memory retention for extremely long-horizon tasks.
Summary updated