User interfaces (UIs) are the primary gateway through which we interact with the digital world. However, for an artificial intelligence, "understanding" a UI is a nightmare of diversity. An iPhone screen looks nothing like an AppleTV interface, and a web page has a completely different structural logic than an Android app. Most existing models are "specialists"—highly capable on mobile devices but entirely lost on a television screen.
In a new paper, researchers from Apple and UT Austin introduce Ferret-UI 2, a multimodal large language model (MLLM) designed to be a "generalist." This new model is capable of navigating and understanding UIs across a wide range of platforms, including iPhone, Android, iPad, Web, and AppleTV.
TL;DR
Ferret-UI 2 is a multimodal LLM that achieves state-of-the-art performance in understanding user interfaces across five major platforms. By utilizing a novel adaptive high-resolution encoding and a superior data generation pipeline powered by GPT-4o with visual prompting, it significantly outperforms its predecessor and larger models in complex, user-centered interactions.
What Problem Does This Paper Address?
The researchers identify three primary hurdles in universal UI understanding:
- Platform Diversity: UIs vary wildly in layout, logic, and aspect ratios across different devices.
- Resolution Variation: UI elements (like a tiny "close" button) are often very small. Standard models that resize images to a fixed, low resolution often "smear" these details, making them unreadable.
- Data Scarcity: High-quality, human-annotated data for diverse platforms is expensive and rare. Previous attempts to use LLMs to generate synthetic data relied on text-only descriptions of bounding boxes, which lack the visual and spatial context necessary for high-quality training.
Methods
Ferret-UI 2 introduces three key technical innovations to overcome these barriers:
- Adaptive $N$-gridding: Instead of forcing every screenshot into a fixed grid, the model uses an algorithm to determine the optimal grid size ($N_w \times N_h$) for a given image. This minimizes aspect ratio distortion and preserves the original resolution of UI elements while keeping computational costs (the number of image patches) within a predefined limit.
- Visual-Prompted Data Generation: To create better training data, the authors used GPT-4o. However, instead of just giving GPT-4o a list of coordinates, they used Set-of-Mark (SoM) prompting. They overlaid the UI with numbered, colored bounding boxes. This allowed GPT-4o to "see" the spatial relationships and generate much more accurate and complex Q&A pairs for training.
- User-Centric Interaction: Unlike models that just follow mechanical instructions (e.g., "click at 500, 200"), Ferret-UI 2 is trained on "single-step user-centered interactions." It can interpret high-level intent, such as "please confirm submission," and determine the correct UI action to take.
Datasets
The model was trained on a massive, multi-platform collection:
- Core-set: A newly curated dataset of 529k images across iPhone, Android, iPad, Web, and AppleTV, featuring both elementary tasks (OCR, grounding) and advanced tasks (perception and interaction).
- Third-party Benchmarks: The researchers incorporated GUIDE (web next-action prediction), GroundUI-18k (web interaction), and Spotlight (Android understanding).
- Evaluation: Performance was tested on the GUI-World multi-platform benchmark and the ScreenSpot grounding benchmark.
Key Insights and Ideas
- The "Visual" in Multimodal Matters: One of the biggest insights is that LLMs generate significantly better UI training data when they are given visual cues (like the SoM overlays) rather than just raw coordinate text. Spatial reasoning is fundamentally a visual task.
- Resolution is Non-Negotiable: The jump in performance from Ferret-UI to Ferret-UI 2 is largely attributed to the adaptive gridding. In UI tasks, losing a few pixels can mean the difference between seeing a button and seeing a blur.
- Cross-Platform Transfer is Asymmetric: The study found that models trained on mobile (iPhone/Android) generalize well to each other because they share portrait orientations. However, they struggle with landscape platforms like AppleTV. This proves that true "universal" understanding requires explicit multi-platform training.
Key Results
Ferret-UI 2 (specifically the version using a Llama-3-8B backbone) set new standards across the board:
- Advanced Tasks: On a suite of 45 subtasks across 5 platforms, Ferret-UI 2 achieved a GPT-4o evaluation score of 89.73, nearly doubling the original Ferret-UI's score of 45.81.
- GUI-World: It outperformed all other models, including specialized ones like SeeClick and GUI-Vid, with an average score of 2.948.
- ScreenSpot: It achieved 54.0% average accuracy in grounding, outperforming CogAgent (47.4%) and SeeClick (53.4%), demonstrating its ability to find UI elements on screens it has never seen before.
Limitations and Future Work
Despite its success, the authors note a few areas for future growth:
- Data Imbalance: The training set is still heavily weighted toward iPhone and Web data; iPad and AppleTV samples are significantly fewer.
- Single-Step vs. Multi-Step: While the model can handle multi-step interactions, the primary focus of this paper was mastering the single-step understanding required for complex UI states.
- Autonomous Agents: The ultimate goal is a fully autonomous agent that can navigate any operating system. Ferret-UI 2 provides the "eyes" and "understanding," but full autonomy will require further integration with long-term planning and execution loops.
Summary updated