Abstract
Scaling object detection to large vocabularies is traditionally hindered by the high cost of bounding box annotations. We present Detic (Detector with image classes), a simple yet effective method that expands detection vocabularies to tens of thousands of concepts by leveraging abundant image-level labels. By decoupling localization from classification and employing a 'max-size' proposal heuristic, Detic utilizes massive classification datasets like ImageNet-21K to train the first detector capable of recognizing 21,000 classes. Detic achieves significant improvements in open-vocabulary detection and effectively addresses the long-tail distribution problem.
Introduction
Traditional object detection models are typically limited to small vocabularies—often fewer than 1,000 classes—due to the prohibitive cost of collecting precise bounding box annotations. In contrast, image-level classification labels (e.g., "this image contains a dog") are far more abundant and easier to obtain. Detic bridges this gap by using image-level supervision to train the classification head of a detector, allowing it to scale to the massive vocabularies found in classification datasets.
Methodology
The core of Detic is the decoupling of object localization from classification. The model utilizes a two-stage detector architecture where the first stage, the Region Proposal Network (RPN), identifies potential object regions. The key innovation lies in how the second-stage classification head is trained when box labels are unavailable.
- Max-Size Heuristic: For images with only image-level labels, Detic assigns the label to the largest region proposal generated by the RPN. This heuristic relies on the observation that in classification datasets, the labeled object is usually the primary subject and occupies a significant portion of the image.
- Open-Vocabulary Classification: To handle thousands of classes, Detic replaces the standard classifier with fixed CLIP (Contrastive Language-Image Pre-training) text embeddings. This enables the model to generalize to any concept described in natural language.
- Joint Training: The model is trained simultaneously on detection datasets (providing box supervision) and classification datasets (providing image-level supervision). This allows the RPN to learn general objectness from the detection data while the classification head learns a vast vocabulary from the classification data.
Results and Discussion
Detic demonstrates remarkable performance across several benchmarks. On the LVIS dataset, it improves the state-of-the-art for 'novel' classes (those without box labels during training) by 8.3 mAP, reaching 26.8 mAP. Notably, it achieves 41.7 mAP on rare classes, matching its performance on frequent classes and effectively solving the long-tail problem where detectors usually fail on rare objects.
Furthermore, Detic is the first detector trained on the full ImageNet-21K dataset. When tested on the Objects365 benchmark without any fine-tuning, the model achieved 21.5 mAP, proving its robust zero-shot generalization capabilities for real-world applications.
Conclusion
Detic provides a simple and scalable framework for large-vocabulary object detection. By effectively utilizing image-level labels through a straightforward heuristic and decoupled architecture, it overcomes the data bottleneck of traditional detection. The success of Detic suggests that leveraging the vast amounts of weakly-labeled data available on the web is a viable path toward building 'detect-anything' systems.
Summary updated