Introduction
In the field of self-supervised learning (SSL), a persistent "tug-of-war" exists between image classification and object detection performance. Standard SSL methods, such as MoCo or SimCLR, are optimized for image-level classification; they excel at recognizing global concepts but often struggle with the multi-scale, localized requirements of object detection. Conversely, recent detection-focused SSL methods like DenseCL or InsLoc improve localization but frequently suffer a significant drop in classification accuracy.
The authors of DetCo identify two primary causes for this performance gap. First, classification typically relies on high-level feature maps, whereas modern detectors require discriminative features across multiple stages of a backbone. Second, classification focuses on global context ("what"), while detection emphasizes local patches ("where"). DetCo (Detection Contrastive learning) is designed to bridge this gap, providing a pre-trained model that excels at both high-level recognition and fine-grained localization.
Methodology
DetCo builds upon the MoCo v2 framework but introduces two critical architectural shifts: multi-level supervision and global-to-local contrastive learning.
Multi-level Supervision
Instead of calculating a contrastive loss only at the final layer (Res5), DetCo extracts features from four different stages of the ResNet backbone (Res2, Res3, Res4, and Res5). Each stage is equipped with its own set of MLP heads and memory banks, ensuring that features are discriminative across all spatial scales.
Global-to-Local Contrastive Learning
For every input image, DetCo creates two distinct views:
- Global View: The standard augmented version of the full image.
- Local View: The image is divided into a 3x3 grid of patches, which are then shuffled and processed.
At each of the four levels, DetCo calculates three types of InfoNCE losses to ensure consistency:
- Global-to-Global ($L_{g \leftrightarrow g}$): Standard instance-level contrastive learning.
- Local-to-Local ($L_{l \leftrightarrow l}$): Ensures local patch representations are consistent.
- Global-to-Local ($L_{g \leftrightarrow l}$): Forces the network to reconcile the representation of a whole image with its constituent parts.
Key Insights and Ideas
- The Intermediate Layer Advantage: The authors found that intermediate supervision (Res2-Res4) slightly decreases the final layer's classification representation but vastly improves the shallow layers' ability to localize objects. This provides a net benefit for detectors that rely on feature pyramids.
- Local-Global Consistency: By forcing the model to match a global image to its shuffled local patches, the network learns to maintain a consistent representation regardless of whether it is viewing a whole object or just a component. This mimics the "sliding window" nature of many object detectors.
- Efficiency in Convergence: DetCo demonstrates remarkable efficiency; DetCo-100ep (trained for 100 epochs) achieves detection performance comparable to MoCo v2-800ep, suggesting that the multi-level approach is a significantly more efficient way to learn detection-aware features.
Experimental Results
DetCo was pre-trained on unlabeled ImageNet-1K and evaluated across various downstream tasks, including detection, segmentation, and pose estimation.
- Best of Both Worlds: On ImageNet classification, DetCo achieves 68.6% Top-1 accuracy, outperforming concurrent detection-focused methods like DenseCL (63.6%) and InsLoc (61.7%) by a wide margin.
- COCO Detection: DetCo improves upon the MoCo v2 baseline by +0.9 AP on COCO and establishes a new state-of-the-art for self-supervised pre-training on Sparse R-CNN (reaching 46.5 AP).
- PASCAL VOC: DetCo-800ep reaches 58.2 mAP, significantly outperforming the supervised baseline of 53.5 mAP.
- DensePose: It achieves a +1.4 $AP_{50}$ improvement over ImageNet-supervised models, proving its effectiveness for 3D human shape prediction.
Limitations and Future Work
While DetCo offers superior performance, adding four levels of supervision and processing local patches increases computational overhead during pre-training. Future work could explore how these multi-level losses translate to Vision Transformer (ViT) architectures or utilize more complex spatial relationships beyond the 3x3 jigsaw strategy to further improve local feature learning.
Summary updated