Abstract
Training object detectors typically requires expensive, manually annotated bounding boxes. This paper introduces SG2Det, a method that learns to detect objects using only image captions by extracting "textual scene graphs"—structured descriptions of objects and their attributes (e.g., "a black laptop"). By enforcing an "attribute entanglement loss" that requires a detected region to match both the object category and its described attribute, the model achieves state-of-the-art results in weakly supervised object detection (WSOD). Our findings suggest that attributes act as crucial anchors, reducing ambiguity and allowing models to learn more effectively from natural language supervision.
Introduction
Object detection is a cornerstone of computer vision, but its progress is bottlenecked by the high cost of data annotation. Annotating thousands of images with precise bounding boxes is a slow and expensive process. Weakly Supervised Object Detection (WSOD) attempts to mitigate this by training models on image-level labels (e.g., "this image contains a dog") rather than precise boxes.
However, standard WSOD often struggles with the "discriminative part" problem—for instance, a model might only learn to detect a dog's face instead of its entire body—or it may confuse similar objects. The authors of this paper argue that image captions, which are abundant on the web, contain much richer supervision than simple labels. A caption doesn't just identify a "laptop"; it might specify "a black laptop on a desk." While previous work often ignored these descriptive adjectives, SG2Det leverages them to help the model "triangulate" the correct object during training.
Methodology
The SG2Det framework consists of three main components designed to bridge the gap between unstructured text and visual regions.
Textual Label Extraction (TLE)
The model uses an off-the-shelf scene graph parser to convert captions into a structured format. Instead of a simple list of objects, it extracts <object, attribute> pairs (e.g., <laptop, black>, <printer, old>). This structured data provides the model with specific visual constraints for the objects mentioned in the text.
Visual Scores Extraction (VSE)
Using a standard backbone (InceptionV2) and region proposals (Selective Search), the model generates scores for both object categories and various attribute categories—such as color, shape, and size—for every proposed box in the image. These attribute categories are derived from the GQA dataset to provide a structured vocabulary for the classifiers.
Attribute Entanglement Loss (AEL)
The core innovation of this work is the Attribute Entanglement Loss. In traditional Multiple Instance Learning (MIL), the model searches for any box that resembles a "laptop." In SG2Det, the AEL forces the model to identify a box where the product of the "laptop" probability and the "black" probability is maximized.
By "entangling" these two probabilities, the model uses the attribute as a lighthouse. If an image contains two laptops but only one is black, the "black" attribute provides a strong signal to the model about which bounding box is the correct one to learn from. This mechanism forces the model to find a single region that satisfies both conditions simultaneously, rather than just training separate classifiers in parallel.
Experimental Results
The model was trained on COCO Captions and Flickr30K, and evaluated on PASCAL VOC 2007 and MS COCO test-dev.
Key Findings
- State-of-the-Art Performance: On the PASCAL VOC 2007 test set, SG2Det achieved 45.9 mAP when trained on COCO captions, significantly outperforming previous caption-based methods (43.5-44.1 mAP).
- Closing the Gap: Remarkably, the model trained only on captions (45.9 mAP) performed almost as well as a model trained on clean, human-verified object labels (46.3 mAP).
- Efficiency on Small Datasets: On the smaller Flickr30K dataset, the improvement was even more pronounced, jumping from a baseline of 33.1 mAP to 36.0 mAP.
- Qualitative Success: Visualizations demonstrate that the model correctly identifies objects based on specific descriptions, such as a "green person" (a person in a green shirt) or a "striped bed," proving that the attribute classifiers learn meaningful visual features.
Discussion and Limitations
While SG2Det shows great promise, the authors identify several areas for future improvement:
- Spatial Relations: The current model primarily focuses on unary attributes (adjectives). Incorporating spatial relations (e.g., "laptop on desk") remains a challenge due to the quadratic complexity relative to the number of objects.
- Parser Dependency: The model relies on a pre-trained text parser. Any errors in the parser's understanding of the caption result in noisy supervision for the visual model.
- Attribute Sparsity: Captions are often incomplete. A caption might mention a "black laptop" but omit that the desk is "brown." Applying certain losses to attributes can actually harm performance because of this "missing label" problem.
Conclusion
SG2Det demonstrates that the rich, descriptive nature of image captions can be a powerful substitute for expensive bounding box annotations. By leveraging textual scene graphs and attribute entanglement, the model achieves high-quality object detection that rivals traditional weakly supervised methods while using more natural and abundant data sources.
Summary updated