Momentum Contrast for Unsupervised Visual Representation Learning

Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, Ross Girshick
11/13/2019
cs.CV

Official code: facebookresearch/moco (5,140 stars, last commit 2026-02-03). 1 more implementation below.

Abstract

We present Momentum Contrast (MoCo) for unsupervised visual representation learning. From a perspective on contrastive learning as dictionary look-up, we build a dynamic dictionary with a queue and a moving-averaged encoder. This enables building a large and consistent dictionary on-the-fly that facilitates contrastive unsupervised learning. MoCo provides competitive results under the common linear protocol on ImageNet classification. More importantly, the representations learned by MoCo transfer well to downstream tasks. MoCo can outperform its supervised pre-training counterpart in 7 detection/segmentation tasks on PASCAL VOC, COCO, and other datasets, sometimes surpassing it by large margins. This suggests that the gap between unsupervised and supervised representation learning has been largely closed in many vision tasks.

View on arXivView PDF

Code Implementations(2)

PyTorch implementation of MoCo: https://arxiv.org/abs/1911.05722

5,140802Mar 17, 20208 months ago

A TensorFlow re-implementation of Momentum Contrast (MoCo): https://arxiv.org/abs/1911.05722

15913PythonMar 7, 20203 years ago

Similar Papers

Cite this paper

@article{he2019momentum,
  title  = {Momentum Contrast for Unsupervised Visual Representation Learning},
  author = {Kaiming He and Haoqi Fan and Yuxin Wu and Saining Xie and Ross Girshick},
  year   = {2019},
  eprint = {1911.05722},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.05722}
}

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/1911.05722.svg)](https://codeofpaper.com/paper/1911.05722)

Discussion