Abstract
Self-supervised learning (SSL) has revolutionized the acquisition of transferable representations from unlabeled data. While current contrastive methods excel at image classification by learning global, transformation-invariant features, they often struggle with localization-heavy tasks like object detection and instance segmentation. These methods frequently overlook the spatial consistency of local representations. We introduce Spatially Consistent Representation Learning (SCRL), a novel self-supervised objective designed to produce coherent spatial representations of randomly cropped local regions. SCRL demonstrates significant performance improvements over both supervised pretraining and state-of-the-art SSL methods on various downstream localization benchmarks.
Introduction: The Gap in Global Representations
Modern self-supervised frameworks like SimCLR and BYOL typically optimize for global invariance. By encouraging the model to produce identical feature vectors for two different augmented views of the same image, these methods learn high-level semantic concepts. However, this approach often leads to "spatial amnesia." Global pooling operations discard the precise spatial information required for localization. Furthermore, aggressive cropping can force the model to equate semantically distinct regions (e.g., a dog's head vs. its tail), which is detrimental for tasks requiring fine-grained boundary detection and precise regression of object boundaries.
The SCRL Framework
To address these limitations, SCRL shifts the focus from global image-level consistency to local region-level consistency. Built upon the Bootstrap Your Own Latent (BYOL) architecture, SCRL utilizes an online and a target network to learn representations without the need for negative pairs.
The core algorithm follows a four-step process:
- Intersection Region Identification ($IS$): For any two augmented views ($v_1, v_2$) of an input image, the algorithm identifies the overlapping spatial area between them in the original image coordinate space.
- Random RoI Sampling: Instead of global comparison, SCRL randomly samples $K$ (default $K=10$) bounding boxes (Regions of Interest) within this intersection region.
- Local Feature Extraction: Using RoIAlign, the model extracts local features from the intermediate feature maps of both views for each sampled box. This provides a 10x increase in the "supervisory signal" with negligible extra computational cost, as the expensive backbone forward pass is only performed once per view.
- Consistency Loss: The online network is trained to predict the local features generated by the target network for the exact same spatial regions. This forces the backbone to learn representations that are consistent across geometric translations and zooming operations.
Experimental Results
SCRL was pretrained on ImageNet and evaluated on several downstream tasks, including PASCAL VOC and MS COCO.
State-of-the-Art Performance
On the MS COCO detection task using a ResNet-50 backbone, SCRL achieved 40.9 AP, significantly outperforming BYOL (40.0 AP) and supervised ImageNet pretraining (38.5 AP). Notably, the gains are most pronounced in the $AP_{75}$ metric, which requires high localization precision, suggesting that SCRL learns to regress object boundaries much more precisely than its predecessors.
Efficiency and Convergence
SCRL exhibits superior data and training efficiency. As shown in the performance graphs, with only 200 epochs of pretraining, it already surpasses the performance of a fully supervised ImageNet model. Furthermore, SCRL maintains its performance edge across various downstream training schedules, from short (0.5x) to very long (7x) fine-tuning periods. When fine-tuned on only 10% of the COCO dataset, SCRL maintains a substantial lead over all baselines, highlighting the robustness and transferability of its learned spatial representations.
Conclusion
SCRL bridges the gap between self-supervised pretraining and dense downstream tasks by prioritizing spatial consistency. By moving beyond global invariance and focusing on local region matching, the framework provides a more suitable foundation for object detection and instance segmentation. Qualitative analysis suggests that SCRL helps the model resist "part-whole" confusion, allowing it to see the full context of objects rather than just isolated parts. Future work may involve exploring more sophisticated RoI generation strategies or integrating explicit negative pairs to further enhance representation quality.
Summary updated