A Pairwise Dataset for GUI Conversion and Retrieval between Android Phones and Tablets

Han Hu, Haolan Zhan, Yujin Huang, Di LiuarXiv 2023

Abstract: With the popularity of smartphones and tablets, users have become accustomed to using different devices for different tasks. To conquer the market, one app is often available on both smartphones and tablets. However, although one app has similar graphic user interfaces (GUIs) and functionalities on phone and tablet, current app developers typically start from scratch when developing a tablet-compatible version of their app, which drives up development costs and wastes existing design resources. Researchers are attempting to employ deep learning in automated GUIs development to enhance developers' productivity. Deep learning models rely heavily on high-quality datasets. There are currently several publicly accessible GUI page datasets for phones, but none for pairwise GUIs between phones and tablets. This poses a significant barrier to the employment of deep learning in automated GUI development. In this paper, we collect and make public the Papt dataset, which is a pairwise dataset for GUI conversion and retrieval between Android phones and tablets. The dataset contains 10,035 phone-tablet GUI page pairs from 5,593 phone-tablet app pairs. We illustrate the approaches of collecting pairwise data and statistical analysis of this dataset. We also illustrate the advantages of our dataset compared to other current datasets. Through preliminary experiments on this dataset, we analyse the present challenges of utilising deep learning in automated GUI development and find that our dataset can assist the application of some deep learning models to tasks involving automatic GUI development.

Introduction

While many Android applications are designed to run on both phones and tablets, their layouts often differ significantly to accommodate varying screen real estate. Tablets allow for multi-pane layouts and additional content that would be cluttered on a phone. Currently, developers often design these tablet versions from scratch, a process that is both time-consuming and resource-intensive.

Deep learning offers a potential path toward automating this cross-platform design process. However, progress has been hindered by a lack of suitable data. Existing UI datasets, such as the widely used Rico dataset, primarily contain single-device data. Without a "ground truth" dataset showing how a specific phone screen translates to a tablet layout, training generative models for GUI conversion remains nearly impossible.

The Papt Dataset

To address this gap, we introduce Papt, the first large-scale, pairwise dataset for Android phone and tablet GUIs. Papt consists of 10,035 valid phone-tablet GUI pairs sourced from 5,593 unique applications across 22 categories, including Entertainment, Social, and Communication.

Figure 3: A comparison between phone (left) and tablet (right) GUIs for the same application, illustrating how elements are rearranged and expanded for larger screens.

Unlike previous datasets that may suffer from "visual mismatches"—where underlying metadata includes hidden or off-screen elements not visible to the user—Papt was curated using uiautomator2 and underwent rigorous manual verification by experts to ensure high data quality and visual consistency.

Methodology

Collecting pairwise data across different device form factors requires handling two distinct app development scenarios. We developed a multi-stage pipeline to address both:

  1. Dynamic Resolution Adjustment: For apps using responsive or adaptive layouts (where a single APK handles both devices), we utilized Android Debug Bridge (ADB) commands to dynamically shift device resolution. By capturing the UI state immediately before and after the shift, we ensured a perfect 1:1 functional match.
  2. Similarity Matching for Independent Apps: For apps that utilize separate logic or different APKs for phones and tablets, we employed a two-step matching process involving semantic analysis and component comparison.
Figure 5: The similarity matching pipeline used to pair GUIs from independent phone and tablet app versions through activity and component analysis.

In this pipeline, a pre-trained BERT model calculates the semantic similarity between Activity names (e.g., matching MainActivity to HomeActivity). This is followed by a component matching phase where UI elements like text, images, and buttons are compared; a pair is validated if more than 50% of the components correspond.

Key Insights and Applications

Our analysis of the Papt dataset reveals that GUI similarity scores typically peak between 0.5 and 0.7. This confirms that a phone GUI is rarely just a scaled-down version of a tablet GUI; rather, the phone version is usually a functional subset. This insight is crucial for future AI research, as it implies that models must learn to generate or retrieve complementary content for tablet versions rather than simply rearranging existing phone elements.

Papt enables three primary research tasks in Automated GUI Development (AGD):

  • GUI Conversion: Training models to translate phone layouts into tablet designs.
  • GUI Retrieval: Searching for existing tablet UI inspirations based on a mobile sketch or functional intent.
  • GUI Recommendation: Suggesting specific UI components to fill the expanded space available on tablet screens.

Conclusion

The Papt dataset provides a foundational resource for bridging the gap between phone and tablet UI design. By providing high-quality, pairwise data, we enable the research community to move beyond single-device analysis toward truly automated, cross-platform GUI development. Future work will focus on expanding this pairwise approach to other platforms, such as Phone-to-Desktop and Phone-to-TV conversions.

Summary updated

BibTeX
@misc{hu2023pairwise,
  author = {Han Hu and Haolan Zhan and Yujin Huang and Di Liu},
  title = {{A Pairwise Dataset for GUI Conversion and Retrieval between Android Phones and Tablets}},
  year = {2023},
  eprint = {2307.13225},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.13225},
}
Figure