TL;DR
Griffon is a pure Large Vision Language Model (LVLM) capable of localizing multiple objects at any granularity using free-form text prompts, completely eliminating the need for specialized detection heads or external expert plug-ins. By unifying data formats and employing a progressive two-stage training pipeline, Griffon achieves state-of-the-art results on referring expression comprehension and phrase grounding, while closely rivaling dedicated object detection models on MSCOCO.
What Problem Does This Paper Address?
Humans possess an innate ability to locate objects in a visual scene based on arbitrary text descriptions, whether it's a highly specific target ("the blue sedan parked under the tree") or a broad category ("all pedestrians").
However, current Large Vision Language Models (LVLMs) struggle to replicate this flexibility. Most are constrained to Referring Expression Comprehension (REC), meaning they can only locate a single, pre-existing object. When faced with complex real-world scenarios—such as identifying multiple instances of a category, handling multi-category queries simultaneously, or correctly identifying when a requested object is entirely absent—standard LVLMs fail.
To circumvent this, existing approaches often compromise their architecture by tacking on specialized visual detection/segmentation heads or using APIs to call external expert models. While functional, these workarounds break the unified text-in, text-out nature of LLMs, exponentially increase parameter counts, and fail to leverage the LLM's internal knowledge to generalize to unseen objects.
Methods
Griffon retains a streamlined, purely text-based LVLM architecture (built on LLaVA, utilizing CLIP ViT-L/14 and LLaMA-2-13B) but introduces three key innovations to master object localization:
- Unified Input-Output Representation: Instead of introducing custom tokens, Griffon "spells out" bounding boxes using standard numerical characters formatted as
label-[x1, y1, x2, y2]. For scenarios involving multiple objects, it seamlessly concatenates the predictions using an&symbol within a single forward pass. - Progressive Two-Stage Training Pipeline:
- Stage I (Basic Scenarios Pre-training): The model is trained end-to-end on a massive 6M-sample dataset. Crucially, the authors unfreeze the visual encoder during this stage, ensuring that fine-grained spatial details are preserved in the visual features.
- Stage II (Full Scenarios Instruction Tuning): The LLM and projection layer are finetuned on 900K instruction-following samples to sharpen the model's ability to comprehend complex user intents and handle negative constraints (e.g., outputting "None" when an object doesn't exist).
- Training-Free Confidence Scoring: To rank and filter multi-object predictions during inference, Griffon calculates a confidence score derived from the geometric mean of the LLM's token probabilities for both the object label and its coordinates.
Datasets
The authors introduced a newly curated Language-prompted Localization Dataset to bridge the data gap in multi-object, multi-granularity localization:
- Pre-training Data (6M samples): Sourced from Visual Genome and Objects365, with task templates generated via GPT-4V.
- Instruction-following Data (900K samples): Built using Flickr30K Entities and LVIS (leveraging LVIS's "negative categories" to teach the model how to handle absent objects).
For evaluation, the authors tested Griffon across three distinct tasks:
- REC: RefCOCO, RefCOCO+, and RefCOCOg.
- Phrase Grounding: Flickr30K Entities.
- Object Detection: MSCOCO 2017.
Key Insights and Ideas
- Text is a Sufficient Bounding Box Head: Griffon demonstrates that specialized architectural modifications are not strictly necessary for high-quality localization. A pure autoregressive language model can learn to output precise coordinates natively.
- Label-First Generation Order is Critical: Through ablation studies, the authors discovered that outputting the text label before the coordinates (
label-[box]) improved object detection mAP by 4.4% compared to coordinate-first generation ([box]-label). Generating the label first allows the autoregressive model to resolve semantic uncertainty before committing to spatial boundaries. - Unfreezing the Visual Backbone Matters: Standard LVLM training typically freezes the visual encoder to save compute. However, Griffon shows that tuning the visual backbone during pre-training is essential for capturing the fine-grained features necessary to detect small or partially occluded objects.
Key Results
- RefCOCO Series: Griffon-13B achieved state-of-the-art performance among generalist models, scoring 90.1% accuracy on the RefCOCO val set, outperforming heavily trained models like Qwen-VL.
- Flickr30K Entities: Set a new generalist SOTA under both the ANY-BOX (83.7% val) and MERGED-BOX (82.0% val) evaluation protocols.
- MSCOCO 2017 Object Detection: While standard LVLMs typically score near 0 mAP on full object detection because they cannot handle multi-category queries simultaneously, Griffon achieved a remarkable 24.8 mAP. This closely approaches the expert Faster R-CNN model (26.3 mAP) and actually outperforms it on small objects ($AP_S$ of 5.9 vs 4.6).
Limitations and Future Work
The primary limitation acknowledged by the authors is that Griffon is heavily specialized for localization tasks. Because the training pipeline and dataset focus strictly on spatial coordinates and labels, it sacrifices the broader conversational capabilities of standard LVLMs. The authors note that their next step is to integrate a wider array of vision-language tasks (like dense captioning and visual question answering) into Griffon without degrading its exceptional localization performance.
Summary updated