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.
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.
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