Skip to main content
QUICK REVIEW

[Paper Review] Ferret-UI: Grounded Mobile UI Understanding with Multimodal LLMs

Keen You, Haotian Zhang|arXiv (Cornell University)|Apr 8, 2024
Speech and dialogue systemsComputer Science3 citations
TL;DR

Ferret-UI is a specialized multimodal large language model (MLLM) designed for precise understanding and interaction with mobile user interface (UI) screens. By integrating 'any resolution' prompting to handle elongated aspect ratios and training on diverse UI-specific tasks—including referring, grounding, and reasoning—it achieves state-of-the-art performance on elementary UI tasks, surpassing even GPT-4V in accuracy while enabling open-ended instruction following and advanced dialogue capabilities.

ABSTRACT

Recent advancements in multimodal large language models (MLLMs) have been noteworthy, yet, these general-domain MLLMs often fall short in their ability to comprehend and interact effectively with user interface (UI) screens. In this paper, we present Ferret-UI, a new MLLM tailored for enhanced understanding of mobile UI screens, equipped with referring, grounding, and reasoning capabilities. Given that UI screens typically exhibit a more elongated aspect ratio and contain smaller objects of interest (e.g., icons, texts) than natural images, we incorporate "any resolution" on top of Ferret to magnify details and leverage enhanced visual features. Specifically, each screen is divided into 2 sub-images based on the original aspect ratio (i.e., horizontal division for portrait screens and vertical division for landscape screens). Both sub-images are encoded separately before being sent to LLMs. We meticulously gather training samples from an extensive range of elementary UI tasks, such as icon recognition, find text, and widget listing. These samples are formatted for instruction-following with region annotations to facilitate precise referring and grounding. To augment the model's reasoning ability, we further compile a dataset for advanced tasks, including detailed description, perception/interaction conversations, and function inference. After training on the curated datasets, Ferret-UI exhibits outstanding comprehension of UI screens and the capability to execute open-ended instructions. For model evaluation, we establish a comprehensive benchmark encompassing all the aforementioned tasks. Ferret-UI excels not only beyond most open-source UI MLLMs, but also surpasses GPT-4V on all the elementary UI tasks.

Motivation & Objective

  • To address the limitations of general-domain MLLMs in understanding mobile UIs, which feature elongated aspect ratios and small, fine-grained elements like icons and text.
  • To develop a vision-language model capable of precise referring and grounding on UI screens, including point, box, and scribble inputs.
  • To curate a comprehensive dataset spanning elementary UI tasks (e.g., icon recognition, OCR) and advanced reasoning (e.g., function inference, perception conversations).
  • To establish a benchmark evaluating both elementary and advanced UI understanding capabilities across multiple task types.
  • To enable open-ended, grounded interaction with mobile UIs through instruction-following and dialogue-based reasoning.

Proposed method

  • Adapt Ferret, a strong natural image MLLM, as the base model to leverage its referring and grounding strengths in UI contexts.
  • Introduce 'any resolution' (anyres) prompting with pre-defined grid configurations to split portrait and landscape screens into sub-images, enhancing feature resolution and detail capture.
  • Divide each screen into two sub-images based on aspect ratio—horizontally for portrait, vertically for landscape—before separate encoding and fusion with global features.
  • Curate a large-scale, instruction-tuned dataset with region annotations for elementary tasks such as widget classification, icon recognition, and text finding.
  • Extend the dataset to include advanced reasoning tasks, including detailed description, perception conversations, interaction conversations, and function inference, to support complex, grounded dialogue.
  • Employ a two-stage evaluation pipeline: first, benchmark elementary tasks; second, evaluate advanced capabilities via human-annotated outputs and model comparison with GPT-4V and other SOTA models.

Experimental results

Research questions

  • RQ1Can a fine-tuned MLLM achieve superior performance on elementary mobile UI tasks such as icon recognition, text finding, and widget classification compared to general-domain models like GPT-4V?
  • RQ2How does the 'any resolution' prompting mechanism improve visual feature extraction and grounding accuracy on mobile UIs with non-square, elongated aspect ratios?
  • RQ3To what extent can a vision-language model perform grounded, open-ended reasoning and dialogue about UI screens, including function inference and perception-based conversations?
  • RQ4How does Ferret-UI’s performance compare to GPT-4V when using Set-of-Mark (SoM) prompting, especially in handling small or grouped UI elements?
  • RQ5What are the key failure modes in grounding and referring tasks, and how does Ferret-UI mitigate them compared to existing models?

Key findings

  • Ferret-UI outperforms all open-source UI-specific MLLMs and surpasses GPT-4V on all elementary UI tasks, demonstrating state-of-the-art performance in grounding and referring.
  • The 'any resolution' prompting mechanism significantly improves detection of small UI elements, reducing errors in cases where small icons or texts are misclassified as neighboring elements.
  • Ferret-UI achieves 91.7% accuracy in grounding tasks during interaction conversations, outperforming GPT-4V in raw coordinate prediction despite GPT-4V’s higher overall score due to verbose, less precise responses.
  • The model exhibits strong reasoning capabilities in advanced tasks, including function inference and perception-based dialogue, with outputs that are both grounded and contextually relevant.
  • Common failure modes include misclassifying composite widgets (e.g., a button made of multiple sub-elements) and confusing small icons surrounded by text, but these are mitigated by the anyres mechanism.
  • GPT-4V’s Set-of-Mark (SoM) prompting is limited by obscured labels and rigid candidate region constraints, especially in dense Android UIs, whereas Ferret-UI’s free-form grounding enables more flexible and accurate referencing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.