Region Similarity Representation Learning

Tete Xiao, Colorado J. Reed, Xiaolong Wang, Kurt Keutzer, Trevor Darrell · DOI

Abstract

Self-supervised learning (SSL) has achieved remarkable success in image classification by leveraging instance discrimination. However, these global-level objectives often fail to capture the spatial consistency required for localization-heavy tasks like object detection and segmentation. We present Region Similarity Representation Learning (ReSim), a framework that bridges this gap by enforcing feature similarity across overlapping sub-regions of different image views. By learning spatially sensitive representations, ReSim significantly outperforms standard SSL methods on benchmarks such as COCO and PASCAL VOC.

Introduction

Current state-of-the-art SSL methods, including MoCo and SimCLR, primarily focus on global instance discrimination. In this paradigm, a model learns to associate two augmented views of the same image while distancing them from other images. While effective for classification, this approach ignores the internal spatial structure of the image. For instance, if one crop contains a dog's head and another its tail, the model is only tasked with recognizing they belong to the "same dog," without learning the relative spatial relationships between these parts. This lack of "where" information limits performance in downstream tasks like object detection and dense pose estimation.

ReSim maps overlapping regions between two views to similar spatial features, ensuring spatial consistency.

Methodology

ReSim introduces a regional contrastive loss that operates on overlapping areas between two views (crops) of an image.

Sliding Window Alignment and RoI Pooling

When two overlapping crops are sampled, ReSim identifies their intersection. A fixed-size sliding window moves across this overlapping region in the first view. For each window position, the corresponding spatial region in the second view is determined. Features are then extracted from these regions directly from the convolutional feature maps using Precise RoI (PrRoI) Pooling.

Multi-Scale Learning and Hybrid Objective

The framework is applied across multiple network stages (e.g., conv3, conv4, conv5). By incorporating a Feature Pyramid Network (FPN) structure, ReSim learns spatial consistency at various scales, from fine textures to large semantic parts. The final training objective is a hybrid loss that combines this regional similarity with traditional global image-level contrastive loss.

The ReSim pipeline: query and key views are processed through a CNN, where sliding windows and PrRoI pooling facilitate regional similarity learning across multiple feature map scales.

Experiments and Results

The models were pre-trained on ImageNet-1K and ImageNet-100 and evaluated on several localization-centric benchmarks including PASCAL VOC, COCO, Cityscapes, and DensePose.

Key Results

  • PASCAL VOC: ReSim-C4 achieved a +2.7 AP75 improvement over the MoCo-v2 baseline.
  • COCO: The method showed gains of +1.1 AP75 for detection and +0.8 APmk for instance segmentation.
  • Precise Localization: Notably, the performance gap between ReSim and global-only baselines increases at higher Intersection-over-Union (IoU) thresholds, indicating superior precision in object localization.

Discussion

A key insight from this work is the trade-off between classification and localization. While ReSim slightly underperforms on linear probing for classification, it vastly improves localization tasks. This suggests that features invariant to position (ideal for classification) differ fundamentally from features equivariant to position (ideal for detection). Furthermore, when the backbone is frozen during fine-tuning, ReSim's advantage persists, proving it learns inherently higher-quality spatial features rather than just providing a better initialization.

Limitations

ReSim introduces approximately 17% additional computational overhead during training compared to MoCo-v2 due to the regional similarity calculations. Additionally, the slight drop in ImageNet classification accuracy suggests room for future work to unify optimal features for both "what" and "where" tasks.

Summary updated

BibTeX
@inproceedings{xiao2021region,
  author = {Tete Xiao and Colorado J. Reed and Xiaolong Wang and Kurt Keutzer and Trevor Darrell},
  title = {{Region Similarity Representation Learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01037},
}
Figure