Bridging the Gap between Object and Image-level Representations for Open-Vocabulary Detection

Hanoona Rasheed, Muhammad Maaz, Muhammad Uzair Khattak, Salman Khan, Fahad Shahbaz Khan

TL;DR

This paper introduces a novel framework for Open-Vocabulary Detection (OVD) that bridges the gap between image-level pretraining (like CLIP) and object-level detection. By leveraging high-quality pseudo-labels from multi-modal Vision Transformers and a unique weight transfer mechanism, the authors achieve a massive 8.2 AP gain on novel classes for COCO and significantly outperform state-of-the-art models on LVIS.

What Problem Does This Paper Address?

Standard object detectors are "closed-vocabulary"—they can only recognize classes they were explicitly trained on. Open-Vocabulary Detection (OVD) aims to break this limit, allowing models to detect novel objects defined by any text prompt at inference time.

To achieve this, researchers typically use "weak supervision," such as pretrained models like CLIP or image-level labels (e.g., "this image contains a cat" without a bounding box). However, there is a fundamental mismatch:

  1. CLIP is image-centric: It is trained on full image-text pairs and lacks the precise localization needed to distinguish a small object from its background.
  2. Weak labels are poorly grounded: Most methods use simple heuristics (like picking the largest box in an image) to guess where a labeled object is, which often leads to noisy training signals.

This paper seeks to transform these image-level cues into precise, object-centric representations.

Methods

The authors propose a three-pronged strategy to align visual and language representations at the object level:

  1. Region-based Knowledge Distillation (RKD): Instead of distilling CLIP features from the whole image, they use a pretrained multi-modal ViT (MViT) to generate high-quality, class-agnostic object proposals. They then distill CLIP’s visual embeddings into the detector's region features using two losses:
  2. Point-wise matching ($L_1$): Aligns individual region embeddings.
  3. Inter-embedding relationship matching (IRM): Ensures that the relationships between different objects in the detector's space match the relationships in CLIP's space, preserving semantic structure.
  4. Pseudo-labeling for Image-Level Supervision (ILS): To expand the vocabulary using image-level labels, they move beyond simple heuristics. They use the MViT to perform "visual grounding"—querying the model with specific class names to find the most likely bounding box for a given label. This provides much cleaner training data for novel categories.
  5. Weight Transfer Function: This is the "bridge." The authors found that naively combining RKD and ILS leads to "competition" between the two objectives, hurting performance. They introduce a novel weight transfer module—a small MLP—that conditions the visual-language mapping learned during ILS on the mapping learned during RKD. This ensures the two strategies work complementarily rather than in conflict.
Figure 1: An overview of our proposed object-centric framework for OVD. We pair a two-stage object detector with fixed language embeddings from a pretrained visual-language (VL) model, CLIP [3]. Our pro- posed pseudo-labeling strategy Qpseudo uses pretrained multi-modal ViTs to obtain high-quality class-agnostic and class-specific proposals. The overall pipeline follows a stage-wise learning strategy. First, we introduce

Datasets

The model was trained and evaluated on several standard benchmarks:

  • COCO: Used the OVD split (48 base classes for training, 17 novel classes for testing).
  • LVIS v1.0: A large-scale dataset with a long tail of categories. The authors combined "frequent" and "common" classes as base, and "rare" as novel.
  • Weak Supervision Sources: COCO-Captions and a subset of ImageNet-21K (997 categories overlapping with LVIS).
  • Cross-dataset Evaluation: To test generalization, the LVIS-trained model was tested on OpenImages and Objects365 without any further finetuning.

Key Insights and Ideas

  • Proposals Matter: The authors show that using high-quality proposals from a multi-modal ViT for distillation is far superior to using standard RPN (Region Proposal Network) proposals. The MViT provides "tighter" boxes that capture better object-level semantics.
  • Preserving Latent Structure: The Inter-embedding relationship matching (IRM) loss is crucial. It prevents the detector's feature space from collapsing and ensures that "dog" regions remain closer to "cat" regions than to "car" regions, mirroring CLIP's rich semantic space.
  • The Synergy of Weight Transfer: The weight transfer function acts as a regularizer. By tying the ILS weights to the RKD weights, the model retains the object-centric alignment learned from distillation while successfully expanding its vocabulary through pseudo-labeled images.
Figure 2: Top-row: Similarity matrices computed on the CLIP (SI) and detector (SR) region embeddings for COCO novel classes. A subset of 100 randomly selected samples per category form a batch represented by a column are grouped together. Our region-based distillation enforces the similarity patterns in the RKD model to be closer to the teacher model, CLIP, indicated by the bright colors along diagonals. Bottom-row: t-SNE plots of CLIP and detector region embeddings on novel COCO categories. The CLIP aligned RKD and weight transfer detector embeddings shows improved separability among novel class features as compared to the supervised detector region embeddings (figure best viewed in-zoom).

Key Results

  • COCO OVD: Achieved 36.6 AP50 on novel classes, an absolute gain of 8.2 points over the previous state-of-the-art.
  • LVIS OVD: Surpassed the well-known ViLD model by 5.0 mask AP on rare categories and 3.4 AP overall.
  • Zero-shot Generalization: In cross-dataset tests, the model outperformed Detic and ViLD on OpenImages and Objects365, proving that the learned representations are robust and not just overfitted to one dataset.

Limitations and Future Work

  • The Base-Novel Gap: While the gains are significant, there is still a performance gap between base classes (which have full box annotations) and novel classes (which rely on weak supervision).
  • Teacher Dependency: The model's performance is ultimately bounded by the quality and vocabulary of the teacher models (CLIP and MViT).
  • Ethical Biases: As the authors note, since the model relies on internet-scale pretraining (CLIP), it may inherit societal or racial biases present in those datasets. Future work is needed to mitigate these biases in the OVD context.

Summary updated

BibTeX
@inproceedings{rasheed2022bridging,
  author = {Hanoona Rasheed and Muhammad Maaz and Muhammad Uzair Khattak and Salman Khan and Fahad Shahbaz Khan},
  title = {{Bridging the Gap between Object and Image-level Representations for Open-Vocabulary Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=nhtQWHMQWJ},
}
Figure