Screen2Words: Automatic Mobile UI Summarization with Multimodal Learning

Bryan Wang, Gang Li, Xin Zhou, Zhourong Chen, Tovi Grossman, Yang Li

Abstract

Mobile user interfaces (UIs) are complex and information-dense, posing significant challenges for automated systems and accessibility tools. We present Screen2Words, a multimodal deep learning framework designed to generate succinct, natural language summaries of mobile screens. By integrating visual features, structural hierarchies, and high-level app metadata, Screen2Words bridges the gap between raw UI data and human-understandable descriptions. This paper details the architecture, the large-scale Screen2Words dataset, and experimental results demonstrating that multimodal fusion significantly outperforms unimodal baselines in both automated metrics and human evaluation.

Introduction

While human users can instantly categorize a mobile screen—identifying it as a "checkout page" or a "settings menu"—machines struggle to synthesize raw pixels and code into a coherent concept. Current accessibility tools often require exhaustive element-by-element navigation, which is inefficient for visually impaired users. Furthermore, conversational agents lack the semantic indexing required to navigate UIs via voice commands.

The core challenge lies in UI Summarization: translating a collection of UI elements into a five-to-ten-word phrase that captures the screen's essence.

The Screen2Words pipeline: from data collection of UI screenshots and focus areas to multimodal modeling and final summary generation.

Methodology

Screen2Words employs a multimodal Transformer encoder-decoder architecture. Unlike traditional image captioning, it treats a UI screen as a structured collection of diverse data points rather than a flat image.

Multimodal Encoding

The framework utilizes a dual-encoding strategy to capture the richness of the UI:

  1. Visual Encoding: A ResNet-based Convolutional Neural Network (CNN) processes raw pixels of individual UI elements (cropped and resized to 64x64), capturing visual cues like icons and buttons.
  2. Structural and Textual Encoding: A Transformer encoder processes the "View Hierarchy" (the underlying code structure). The hierarchy is flattened via breadth-first traversal, incorporating spatial coordinates and on-screen text for each node.
  3. Global Semantic Context: A unique feature of the model is the inclusion of the App Description from the Google Play Store. This metadata provides high-level context that helps the model distinguish between functionally similar screens in different app categories (e.g., a "Progress" screen in a fitness app vs. a language learning app).

Late Fusion and Decoding

The visual and structural representations are concatenated into a rich multimodal embedding for every element. A Transformer decoder then uses these embeddings to generate a summary word-by-word in an autoregressive manner.

The Screen2Words Dataset

To train and evaluate the model, the researchers introduced the Screen2Words dataset, the first large-scale benchmark for UI summarization.

  • Scale: 22,417 unique Android screens sampled from the RICO dataset.
  • Annotations: 112,085 human-authored summaries (5 per screen).
  • Summary Focus Areas (SFA): Labelers identified bounding boxes for the most influential parts of the screen, ensuring the model learns functional importance rather than just visual prominence.
Examples of human-labeled summaries and focus areas from the Screen2Words dataset.

Experimental Results

The multimodal approach significantly outperformed unimodal baselines (pixel-only or layout-only models).

  • Automated Metrics: The full model achieved a BLEU-4 score of 25.1 and a CIDEr score of 61.3, nearly doubling the performance of simple retrieval-based methods.
  • Human Evaluation: In a study involving Mechanical Turk workers, the model's summaries received an average rating of 3.44/5. Notably, 38.6% of generated summaries were rated a perfect 5/5, indicating they were error-free and sufficiently detailed.
  • Ablation Insights: The inclusion of on-screen text and app metadata provided the most significant performance gains, confirming that semantic context is essential for deep UI understanding.

Conclusion and Future Work

Screen2Words represents a significant step toward machines that "understand" mobile interfaces. While the model occasionally suffers from "hallucinations" or generic outputs, its ability to synthesize multimodal data into natural language has immediate applications in accessibility and voice-controlled systems. Future research will explore "steerable" summarization (answering specific user questions about a screen) and handling dynamic content like animations and transitions.

Summary updated

BibTeX
@inproceedings{wang2021screen,
  author = {Bryan Wang and Gang Li and Xin Zhou and Zhourong Chen and Tovi Grossman and Yang Li},
  title = {{Screen2Words: Automatic Mobile UI Summarization with Multimodal Learning}},
  booktitle = {UIST},
  year = {2021},
  doi = {10.1145/3472749.3474765},
}
Figure