Abstract
This paper presents a grounded language-image pre-training (GLIP) model for learning object-level, language-aware, and semantic-rich visual representations. GLIP unifies object detection and phrase grounding for pre-training. The unification brings two benefits: 1) it allows GLIP to learn from both detection and grounding data to improve both tasks and bootstrap a good grounding model; 2) GLIP can leverage massive image-text pairs by generating grounding boxes in a self-training fashion, making the learned representation semantic-rich. In our experiments, we pre-train GLIP on 27M grounding data, including 3M human-annotated and 24M web-crawled image-text pairs. The learned representations demonstrate strong zero-shot and few-shot transferability to various object-level recognition tasks. 1) When directly evaluated on COCO and LVIS (without seeing any images in COCO during pre-training), GLIP achieves 49.8 AP and 26.9 AP, respectively, surpassing many supervised baselines. 2) After fine-tuned on COCO, GLIP achieves 60.8 AP on val and 61.5 AP on test-dev, surpassing prior SoTA. 3) When transferred to 13 downstream object detection tasks, a 1-shot GLIP rivals with a fully-supervised Dynamic Head.
Introduction
Traditional object detection models are typically "closed-set," restricted to recognizing a fixed list of categories defined during training. Expanding these models to new objects, such as "potholes" or specific wildlife, usually requires labor-intensive data collection and manual labeling. While vision-language models like CLIP have advanced image-level classification, they lack the spatial precision required for localization.
Grounded Language-Image Pre-training (GLIP) addresses this by unifying object detection and phrase grounding into a single scalable pre-training task. By reformulating detection as a language-alignment problem, GLIP creates a "language-aware" detector capable of localizing virtually any object mentioned in a text prompt, moving the field toward true "Object Detection in the Wild."
Methods: Unifying Detection and Grounding
The core innovation of GLIP is treating every detection task as a grounding task. Instead of a traditional classifier predicting a category ID, GLIP computes alignment scores between image regions and words in a text prompt.
Key components include:
- Deep Fusion: Unlike late-fusion models that only compare features at the final stage, GLIP employs cross-modality multi-head attention throughout the encoding process. This ensures visual features are conditioned on the linguistic context from the start.
- Scalable Pre-training: To expand vocabulary, GLIP uses a teacher-student self-training strategy. A teacher model generates "pseudo-labels" for 24 million web-crawled image-text pairs, providing a massive, semantically rich dataset for the student model.
Key Insights and Results
GLIP's performance demonstrates the power of grounding as a universal language for detection. By leveraging descriptive text, the model learns about rare entities and abstract concepts often ignored by standard datasets.
- Zero-Shot Transfer: Without seeing any COCO images during pre-training, GLIP-L achieved 49.8 AP, outperforming many supervised baselines. On the LVIS benchmark, it reached 26.9 AP.
- State-of-the-Art Fine-tuning: When fine-tuned on COCO, GLIP reached 61.5 AP, setting a new record.
- Data Efficiency: In the "Object Detection in the Wild" (ODinW) benchmark, a 1-shot GLIP model rivaled fully supervised specialized models across 13 diverse datasets.
Conclusion
GLIP represents a significant shift toward open-vocabulary object detection. By unifying detection with grounding and scaling with web-crawled data, it achieves unprecedented zero-shot and few-shot performance. Future work aims to extend this framework to other spatial tasks like segmentation and human pose estimation.
Summary updated