Abstract
Self-supervised pretraining has been shown to yield powerful representations for transfer learning. These performance gains come at a large computational cost however, with state-of-the-art methods requiring an order of magnitude more computation than supervised pretraining. We tackle this computational bottleneck by introducing a new self-supervised objective, contrastive detection, which tasks representations with identifying object-level features across augmentations. This objective extracts a rich learning signal per image, leading to state-of-the-art transfer accuracy on a variety of downstream tasks, while requiring up to 10x less pretraining. In particular, our strongest ImageNet-pretrained model performs on par with SEER, one of the largest self-supervised systems to date, which uses 1000x more pretraining data. Finally, our objective seamlessly handles pretraining on more complex images such as those in COCO, closing the gap with supervised transfer learning from COCO to PASCAL.
Introduction
Self-supervised learning (SSL) has revolutionized computer vision by enabling models to learn from vast amounts of unlabeled data. However, a significant "hidden tax" exists: to match the performance of supervised pretraining, current SSL methods typically require an order of magnitude more computation. This inefficiency stems from a "global bias" in popular frameworks like SimCLR or BYOL, which treat an entire image as a single entity. While this approach works for datasets like ImageNet where a single object often dominates, it fails to capture the multi-object complexity of real-world scenes. In complex images, global approaches collapse multiple objects into a single vector, wasting local information critical for downstream tasks like object detection and segmentation.
To address this, we introduce DetCon (Contrastive Detection), a self-supervised objective that shifts focus from whole-image representations to object-level features. By using unsupervised segmentation to identify and contrast individual regions, DetCon achieves state-of-the-art performance with up to 10× less computation than previous methods.
Methods: The DetCon Objective
The core innovation of DetCon is the transition from producing one feature vector per image to producing several, each corresponding to a different "object" or region.
The pipeline consists of four main stages:
- Unsupervised Masking: Before training, off-the-shelf, unsupervised segmentation algorithms (e.g., Felzenszwalb-Huttenlocher or Multiscale Combinatorial Grouping) generate approximate masks. These masks do not need to be perfect; they simply need to group related pixels by color or texture.
- Masked Pooling: An image is processed through a standard backbone (e.g., ResNet-50). The resulting feature map is pooled according to the pre-generated masks to create a set of object-level feature vectors.
- Contrastive Learning: The model is tasked with identifying the same masked region across two different augmented views of the image. It simultaneously pushes these representations away from different regions in the same image and regions from other images in the batch.
- Framework Integration: DetCon is implemented as two variants: DetCon-S (based on SimCLR) and DetCon-B (based on BYOL).
Key Results and Insights
DetCon demonstrates that extracting separate signals from every "object" in an image provides a much denser learning signal than global methods.
Efficiency and Performance
- Computational Gains: On COCO detection tasks, DetCon-S reaches the same accuracy as SimCLR while requiring 5× less computation. For depth estimation on NYU-v2, DetCon-B achieved superior results with 10× less pretraining than BYOL.
- Data Efficiency: DetCon-B, pretrained on ImageNet, matched the performance of SEER—a model trained on 1 billion images—despite using 1000× less data. This suggests that the granularity of the objective (object-level vs. image-level) is a critical factor in representation quality.
- Robustness to Mask Quality: Surprisingly, even simple spatial grids (e.g., a 5x5 grid) outperform global SSL. However, performance improves as masks align more closely with actual object boundaries.
State-of-the-Art Transfer
When scaled to larger architectures like ResNet-200, DetCon-B set new benchmarks for self-supervised transfer to COCO, achieving 48.9 $AP^{bb}$. It effectively closes the "complexity gap" where standard SSL struggles on multi-object datasets like COCO compared to supervised learning.
Conclusion and Future Work
DetCon demonstrates the power of object-centric self-supervised learning. While currently dependent on external segmentation heuristics, the method points toward a "virtuous crescendo" where models could eventually learn to segment and represent objects jointly. Future research will explore the interaction of these object-level objectives with Vision Transformers (ViTs) and the potential for fully end-to-end unsupervised scene understanding.
Summary updated