Abstract
Object detection typically relies on expensive bounding box annotations. We present Cap2Det, a framework that leverages natural language captions as a source of weak supervision. By training a text classifier to infer implicit object labels from noisy captions, Cap2Det amplifies the supervision signal. Our method achieves state-of-the-art results in weakly supervised object detection (WSOD) on standard benchmarks like COCO and Pascal VOC, demonstrating the potential of learning from unstructured web data.
Introduction
Modern object detection models require large-scale datasets with precise bounding box annotations. Collecting such data is costly and labor-intensive. Weakly Supervised Object Detection (WSOD) aims to mitigate this by using image-level labels. However, even these labels are often unavailable for web-scale data. In contrast, natural language captions are abundant but present challenges due to "human reporting bias"—the tendency of humans to omit obvious objects in descriptions. Cap2Det addresses this by learning to deduce the full set of objects present in an image from its caption, effectively converting unstructured text into reliable pseudo-labels for training.
Methodology
The Cap2Det framework consists of three primary modules designed to bridge the gap between natural language and visual detection.
1. Label Inference from Text
Instead of simple keyword matching, we employ a text-only classifier. This module uses GloVe word embeddings and a Multi-Layer Perceptron (MLP) to predict a set of discrete object categories from free-form captions. This allows the model to infer objects that are contextually implied but not explicitly named (e.g., inferring "chair" from a "conference" setting).
2. Weakly Supervised Detection via Multiple Instance Learning (MIL)
The inferred pseudo-labels supervise a Multiple Instance Learning network. Using an Inception-V2 backbone, the model extracts region proposals and computes classification and detection scores. These scores are aggregated to produce image-level predictions, which are then compared against the text-derived pseudo-labels.
3. Online Instance Classifier Refinement (OICR)
To improve localization accuracy, the model iteratively refines its predictions. High-scoring proposals are treated as pseudo-ground-truth bounding boxes to train subsequent refinement layers, narrowing the gap between weak and full supervision.
Results and Discussion
We evaluated Cap2Det on the COCO and Pascal VOC datasets. A key finding is the efficiency and robustness of the text inference module.
Key Insights
- Predictability of Reporting Bias: Our results show that human reporting bias is structured. The text classifier effectively "reads between the lines," achieving high precision in label inference.
- Data Efficiency: The text classifier is remarkably data-efficient. Training on only 5% of the COCO dataset resulted in a precision of 89.4%, compared to 92.2% with the full dataset.
- Generalization: A text model trained on COCO captions successfully generalized to Flickr30K, demonstrating that the learned contextual relationships are not dataset-specific.
Performance Benchmarks
Cap2Det achieved 43.1% mAP on VOC 2007 when trained solely on COCO captions, significantly outperforming exact-match baselines. In the standard WSOD setting (using image-level labels), it established new state-of-the-art results, including 48.5% mAP on VOC 2007 and 23.4% mAP on COCO.
Conclusion
Cap2Det demonstrates that natural language captions can serve as a powerful, low-cost alternative to manual annotations for object detection. By explicitly modeling the relationship between captions and visual content, we can tap into vast amounts of web data to train robust detectors. Future work will explore scaling this approach to even larger, noisier datasets and integrating the modules into a single end-to-end trainable system.
Summary updated