TL;DR
This paper introduces VINS, a visual search framework that helps mobile UI designers find inspiration by retrieving visually similar design examples. Unlike text-based searches, VINS uses an object detection model to understand the UI's structure and content, leading to more relevant results.
What Problem Does This Paper Address?
Finding relevant mobile UI design examples is crucial for designers seeking inspiration and exploring alternatives. However, current search methods primarily rely on text-based queries, which often fail to capture the nuances of visual layout, structure, and content. This makes it challenging for designers to articulate their needs precisely and find truly similar designs. Existing visual search approaches have limitations in performance and generalizability, often overlooking UI content or relying on predefined hierarchies. This paper aims to bridge this gap by developing a visual search system that accurately models UI context and hierarchical structure.
Methods
VINS employs a two-pronged approach:
- Object Detection: The system first uses a Single Shot MultiBox Detector (SSD) with MobileNets as the backbone to identify and localize various UI components (e.g., buttons, text fields, images) within an input UI image (wireframe or high-fidelity). This process generates a "semantic structured layout" where each detected component is labeled.
- Image Retrieval: A multi-modal embedding framework is then used. This framework consists of two models:
- Image Model: An attention-aware autoencoder learns a structural feature vector that encodes the hierarchical structure of the UI. A "box attention map" is incorporated to better understand object interactions and guide the feature learning.
- Label Model: A separate encoder-decoder learns a feature vector representing the UI components' class labels, capturing the content aspect.
These two feature vectors are concatenated to form a final embedding. Similarity between UI designs is then calculated using the Euclidean distance between these embeddings. The models are trained end-to-end to optimize for both reconstruction of the original image and accurate bounding box predictions.
Datasets
- VINS Dataset: A newly introduced, large-scale, annotated dataset specifically created for this research. It comprises 4,800 UI design screens, including 257 abstract wireframes and 4,543 high-fidelity screens. The dataset is annotated with bounding boxes for 11 UI component classes.
- Rico Dataset: Used as a reference for comparison in the object detection evaluation.
Key Insights and Ideas
- Beyond Text: The core idea is that visual search for UI design needs to go beyond simple keywords. Understanding the spatial arrangement and types of UI elements is paramount for finding truly similar designs.
- Hierarchical Structure Matters: The paper emphasizes the importance of the UI's hierarchical structure, not just the presence of components. The attention mechanism in the image model is a novel way to incorporate this structural understanding.
- Multi-Modal Approach: Combining visual features (structure) with semantic features (component labels) is key to a robust retrieval system.
- Dataset is Crucial: The creation of the VINS dataset, with detailed annotations of UI components and their locations, was essential for training and evaluating the object detection and retrieval models. This dataset is made publicly available.
- Wireframes to High-Fidelity: The framework's ability to handle both abstract wireframes and detailed high-fidelity designs makes it versatile for designers at different stages of their workflow.
Key Results
- Object Detection: The VINS dataset annotations led to a significant improvement in object detection accuracy compared to using Rico dataset annotations, with an mAP of 74.15% for VINS vs. 48.08% for Rico. The overall mAP for the VINS dataset was 76.39%.
- Image Retrieval: The proposed VINS model achieved higher precision scores than a baseline autoencoder, with improvements of 4-6% for top-K retrieval. The model with 4 attention maps achieved 92.05% precision for the top 1 retrieved image.
- Qualitative Evaluation: Expert designers found the retrieved results to be relevant and beneficial, providing useful design variations and inspirations. The system demonstrated an ability to handle partial layouts for auto-completion tasks.
Limitations and Future Work
- Dataset Size and Classes: While large, the VINS dataset could be further expanded. The current 11 UI component classes limit applicability to UIs with these specific elements. Future work could include more classes and finer-grained labels (e.g., specific input field types, button concepts).
- Detection Performance: While generally good, the object detection model struggled with certain classes like "checked view" and "icon" due to high cross-class similarity and in-class variance. Small object detection also remains a challenge.
- Visual Features: The current retrieval model focuses on structure and content. Incorporating explicit visual features like imagery, fonts, and colors could further enhance retrieval.
- Tree-based Structure: Representing UI hierarchy using tree-based data structures could offer a more robust modeling of component relationships.
- Broader Applications: The framework could be extended beyond mobile UIs to other design layouts like magazines and web pages.
- User Studies: Further validation through user studies with UI designers is planned to assess integration into daily workflows and explore human-AI interaction.
- User Constraints: Designers suggested incorporating user-specified constraints (e.g., keywords, colors) to control the search process.
Summary updated