Abstract
In this work we present point-level region contrast, a self-supervised pre-training approach for the task of object detection. This approach is motivated by the two key factors in detection: localization and recognition. While accurate localization favors models that operate at the pixel- or point-level, correct recognition typically relies on a more holistic, region-level view of objects. Incorporating this perspective in pre-training, our approach performs contrastive learning by directly sampling individual point pairs from different regions. Compared to an aggregated representation per region, our approach is more robust to the change in input region quality, and further enables us to implicitly improve initial region assignments via online knowledge distillation during training. Both advantages are important when dealing with imperfect regions encountered in the unsupervised setting. Experiments show point-level region contrast improves on state-of-the-art pre-training methods for object detection and segmentation across multiple tasks and datasets, and we provide extensive ablation studies and visualizations to aid understanding.
Introduction
Most self-supervised learning (SSL) methods, such as MoCo or SimCLR, are primarily classification-oriented. They treat an entire image as a single instance, which is effective for learning global semantics (recognition) but often fails to capture the fine-grained spatial information necessary for object localization.
When adapting SSL for object detection, researchers have frequently turned to "region-level" contrast, where features within a bounding box or grid cell are pooled into a single vector. However, this approach suffers from two major flaws: the loss of fine-grained detail due to pooling and a high sensitivity to noise. In unsupervised settings, regions are often arbitrary grids that may contain multiple objects or background elements, leading to "mushy" features that represent neither well. This paper introduces Point-Level Region Contrast to address these limitations by bridging the gap between recognition and localization.
Proposed Method
The authors propose a two-pronged strategy to balance recognition and localization requirements:
1. Point-Level Region Contrast ($L_c$)
Instead of averaging a region's features, the method samples $P$ individual points from it. Contrastive learning is then performed by treating points from the same region as "positives" and points from different regions (or different images) as "negatives." This forces the model to learn discriminative features at the point level while maintaining a holistic region-level context.
2. Point Affinity Distillation ($L_a$)
To move beyond rigid, imperfect grids, the authors utilize a "Teacher-Student" setup. A momentum encoder (the teacher) calculates "soft affinities"—measuring the similarity between points. The student network is then trained to predict these affinities. This allows the model to "bootstrap" and learn actual object boundaries even when starting from a simple, unsupervised grid assignment.
Experimental Results
The models were pre-trained on ImageNet-1K and the COCO train2017 set. Learned representations were then transferred to major downstream tasks including Pascal VOC object detection, COCO detection/segmentation, and Cityscapes semantic segmentation.
Key Insights
- Points > Regions: Using as few as 4 points per region outperformed traditional region-pooling methods, suggesting that local point contrast is more informative for detection than blurred averages.
- Robustness: Because the model operates on points, it is significantly more resilient to poor initial segmentations. If a grid cell is messy, the model can still learn from distinct points within it.
- Boundary Learning: Through distillation, the model naturally learns to group pixels belonging to the same object (e.g., a dog's ear and tail) without human-annotated labels.
Performance Benchmarks
The method consistently outperformed previous state-of-the-art SSL approaches:
- VOC Detection: Achieved 59.4 AP, surpassing the MoCo v2 baseline (57.6).
- COCO Detection: Reached 40.7 AP, an improvement over task-specific methods like DetCon (40.5) and PixPro (40.0).
- Qualitative Superiority: Point-affinity maps matched ground-truth objects with a Jaccard similarity score of 52.0, nearly doubling the score of the standard image-level MoCo baseline (33.1).
Conclusion and Future Work
Point-Level Region Contrast effectively addresses the localization-recognition trade-off in SSL for object detection. While the model occasionally suffers from over-segmentation in complex scenes and introduces higher computational overhead due to pairwise comparisons, it represents a significant step forward in unsupervised pre-training. Future research will focus on scaling this approach to larger architectures like Vision Transformers (ViTs).
Summary updated