TL;DR
Ferret-UI 2 is a new multimodal large language model (MLLM) that achieves "universal" user interface understanding across diverse platforms, including iPhone, Android, iPad, Web, and AppleTV. By combining a novel adaptive high-resolution encoding technique with high-quality training data generated via visual prompting, it significantly outperforms its predecessor and demonstrates impressive cross-platform transfer capabilities.
What Problem Does This Paper Address?
Interacting with digital systems is increasingly complex because UIs are everywhere—from the palm of your hand to your living room wall. However, building a single AI model that understands all these interfaces is difficult for three main reasons:
- Platform Diversity: A mobile app looks and behaves very differently from a smart TV interface or a complex webpage.
- Resolution Variation: Models often struggle with "any-resolution" inputs, losing fine-grained details (like small icons or text) when images are resized to fit fixed model architectures.
- Data Scarcity: High-quality, platform-specific training data is hard to come by. Previous efforts often relied on text-only prompts for data generation, which lack the spatial and visual context necessary for deep UI understanding.
Methods
Ferret-UI 2 builds on the original Ferret-UI architecture but introduces three major innovations:
- Multi-Platform Support: The model is trained to handle five distinct environments (iPhone, Android, iPad, Web, and AppleTV), allowing it to scale across the modern device ecosystem.
- Adaptive N-gridding: To handle varying resolutions without losing detail, the authors developed an enhanced adaptive gridding approach. This algorithm automatically finds the optimal grid configuration to represent a screenshot, minimizing aspect ratio distortion and pixel loss while staying within a predefined computational budget.
- Visual Prompting for Data Generation: Instead of asking GPT-4 to generate training data based on text descriptions of bounding boxes, the authors used Set-of-Mark (SoM) visual prompting. By overlaying numbered boxes on screenshots before sending them to GPT-4o, they enabled the teacher model to "see" spatial relationships, resulting in much higher-quality training samples for complex, user-centered tasks.
Datasets
The researchers curated a massive Core-set of 529,411 images across the five target platforms. Unlike previous datasets that relied on model-detected boxes, Ferret-UI 2 utilizes human-collected annotations and HTML-parsed data for superior accuracy.
For evaluation, they used:
- Constructed Benchmarks: 45 tasks covering referring, grounding, and advanced reasoning.
- Public Benchmarks: GUIDE (next-action prediction), GUI-World (multi-platform), and ScreenSpot (grounding on unseen data).
Key Insights and Ideas
- The "Portrait vs. Landscape" Gap: The authors found that knowledge transfers well between iPhone, Android, and iPad because they share similar content and portrait-heavy layouts. However, AppleTV and Web act more like "islands" due to their landscape orientation and distinct UI patterns.
- Visual Context is King: Moving from text-based data generation to visual prompting (SoM) was a game-changer. It allowed the model to move beyond mechanical "click here" instructions to understanding user intent, such as "please confirm submission."
- Resolution Matters: The Adaptive N-gridding ensures that the model maintains perception capabilities at the original resolution of the UI, which is critical for identifying small, high-density elements common in web and tablet interfaces.
Key Results
Ferret-UI 2 shows a massive leap in performance over the original Ferret-UI and even rivals GPT-4o in specific UI tasks:
- Advanced Tasks: On a suite of 9 subtasks, Ferret-UI 2 (using a Llama3-8B backbone) achieved a GPT-4o evaluation score of 89.73, nearly doubling the original Ferret-UI's score of 45.81.
- Grounding Accuracy: On the GUIDE benchmark, it achieved a 55.78 IoU, significantly outperforming previous state-of-the-art models like SeeClick.
- Zero-Shot Transfer: The model demonstrated a remarkable ability to generalize. For instance, a model trained on iPhone data could still perform respectably on Android and iPad tasks without ever seeing those specific platforms during training.
Limitations and Future Work
While Ferret-UI 2 is a major step toward a universal UI agent, the authors note a few areas for improvement:
- Data Imbalance: The dataset is currently skewed toward iPhone and Web data; AppleTV and iPad samples are significantly fewer, which may limit peak performance on those platforms.
- Single-Step vs. Multi-Step: The current model focuses primarily on single-step interactions. The authors aim to evolve Ferret-UI 2 into a full "generalist agent" capable of multi-step navigation and complex task completion across apps.
- Platform Expansion: Future iterations will likely incorporate even more platform types, such as desktop operating systems (macOS/Windows) and XR environments.
Summary updated