Abstract
Screen user interfaces (UIs) and infographics, sharing similar visual language and design principles, play important roles in human communication and human-machine interaction. We introduce ScreenAI, a vision-language model that specializes in UI and infographics understanding. Our model improves upon the PaLI architecture with the flexible patching strategy of pix2struct and is trained on a unique mixture of datasets. At the heart of this mixture is a novel screen annotation task in which the model has to identify the type and location of UI elements. We use these text annotations to describe screens to Large Language Models and automatically generate question-answering (QA), UI navigation, and summarization training datasets at scale. We run ablation studies to demonstrate the impact of these design choices. At only 5B parameters, ScreenAI achieves new state-of-the-art results on UI- and infographics-based tasks (Multi-page DocVQA, WebSRC, MoTIF and Widget Captioning), and new best-in-class performance on others (Chart QA, DocVQA, and InfographicVQA) compared to models of similar size. Finally, we release three new datasets: one focused on the screen annotation task and two others focused on question answering.
Introduction
While general-purpose Vision-Language Models (VLMs) have made significant strides in understanding natural scenes, they often falter when confronted with the specialized "visual language" of digital interfaces. Mobile apps, websites, and infographics are characterized by dense text, symbolic icons, and complex spatial hierarchies. Standard models typically struggle with these formats due to aspect ratio distortion—caused by resizing images to fixed squares—and a lack of large-scale, high-quality training data for specific digital tasks like UI navigation or chart reasoning.
ScreenAI is a 5B-parameter VLM designed to bridge this gap. By treating pixels, text, and layout as a unified understanding problem, ScreenAI achieves state-of-the-art performance on digital content tasks, often outperforming models ten times its size.
Methodology
Architecture: Flexible Patching
ScreenAI is based on the PaLI (Pathways Language and Image) architecture but incorporates the patching strategy from Pix2struct. Unlike traditional models that force every image into a fixed grid, ScreenAI uses a flexible grid that adapts to the image's original aspect ratio. This ensures that tall smartphone screenshots or wide desktop dashboards are not squashed, preserving the legibility of small text and the integrity of the UI layout.
Data Generation: The LLM-in-the-Loop
To address data scarcity, the researchers developed a "Screen Schema"—a textual description of a UI including element types (buttons, icons), OCR results, and spatial coordinates. The team used specialized smaller models to label millions of raw screenshots and then fed these schemas into a Large Language Model (PaLM 2). This allowed for the automatic generation of millions of synthetic training examples for diverse tasks:
- Question Answering: Extracting specific information (e.g., "How many calories are in this recipe?").
- Navigation: Translating intent into action (e.g., "Click on the contact info").
- Summarization: Providing high-level descriptions of screen content.
Datasets and Benchmarks
The model underwent pre-training on a massive mixture of 353 million screen-related samples. To further research in the field, the authors released three new benchmarks:
- Screen Annotation (SA): 4.2K screenshots with human-verified UI element labels.
- ScreenQA Short: A refined version of the ScreenQA dataset with concise answers for better evaluation.
- Complex ScreenQA: A challenging dataset requiring counting, arithmetic, and multi-step reasoning across various aspect ratios.
Key Insights
- Unified Representation: UIs and infographics share underlying design principles. Training on both simultaneously allows the model to learn a robust "digital grammar."
- Synthetic Data Efficacy: The study proves that high-quality LLMs can effectively "teach" VLMs by converting visual layouts into text schemas to generate complex training scenarios.
- OCR as a Force Multiplier: While the model can process pixels directly, providing OCR text as an additional input significantly boosts performance in tasks requiring precise data extraction from dense tables or charts.
Results and Performance
Despite its relatively modest 4.6B parameter count, ScreenAI demonstrates exceptional efficiency:
- State-of-the-Art (SoTA): Set new records on MoTIF (UI navigation), Multipage DocVQA, and WebSRC.
- Best-in-Class: Outperformed all models of similar size on ChartQA, DocVQA, and InfographicVQA.
- Efficiency: In several infographic benchmarks, it surpassed models 10x its size, proving that domain-specific architecture and data strategy can outweigh raw parameter scale.
Conclusion
ScreenAI establishes a new baseline for UI and infographic understanding. By combining flexible image patching with an LLM-driven synthetic data pipeline, the model achieves high performance with a compact footprint. Future work will focus on scaling the model further, refining synthetic data to reduce hallucinations, and moving from static screenshots to dynamic, interactive UI understanding.
Summary updated