Skip to main content
QUICK REVIEW

[Paper Review] Ferret: Refer and Ground Anything Anywhere at Any Granularity

Haoxuan You, Haotian Zhang|arXiv (Cornell University)|Oct 11, 2023
Multimodal Machine Learning ApplicationsComputer Science43 citations
TL;DR

Ferret is a multimodal large language model that unifies referring and grounding across point, box, and free-form regions using a hybrid region representation and a spatial-aware visual sampler, trained on GRIT with 1.1M samples, and evaluated with Ferret-Bench showing strong performance and reduced object hallucination.

ABSTRACT

We introduce Ferret, a new Multimodal Large Language Model (MLLM) capable of understanding spatial referring of any shape or granularity within an image and accurately grounding open-vocabulary descriptions. To unify referring and grounding in the LLM paradigm, Ferret employs a novel and powerful hybrid region representation that integrates discrete coordinates and continuous features jointly to represent a region in the image. To extract the continuous features of versatile regions, we propose a spatial-aware visual sampler, adept at handling varying sparsity across different shapes. Consequently, Ferret can accept diverse region inputs, such as points, bounding boxes, and free-form shapes. To bolster the desired capability of Ferret, we curate GRIT, a comprehensive refer-and-ground instruction tuning dataset including 1.1M samples that contain rich hierarchical spatial knowledge, with 95K hard negative data to promote model robustness. The resulting model not only achieves superior performance in classical referring and grounding tasks, but also greatly outperforms existing MLLMs in region-based and localization-demanded multimodal chatting. Our evaluations also reveal a significantly improved capability of describing image details and a remarkable alleviation in object hallucination. Code and data will be available at https://github.com/apple/ml-ferret

Motivation & Objective

  • Motivate unifying referring and grounding within an LLM framework.
  • Enable accurate handling of versatile region inputs including points, boxes, and free-form shapes.
  • Develop an open-vocabulary, instruction-following refer-and-ground model robust to hallucinations.
  • Construct a large-scale refer-and-ground instruction-tuning dataset (GRIT) with negative samples for robustness.
  • Provide comprehensive benchmarking (Ferret-Bench) for joint refer-and-ground tasks and dialogue-based grounding.

Proposed method

  • Introduce a hybrid region representation that combines discretized coordinates with continuous region features.
  • Develop a spatial-aware visual sampler to extract continuous features from irregular region shapes.
  • Integrate region representations into an LLM-based model (Vicuna on LLaMA weights) with a linear projection layer for image features.
  • Curate GRIT, a 1.1M sample instruction-tuning dataset with region-in/text-out, text-in/region-out, and combined formats, plus 95k hard negatives.
  • Add GPT-assisted data generation and spatial negative mining to improve robustness and open-vocabulary grounding.

Experimental results

Research questions

  • RQ1Can referring and grounding be effectively unified in a single Multimodal LLM framework?
  • RQ2How can regions of arbitrary shapes be represented and processed to support open-vocabulary referring and grounding?
  • RQ3Does instruction-tuning on a large GRIT dataset improve robustness, grounding accuracy, and reduce object hallucination in multimodal dialogue?
  • RQ4What is Ferret’s performance relative to existing MLLMs on region-based tasks and in grounding-aware multimodal conversations?
  • RQ5How well does Ferret perform in grounded dialogue scenarios (Ferret-Bench) that mix referring, grounding, and reasoning?

Key findings

  • Ferret achieves superior performance on conventional referring and grounding benchmarks compared with prior MLLMs.
  • Ferret substantially outperforms existing models in region-based and localization-demanded multimodal chatting.
  • Ferret reduces object hallucination and improves description of image details.
  • Ferret attains strong results on REC and phrase grounding benchmarks (e.g., RefCOCO/RefCOCO+/RefCOCOg and Flickr30k Entities).
  • Ferret enables referring with point, box, and free-form shapes, addressing a capability absent in many prior works.

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.