NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fusing UI Structure & Semantics for Feature-Oriented App Screen Retrieval & Clustering

Arun Krishna Vajjala, Yanfu Yan, Ajay Krishna Vajjala, Shrunal Pothagoni, Denys Poshyvanyk, Kevin MoranarXiv 2026

TL;DR

This paper introduces FRAME, a neuro-symbolic embedding technique that improves mobile app screen retrieval and clustering by combining the strengths of vision-language models with structural graph representations. By capturing spatial and functional relationships between UI components without requiring additional training, FRAME accurately identifies semantically similar screens despite stylistic variations. This approach significantly enhances automated UI design and testing tools, outperforming standard baselines by up to 13% in search and 7.6 percentage points in clustering accuracy.

What Problem Does This Paper Address?

Building, testing, and maintaining user interfaces (UIs) is uniquely challenging because developers must constantly navigate an abstraction gap between natural language requirements, underlying code, and pixel-based graphical layouts. To automate tasks like test transfer, duplicate bug report detection, and prototyping, software engineering tools rely heavily on calculating semantic screen similarity—determining whether two screens share the same core features and functionality.

However, existing vision-language models (VLMs) like CLIP treat UI screens as flat pixel grids. This makes them highly sensitive to stylistic choices like color palettes while blind to functional layout. For example, a VLM might group a green splash screen, a green search screen, and a green password screen together simply because they share a color scheme, despite having completely different functionalities. Furthermore, current models struggle to understand how individual widgets group together to form distinct functional modules, such as a navigation bar or a trip-planning widget.

Fig. 1. Example UI Component Relationships & Corresponding Features

Methods

To bridge this gap, the authors propose FRAME (ReinForced UseR InterfAce Screen EMbedding with Graphical Structural ComprEhension). FRAME is a training-free, neuro-symbolic framework that augments existing VLM embeddings by imposing structural human priors.

The workflow operates in five main stages:

  1. Image Normalization: Input screenshots are converted to greyscale and their contrast is doubled. This eliminates misleading color biases and sharpens structural boundaries for better component detection.
  2. UI Component Graph Creation: An object detection module localizes interactive UI components. For each component, a multimodal node embedding is generated (using CLIP for visual features and BERT for OCR-extracted text). Nodes are connected via edges if they are within a 300-pixel Manhattan distance.
  3. Embedding Propagation: Features are shared across adjacent nodes using an approximation of a graph spectral filter, mixing localized component data with neighboring context.
  4. Geometric Embedding Weighting: To determine which component relationships matter most, FRAME applies the Vietoris-Rips complex from computational geometry. It calculates the area of 2-simplices (triangles) formed by component centroids; components that consume more screen real estate are weighted more heavily as "functionally dominant."
  5. Post-Processing: The structurally enhanced graph embeddings are combined with a global CLIP embedding of the normalized screen. Finally, Principal Component Analysis (PCA) reduces the final vector down to a clean, 116-dimensional embedding.
Fig. 2. Overview of the FRAME Screen Embedding Workflow

Datasets

The authors evaluated FRAME across three distinct, non-overlapping Android UI benchmarks:

  • Aurora Dataset: 1,370 screens manually grouped into 21 semantic categories, originally used to classify UI design patterns for automated testing.
  • Avgust Dataset: A larger dataset containing 2,475 screens across 25 functional categories (e.g., shopping carts), derived from app execution videos.
  • Enrico Dataset: 1,460 unique screens spanning 20 design categories, known for its challenging class imbalance (ranging from 9 to 265 screens per class).

Key Insights and Ideas

  • Color is a Distraction for Functionality: Standard VLMs over-index on color, which actively harms functional screen matching. Stripping color via greyscale conversion is a vital prerequisite for structural UI understanding.
  • The Power of Neuro-Symbolic Synergy: Instead of executing expensive, domain-specific fine-tuning on massive datasets, FRAME demonstrates that applying symbolic, geometric priors on top of frozen, general-purpose VLMs yields highly accurate, feature-aware representations.
  • Size Dictates Dominance: By utilizing triangle areas within a Vietoris-Rips complex, FRAME mathematically mirrors human perception: larger widgets that occupy more screen real estate are treated as more semantically important to the screen's purpose.
  • The "Tightness vs. Accuracy" Trade-off: Standard VLMs often produce deceptively "tight" clusters (low Sum of Squared Errors) because they compress diverse screens into overlapping areas. FRAME sacrifices this artificial tightness for better cluster separation (lower Davies-Bouldin Index), resulting in vastly superior true classification accuracy.

Key Results

FRAME consistently outperformed all baselines (including Screen2Vec, BERT, BLIP, and CLIP) across all evaluation metrics:

  • Screen Retrieval: FRAME achieved a 12.8% Mean Reciprocal Rank (MRR) improvement over CLIP on the Aurora dataset and a 3.0% MRR improvement on the Avgust dataset, successfully pushing functionally identical screens to the top of search results.
  • Screen Clustering: On the Avgust dataset, FRAME achieved a Clustering Accuracy of 16.69% compared to CLIP’s near-zero 0.72%. It also demonstrated a massive leap in V-Measure (0.4705 vs. CLIP's 0.0109), proving its ability to generate clusters that align with true functional categories.

Limitations and Future Work

Despite its success, FRAME encountered lower accuracy on specific screen types: SignIn, SignUp, Menu, and Account. Because sign-in and sign-up screens share almost identical structural layouts (e.g., two input fields and a button), FRAME's structural priors struggled to tell them apart. In these text-heavy, structurally identical scenarios, the model relies heavily on textual semantics, where CLIP's massive multimodal pre-training retains a slight advantage.

The authors have provided an open-source replication package to encourage future work in extending this geometric, training-free framework to other UI understanding tasks.

Summary updated

BibTeX
@misc{vajjala2026fusing,
  author = {Arun Krishna Vajjala and Yanfu Yan and Ajay Krishna Vajjala and Shrunal Pothagoni and Denys Poshyvanyk and Kevin Moran},
  title = {{Fusing UI Structure \& Semantics for Feature-Oriented App Screen Retrieval \& Clustering}},
  year = {2026},
  eprint = {2608.08880},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.08880},
}
Figure