Aligning Pretraining for Detection via Object-Level Contrastive Learning

Fangyun Wei, Yue Gao, Zhirong Wu, Han Hu, Stephen Lin
6/4/2021
182 citations
cs.CV
contrastive-ssl

Official code: ueoo/SoCo (176 stars, Python, MIT, last commit 2025-05-15).

Abstract

Image-level contrastive representation learning has proven to be highly effective as a generic model for transfer learning. Such generality for transfer learning, however, sacrifices specificity if we are interested in a certain downstream task.

Show full abstract

We argue that this could be sub-optimal and thus advocate a design principle which encourages alignment between the self-supervised pretext task and the downstream task. In this paper, we follow this principle with a pretraining method specifically designed for the task of object detection. We attain alignment in the following three aspects: 1) object-level representations are introduced via selective search bounding boxes as object proposals; 2) the pretraining network architecture incorporates the same dedicated modules used in the detection pipeline (e.g. FPN); 3) the pretraining is equipped with object detection properties such as object-level translation invariance and scale invariance. Our method, called Selective Object COntrastive learning (SoCo), achieves state-of-the-art results for transfer performance on COCO detection using a Mask R-CNN framework. Code is available at https://github.com/hologerry/SoCo.

View on arXivView PDF

Code Implementations(1)

ueoo/SoCoOfficial100%
MIT

[NeurIPS 2021 Spotlight] Aligning Pretraining for Detection via Object-Level Contrastive Learning

17621Python, ShellOct 13, 20211 years agoMIT
contrastive-learningneurips-2021object-detectionself-supervised-learning

Similar Papers

Cite this paper

@article{wei2021aligning,
  title  = {Aligning Pretraining for Detection via Object-Level Contrastive Learning},
  author = {Fangyun Wei and Yue Gao and Zhirong Wu and Han Hu and Stephen Lin},
  year   = {2021},
  eprint = {2106.02637},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.02637}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.02637.svg)](https://codeofpaper.com/paper/2106.02637)

Discussion