Computational Approaches for App-to-App Retrieval and Design Consistency Check

Seokhyeon Park, Wonjae Kim, Young-Ho Kim, Jinwook SeoarXiv 2023 · DOI

Modern mobile UI design relies heavily on user flows—the sequences of screens that define a journey—rather than isolated components. However, existing computational tools often struggle to move beyond simple screenshot-to-screenshot retrieval. This research introduces a novel framework for "app-to-app" analysis, leveraging foundation models and Optimal Transport to enable more holistic design inspiration and automated consistency checks.

Methodology: From Screenshots to Flows

The core of the system relies on two technical innovations. First, the researchers utilize OpenAI’s CLIP model in a zero-shot capacity. They discovered that by simply "augmenting" UI screenshots—placing them inside a mobile phone mockup frame—CLIP’s ability to understand UI semantics improved significantly. This "mockup trick" allows the general-purpose model to recognize it is looking at a mobile interface rather than a raw image file.

Second, to compare entire apps, the researchers treat each application as a distribution of feature vectors. They apply the Wasserstein distance, calculated via Optimal Transport (OT), to find the mathematical "cost" of transforming one app's set of screens into another's. This provides a single similarity score for two entire apps and, crucially, creates an interpretable map showing which specific screens between them match best.

Figure 2: Comparing UI flows between Uber and Lyft using Optimal Transport to map corresponding screens and calculate similarity scores across different stages of a ride-hailing journey.

Measuring Design Consistency

Beyond retrieval, the researchers address the pain point of design consistency. They utilize a metric called Uniformity (derived from contrastive learning). In this context, high uniformity in the feature space suggests a cohesive visual language and layout distribution, while lower scores often correlate with content-heavy apps (like Social Media) that naturally feature diverse layouts. This data-driven approach allows designers to measure if a new screen "fits" the established aesthetic of an existing app without relying on rigid, manual heuristics.

Key Results and Evaluation

The framework was validated using a new Mobbin Dataset containing nearly 100,000 screenshots across 320 apps, averaging 126 screens per app. This dataset provides a much richer basis for flow analysis than previous collections like Rico.

Key findings include:

  • Zero-Shot Performance: CLIP with mockup augmentation achieved a 40.49% Top-1 accuracy in app category classification, far exceeding random chance.
  • Human Preference: In a Mechanical Turk study, users gave the CLIP-based retrieval a mean similarity score of 3.57/5, significantly outperforming the previous state-of-the-art model, Screen2Vec (2.92/5).
  • Cross-App Utility: The system effectively quantifies similarities even across different platforms and services, identifying functional parallels between disparate apps.
Figure 4: Cross-app comparison of search and location entry screens between Uber, Google Maps, and Lyft, illustrating the system's ability to quantify similarity across different platforms.

Future Directions

While the current mathematical metrics are robust, the authors acknowledge that not all screens are created equal. Future work will explore weighting core screens (like the Home screen) more heavily in the Optimal Transport calculation. Additionally, the researchers aim to move from relative consistency measures toward absolute benchmarks for design quality based on industry principles.

Summary updated

Abstract

Extracting semantic representations from mobile user interfaces (UI) and using the representations for designers' decision-making processes have shown the potential to be effective computational design support tools. Current approaches rely on machine learning models trained on small-sized mobile UI datasets to extract semantic vectors and use screenshot-to-screenshot comparison to retrieve similar-looking UIs given query screenshots. However, the usability of these methods is limited because they are often not open-sourced and have complex training pipelines for practitioners to follow, and are unable to perform screenshot set-to-set (i.e., app-to-app) retrieval. To this end, we (1) employ visual models trained with large web-scale images and test whether they could extract a UI representation in a zero-shot way and outperform existing specialized models, and (2) use mathematically founded methods to enable app-to-app retrieval and design consistency analysis. Our experiments show that our methods not only improve upon previous retrieval models but also enable multiple new applications.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Mobbin dataset (19 classes)CLIP (Our Prompts, +Mockup+Squared)Top-1 accuracy (↑)40.490-shot · backbone=CLIP
Source quote
L227: +Mockup+Squared │ 40.49 │ 74.65
Mobbin dataset (19 classes)CLIP (Our Prompts, +Mockup+Squared)Top-5 accuracy (↑)74.650-shot · backbone=CLIP
Source quote
L227: +Mockup+Squared │ 40.49 │ 74.65
BibTeX
@misc{park2023computational,
  author = {Seokhyeon Park and Wonjae Kim and Young-Ho Kim and Jinwook Seo},
  title = {{Computational Approaches for App-to-App Retrieval and Design Consistency Check}},
  year = {2023},
  eprint = {2309.10328},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.10328},
}
Figure