Skip to main content
QUICK REVIEW

[论文解读] Ferret-UI: Grounded Mobile UI Understanding with Multimodal LLMs

Keen You, Haotian Zhang|arXiv (Cornell University)|Apr 8, 2024
Speech and dialogue systemsComputer Science被引用 3
一句话总结

Ferret-UI 是一种专用于移动用户界面(UI)屏幕精确理解与交互的多模态大语言模型(MLLM)。通过整合支持‘任意分辨率’的提示技术以处理纵向长宽比的屏幕,并在多样化UI特定任务(如指代、定位与推理)上进行训练,Ferret-UI 在基础UI任务上实现了最先进性能,其准确率甚至超过 GPT-4V,同时支持开放式指令遵循与高级对话能力。

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.

研究动机与目标

  • 为解决通用领域 MLLM 在理解具有纵向长宽比及微小精细元素(如图标和文字)的移动 UI 时的局限性。
  • 开发一种视觉-语言模型,可在 UI 屏幕上实现对点、框和手绘输入的精确指代与定位。
  • 构建一个涵盖基础 UI 任务(如图标识别、OCR)与高级推理(如功能推断、感知对话)的综合性数据集。
  • 建立一个基准测试,用于评估多种任务类型下基础与高级的 UI 理解能力。
  • 通过指令遵循与对话式推理,实现与移动 UI 的开放式、基于事实的交互。

提出的方法

  • 以性能强劲的自然图像 MLLM Ferret 作为基础模型,利用其在 UI 上下文中的指代与定位优势。
  • 引入‘任意分辨率’(anyres)提示机制,采用预设的网格配置,将竖屏与横屏屏幕分割为子图像,提升特征分辨率并增强细节捕捉能力。
  • 根据屏幕长宽比将每张屏幕划分为两个子图像——竖屏为横向分割,横屏为纵向分割——随后分别编码,并与全局特征融合。
  • 构建大规模、指令微调的数据集,包含区域标注,用于基础任务如控件分类、图标识别与文本查找。
  • 扩展数据集以涵盖高级推理任务,包括详细描述、感知对话、交互对话与功能推断,以支持复杂且基于事实的对话。
  • 采用两阶段评估流程:第一阶段评估基础任务;第二阶段通过人工标注输出与 GPT-4V 及其他 SOTA 模型对比,评估高级能力。

实验结果

研究问题

  • RQ1微调后的 MLLM 是否能在图标识别、文本查找与控件分类等基础移动 UI 任务上超越通用领域模型(如 GPT-4V)?
  • RQ2‘任意分辨率’提示机制在非正方形、纵向长宽比的移动 UI 上,如何提升视觉特征提取与定位准确率?
  • RQ3视觉-语言模型在 UI 屏幕上的开放式、基于事实的推理与对话能力(包括功能推断与基于感知的对话)能达到何种程度?
  • RQ4在使用 Set-of-Mark(SoM)提示时,Ferret-UI 与 GPT-4V 的性能对比如何,尤其是在处理微小或分组 UI 元素方面?
  • RQ5在定位与指代任务中,常见的失败模式是什么?与现有模型相比,Ferret-UI 如何缓解这些问题?

主要发现

  • Ferret-UI 在所有开源 UI 专用 MLLM 中表现最优,并在所有基础 UI 任务上超越 GPT-4V,展现出最先进的定位与指代性能。
  • ‘任意分辨率’提示机制显著提升了对微小 UI 元素的检测能力,减少了因小图标或文字被误判为邻近元素而导致的错误。
  • 在交互对话中的定位任务中,Ferret-UI 达到 91.7% 的准确率,尽管 GPT-4V 在原始坐标预测上得分更高,但其输出更冗长且不够精确,因此 Ferret-UI 表现更优。
  • 模型在高级任务中展现出强大的推理能力,包括功能推断与基于感知的对话,其输出既准确又符合上下文。
  • 常见失败模式包括将复合控件(如由多个子元素组成的按钮)误分类,以及混淆被文字包围的小图标,但这些缺陷均被 anyres 机制有效缓解。
  • GPT-4V 的 Set-of-Mark(SoM)提示受限于遮挡标签与刚性候选区域约束,尤其在密集的 Android UI 中表现不佳;而 Ferret-UI 的自由形式定位支持更灵活且精准的指代。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。