Abstract
This paper introduces self-taught object localization, a novel approach that leverages deep convolutional networks trained for whole-image recognition to localize objects in images without additional human supervision, i.e., without using any ground-truth bounding boxes for training. The key idea is to analyze the change in the recognition scores when artificially masking out different regions of the image. The masking out of a region that includes the object typically causes a significant drop in recognition score. This idea is embedded into an agglomerative clustering technique that generates self-taught localization hypotheses. Our object localization scheme outperforms existing proposal methods in both precision and recall for small number of subwindow proposals (e.g., on ILSVRC-2012 it produces a relative gain of 23.4% over the state-of-the-art for top-1 hypothesis). Furthermore, our experiments show that the annotations automatically-generated by our method can be used to train object detectors yielding recognition results remarkably close to those obtained by training on manually-annotated bounding boxes.
Introduction
In computer vision, a significant "annotation gap" exists between image classification and object detection. While training a classifier to identify the presence of an object is relatively straightforward due to the abundance of image-level labels, training a detector requires expensive and time-consuming human labor to annotate millions of precise bounding boxes.
This research addresses the challenge of weakly-supervised localization: leveraging the knowledge already embedded in deep convolutional neural networks (CNNs) trained for classification to automatically find objects. The proposed method, Self-Taught Localization (STL), generates high-quality object proposals using only image-level labels, effectively turning a standard classifier into an object detector.
Methodology: Localizing via Occlusion
The core intuition behind STL is simple: if a region containing the target object is hidden, the classifier's confidence score will plummet.
- Input Mask-out: A pre-trained CNN (such as AlexNet) processes an image. A rectangular region is "masked out" by replacing its pixels with the dataset's mean color.
- The "Drop" Metric: The system measures the difference in classification score between the original and masked images. A large drop indicates the masked region was critical for the classifier's decision, implying the object is likely within that box.
- Agglomerative Clustering: To avoid the computational impossibility of checking every possible box, a bottom-up grouping strategy is used. Small segments are iteratively merged based on four similarity factors: Drop Similarity (similar impact on classification score), Appearance (visual similarity), Size (merging small regions early), and Fill (spatial proximity).
Two versions of the method were tested: $STL_{CL}$ (Class-specific), which uses known ground-truth labels, and $STL_{WL}$ (Weakly-labeled), which uses the top-5 predicted classes from the CNN, making it truly "self-taught" even in the absence of labels.
Evaluation and Results
The method was evaluated on the ILSVRC-2012-LOC (ImageNet) and PASCAL-VOC-2007 benchmarks. The results demonstrate that deep networks trained only for recognition naturally learn the spatial location of objects as a byproduct of learning their features.
Key findings include:
- Superior Precision at Low Budgets: For a small number of proposals (1–10 boxes), STL significantly outperforms state-of-the-art methods like BING and Selective Search. On ImageNet, it achieved a 23.4% relative gain in top-1 recall over previous benchmarks.
- Closing the Supervision Gap: Using STL-generated boxes to train a standard R-CNN detector yielded a 19.6% mAP, remarkably close to the 25.4% mAP achieved using perfect human-annotated boxes.
- Cross-Dataset Generalization: Models trained on ImageNet successfully localized objects in PASCAL VOC, even for categories not seen during initial training, provided they shared visual features with known classes.
Discussion and Limitations
While STL represents a major step forward for weakly-supervised learning, it faces challenges with images containing multiple instances of the same object, as masking one may not significantly drop the score if others remain visible. Additionally, the network can sometimes be biased by context (e.g., associating an "eagle" with "blue sky").
Future work may involve fine-tuning networks specifically for localization or utilizing multiple instance learning frameworks to further refine the generated bounding boxes. Despite these challenges, STL proves that classifiers are "secret" detectors, capable of high-fidelity localization without explicit human guidance.
Summary updated