Abstract
This paper presents a detection-aware pre-training (DAP) approach, which leverages only weakly-labeled classification-style datasets (e.g., ImageNet) for pre-training, but is specifically tailored to benefit object detection tasks. In contrast to the widely used image classification-based pre-training (e.g., on ImageNet), which does not include any location-related training tasks, we transform a classification dataset into a detection dataset through a weakly supervised object localization method based on Class Activation Maps to directly pre-train a detector, making the pre-trained model location-aware and capable of predicting bounding boxes. We show that DAP can outperform the traditional classification pre-training in terms of both sample efficiency and convergence speed in downstream detection tasks including VOC and COCO. In particular, DAP boosts the detection accuracy by a large margin when the number of examples in the downstream task is small.
Introduction
For years, the standard recipe for building an object detector has been to pre-train a backbone (like ResNet) on ImageNet classification and then fine-tune the entire architecture on a detection dataset like COCO. However, this approach suffers from three major mismatches. First, the task objective is different: classification encourages scale-invariant features, while detection requires sensitivity to location and scale. Second, the data distribution is misaligned: classification labels do not provide the spatial information detection needs. Third, the architectures are mismatched: when fine-tuning begins, only the backbone is pre-trained; detection-specific layers like the Feature Pyramid Network (FPN) or Region Proposal Network (RPN) are initialized randomly, forcing them to learn from scratch.
Methodology
The authors introduce a four-step workflow called DAP to make pre-training "detection-aware" by utilizing weakly-labeled data to pre-train an entire detector, not just a backbone.
- Classifier Pre-training: Train a standard CNN classifier on a weakly-labeled dataset (e.g., ImageNet, where only image-level labels are available).
- Pseudo Box Generation: Use Class Activation Maps (CAM) to identify which regions of the image triggered the classification. A multi-threshold approach is applied to these maps to generate "pseudo-bounding boxes."
- Detector Pre-training: Instead of just using the backbone, a full detector (like Faster R-CNN) is initialized and trained on the classification dataset using the noisy pseudo-boxes. This makes the model location-aware and pre-trains the detection-specific heads.
- Downstream Fine-tuning: Finally, the model is fine-tuned on actual detection tasks such as Pascal VOC or COCO.
Experimental Setup
Pre-training was conducted on ImageNet-1M (1.28 million images) and ImageNet-14M (14 million images). Evaluation was performed on Pascal VOC 2007, VOC 07+12, and COCO 2017. To test sample efficiency, the authors also established low-data benchmarks using "k-shot" versions of these datasets (5, 10, 20, 50, 100 images per class).
Key Results and Insights
DAP demonstrates significant improvements in both performance and efficiency:
- Low-Data Dominance: The most striking results appear in the low-data regime. On Pascal VOC with only 5 images per class, DAP improved accuracy by +19.5 AP compared to standard classification pre-training.
- Faster Convergence: On COCO, DAP reaches target performance levels in significantly fewer iterations, providing a "warm start" for the entire architecture.
- Scalability: As the pre-training dataset grows from 1M to 14M images, the performance gap between DAP and standard methods widens, suggesting that localization-aware pre-training better captures the complexity of massive datasets.
- The Power of Noisy Labels: Even though CAM-generated boxes are noisy, they provide enough signal for the model to learn the mechanics of localization and how to effectively use components like the FPN and RPN before seeing human-annotated boxes.
Conclusion
DAP bridges the gap between image classification and object detection by initializing the whole detector with location-aware features. While the current method uses simple CAM for pseudo-box generation, future work could explore more sophisticated weakly supervised object detection (WSOD) methods or extend the concept to instance segmentation. Even with simple pseudo-labels, DAP consistently outperforms traditional baselines, especially when downstream labels are scarce.
Summary updated