GLIPv2: Unifying Localization and Vision-Language Understanding

Haotian Zhang, Pengchuan Zhang, Xiaowei Hu, Yen-Chun Chen, Liunian Harold Li, Xiyang Dai, Lijuan Wang, Lu Yuan, Jenq-Neng Hwang, Jianfeng Gao

Abstract

GLIPv2 introduces a unified framework for vision-language tasks, bridging the gap between localization (e.g., object detection) and understanding (e.g., visual question answering). By reformulating detection as a phrase-grounding task and employing a novel inter-image contrastive loss, GLIPv2 achieves state-of-the-art performance across diverse benchmarks using a single set of shared model weights. This "grounded" approach allows the model to excel in both traditional vision tasks and complex language-driven reasoning.

Introduction

Traditionally, computer vision has been bifurcated into two distinct domains: Localization (determining "where" objects are) and Vision-Language (VL) Understanding (interpreting "what" is happening). The standard industry practice relies on a two-stage pipeline: a heavy object detector extracts region features, which are then processed by a separate VL model. This approach suffers from computational inefficiency, a semantic gap between vision-only detectors and language, and a reliance on fixed vocabularies that hinder zero-shot performance on novel objects.

GLIPv2 addresses these limitations by creating a unified, grounded model where localization and understanding mutually reinforce each other. By treating grounding—the ability to link image regions to specific phrases—as a meta-capability, GLIPv2 unifies these tasks into a single, cohesive architecture.

Methods and Architecture

The core philosophy of GLIPv2 is the classification-to-matching trick. It replaces fixed-vocabulary classification layers with a dot-product layer that calculates similarity between image regions and word embeddings. This transformation turns a standard detector into an open-vocabulary grounding engine.

The GLIPv2 architecture unifies localization and understanding tasks through a shared image-text encoder and deep fusion blocks.

Unified Architecture (Arch $\Pi$)

The model employs a dual-encoder setup (Swin Transformer for images and BERT/CLIP-style Transformers for text) connected by Deep Fusion Blocks. These blocks facilitate cross-attention between visual and textual features throughout the network, allowing for deep integration rather than late-stage fusion.

Pre-training Strategy

GLIPv2 is pre-trained using three primary tasks:

  1. Phrase Grounding: Reformulates detection data to match bounding boxes with specific words.
  2. Inter-image Region-Word Contrastive Learning: A novel contribution that forces the model to distinguish entities across an entire batch, improving the discriminative power of the embeddings.
  3. Masked Language Modeling (MLM): Standard linguistic training to enhance text understanding.

To scale training, the authors utilize "pseudo-boxes" generated by a teacher model (GLIP-L) for web-scale image-text pairs, converting raw captions into high-quality grounding data.

Key Results and Insights

GLIPv2 demonstrates that localization and VL understanding are mutually beneficial. Adding VL data improves the detection of rare objects, while detection data enhances spatial awareness for tasks like VQA.

  • Unified Performance: A single GLIPv2-H model achieves a 62.4 AP on COCO test-dev and 74.8 on VQA, rivaling specialized state-of-the-art models.
  • Zero-Shot Capabilities: The "Tiny" version (GLIPv2-T) reaches 47.3 AP on COCO without seeing any COCO training images.
  • Grounded Generation: One of the most compelling features of GLIPv2 is its ability to generate captions while simultaneously providing bounding boxes for every entity mentioned, significantly improving model interpretability.
An example of grounded captioning where the model provides bounding boxes for phrases like "a group," "bikes," and "a street" within the generated text.

Conclusion

GLIPv2 represents a significant step toward a universal vision-language model. By unifying localization and understanding, it achieves high efficiency and broad generalization. While the model currently relies on pseudo-labels and faces the inherent biases of web-scale data, its success on benchmarks like ODinW (Object Detection in the Wild) proves the power of grounded pre-training. Future work will likely focus on scaling these architectures to even more complex reasoning tasks.

Summary updated

BibTeX
@inproceedings{zhang2022glipv,
  author = {Haotian Zhang and Pengchuan Zhang and Xiaowei Hu and Yen-Chun Chen and Liunian Harold Li and Xiyang Dai and Lijuan Wang and Lu Yuan and Jenq-Neng Hwang and Jianfeng Gao},
  title = {{GLIPv2: Unifying Localization and Vision-Language Understanding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=wiBEFdAvl8L},
}
Figure