DetCLIP: Dictionary-Enriched Visual-Concept Paralleled Pre-training for Open-world Detection

Lewei Yao, Jianhua Han, Youpeng Wen, Xiaodan Liang, Dan Xu, Wei Zhang, Zhenguo Li, Chunjing Xu, Hang Xu

TL;DR

DetCLIP introduces a highly efficient vision-language pre-training framework for open-world object detection. By feeding category concepts into the text encoder in parallel and enriching them with dictionary definitions, DetCLIP learns from heterogeneous datasets (detection, grounding, and image-text pairs) much faster and more accurately than prior state-of-the-art models like GLIP.

The Problem: Sequential Inefficiency and Partial Labels

Traditional object detectors are limited to a predefined set of categories (e.g., the 80 classes in COCO). Open-world object detection aims to break this barrier, allowing models to identify and localize objects based on arbitrary text prompts.

Recent breakthroughs like GLIP tackle this by treating detection as a phrase-grounding problem, concatenating all possible category names into a single, massive sentence prompt. However, this "sequential" formulation has major flaws:

  • Inefficient Attention: It forces the text encoder to compute useless attention between completely unrelated categories.
  • Token Limits: It restricts the number of negative samples due to maximum sequence lengths.
  • Lack of Context: It makes it computationally unfeasible to include detailed descriptions of the objects.

Furthermore, when trying to learn from cheap, web-crawled image-text pairs, models face a "partial labeling" problem. Captions typically only mention a few salient objects, leaving the rest of the image unannotated and confusing the detector during training.

The DetCLIP Solution

DetCLIP solves these inefficiencies through two primary innovations: Paralleled Concept Formulation and a Concept Dictionary.

1. Paralleled Concept Formulation

Instead of concatenating category names into one giant sentence, DetCLIP extracts concepts and feeds them independently and parallelly into the text encoder. This severs unnecessary cross-concept attention, allows for longer text inputs per concept, and drastically speeds up processing. It turns out that for object detection, the isolated noun phrase is much more critical than the surrounding sentence context.

2. Concept Dictionary

The authors built a large-scale dictionary of ~14,000 concepts (sourced from datasets like Objects365 and YFCC100m) paired with their WordNet definitions.

Concept Dictionary Enrichment

This dictionary is utilized in three clever ways:

  • Concept Enrichment: The model doesn't just embed the word "car"; it embeds "car, a motor vehicle with four wheels...". This injects prior knowledge and helps the model understand implicit hierarchical relationships between concepts without needing explicit knowledge graphs.
  • Negative Sampling: The dictionary provides a massive pool of negative concepts to sample from during contrastive learning, forcing the model to learn more discriminative features.
  • Label Completion: For weakly labeled image-text pairs, DetCLIP uses a pre-trained vision-language model to generate pseudo-bounding boxes for all 14k concepts in the dictionary, discovering background objects that were completely ignored by the original human caption.

Datasets

DetCLIP utilizes hybrid supervision from a mix totaling ~2.43M images. This includes sampled Objects365 V2 (detection data), GoldG (grounding data), and a 1M subset of YFCC100m (image-text pairs with pseudo-labels). The primary evaluation benchmark is LVIS (1203 categories), evaluated in a zero-shot setting.

Key Results

DetCLIP demonstrates massive improvements in both accuracy and training efficiency:

  • Zero-Shot Accuracy: On the LVIS zero-shot benchmark, DetCLIP-T achieves 35.9% mAP, crushing the GLIP-T baseline (26.0% mAP) by an impressive 9.9%.
  • Rare Category Performance: By solving the partial label problem, DetCLIP-T outperforms a fully-supervised baseline (trained directly on LVIS with the same backbone) by 13.5% mAP on rare categories, proving its powerful open-world generalization.
  • Massive Efficiency Gains: Training takes only 2.0K GPU hours (vs. GLIP's 10.7K), using less than 10% of the data GLIP used. Inference is nearly 20x faster (2.3 FPS vs. GLIP's 0.12 FPS).

Limitations and Future Work

The framework relies heavily on the quality of the external WordNet definitions; if a concept lacks a good definition, the enrichment step is less effective. Additionally, the label completion process depends on the accuracy of a teacher vision-language model to generate pseudo-labels, which inherently introduces some noise. Future work naturally points toward expanding the concept dictionary even further and scaling up the backbone architectures to handle broader open-world scenarios.

Summary updated

BibTeX
@inproceedings{yao2022detclip,
  author = {Lewei Yao and Jianhua Han and Youpeng Wen and Xiaodan Liang and Dan Xu and Wei Zhang and Zhenguo Li and Chunjing Xu and Hang Xu},
  title = {{DetCLIP: Dictionary-Enriched Visual-Concept Paralleled Pre-training for Open-world Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=KINjZBM5Bn6},
}
Figure