TL;DR
Ferret is a novel Multimodal Large Language Model (MLLM) capable of "referring" to any image region—using points, bounding boxes, or free-form scribbles—and "grounding" open-vocabulary descriptions by predicting precise coordinates. By combining discrete coordinates with a unique spatial-aware visual sampler, Ferret achieves state-of-the-art performance in spatial reasoning while significantly reducing object hallucinations.
The Challenge of Spatial Understanding in MLLMs
While Multimodal Large Language Models (MLLMs) like LLaVA have made massive strides in describing images, they frequently struggle with precise spatial understanding. Historically, most models treat "referring" (pointing to a specific region and asking about it) and "grounding" (asking the model to locate something in the image) as entirely separate tasks.
Furthermore, existing models are typically restricted to using bounding boxes. Bounding boxes can be incredibly "noisy" for thin, irregular, or overlapping objects (like a wire or a pen), often capturing too much background or parts of adjacent objects. Ferret aims to unify referring and grounding into a single, cohesive framework capable of handling any granularity—from a single pixel to a complex, hand-drawn polygon.
How Ferret Works
To achieve this unified spatial understanding, the researchers introduce three key technical innovations:
- Hybrid Region Representation: To represent a region, Ferret does not rely solely on coordinates. Instead, it combines discrete coordinates (quantized numbers in the text stream) with continuous visual features. This dual approach ensures the model possesses both the precise "address" of the object and its high-level visual context.
- Spatial-Aware Visual Sampler: Because regions can be highly irregular (like a scribble or a lassoed shape), standard grid-based sampling falls short. Drawing inspiration from 3D point cloud processing, Ferret utilizes a sampler that performs Farthest Point Sampling (FPS) and K-Nearest Neighbors (KNN) grouping. This allows it to extract robust features from any shape, regardless of its sparsity or complexity.
- Unified Architecture: Under the hood, Ferret employs a CLIP-ViT-L/14 image encoder paired with a Vicuna LLM. The region features extracted by the spatial-aware sampler are projected into the same space as the text embeddings, allowing the model to seamlessly "read" image regions as if they were words in a sentence.
The GRIT Dataset
To train Ferret, the researchers curated a massive new dataset called GRIT (Ground-and-Refer Instruction-Tuning). This dataset includes:
- 1.1 Million Samples: A combination of converted public datasets (such as Visual Genome and RefCOCO) alongside newly generated data.
- GPT-Assisted Data: 34,000 high-quality dialogues generated by GPT-4 to enhance the model's complex reasoning capabilities.
- Spatial Negative Mining: 95,000 samples specifically designed to teach the model when an object is not present. This hard negative data is crucial for preventing the model from "hallucinating" objects that do not exist in the image.
Alongside GRIT, the team introduced Ferret-Bench, a new evaluation suite focusing on Referring Description, Referring Reasoning, and Grounding in Conversation.
Key Insights and Results
Ferret's unified approach yields several critical insights and performance leaps:
- Boxes Aren't Always Enough: The paper demonstrates that free-form shapes (scribbles/polygons) are far superior for disambiguating objects that are clustered together or have thin, irregular profiles.
- The Power of Hybridity: Using only coordinates is too obscure for LLMs, while using only visual features lacks spatial precision. Combining them allows the model to simultaneously "see" the region and know exactly where it is located.
- Superior Grounding and Chatting: On the Flickr30k Entities benchmark, Ferret-13B achieved a 38.03 F1_loc score, significantly outperforming specialized models like UniTAB (34.79). On the new Ferret-Bench, Ferret outperformed existing MLLMs (like Shikra and LLaVA) by an average of 20.4%.
- Reduced Hallucination: Thanks to the spatial negative mining in GRIT, Ferret achieved 90.24% accuracy in the "Random" category of the POPE hallucination benchmark, crushing Shikra (86.9%) and LLaVA (50.37%).
Limitations and Future Directions
While Ferret represents a major step forward, the authors acknowledge a few limitations. The model's accuracy tends to drop when a single query refers to more than three objects simultaneously, and like most vision models, it struggles with very tiny objects due to the input resolution limits of the image encoder. Additionally, the training data is currently English-only.
Finally, while Ferret can input free-form shapes, it currently only outputs bounding boxes. Integrating mask-generation capabilities (similar to models like LISA) is highlighted as a highly promising direction for future work.
Summary updated