Unsupervised Learning of Visual Features by Contrasting Cluster Assignments

Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski +1 more
6/17/2020
cs.CV

Official code: facebookresearch/swav (2,093 stars, last commit 2023-04-13).

Abstract

Unsupervised image representations have significantly reduced the gap with supervised pretraining, notably with the recent achievements of contrastive learning methods. These contrastive methods typically work online and rely on a large number of explicit pairwise feature comparisons, which is computationally challenging. In this paper, we propose an online algorithm, SwAV, that takes advantage of contrastive methods without requiring to compute pairwise comparisons. Specifically, our method simultaneously clusters the data while enforcing consistency between cluster assignments produced for different augmentations (or views) of the same image, instead of comparing features directly as in contrastive learning. Simply put, we use a swapped prediction mechanism where we predict the cluster assignment of a view from the representation of another view. Our method can be trained with large and small batches and can scale to unlimited amounts of data. Compared to previous contrastive methods, our method is more memory efficient since it does not require a large memory bank or a special momentum network. In addition, we also propose a new data augmentation strategy, multi-crop, that uses a mix of views with different resolutions in place of two full-resolution views, without increasing the memory or compute requirements much. We validate our findings by achieving 75.3% top-1 accuracy on ImageNet with ResNet-50, as well as surpassing supervised pretraining on all the considered transfer tasks.

View on arXivView PDF

Code Implementations(1)

PyTorch implementation of SwAV https//arxiv.org/abs/2006.09882

2,093285Shell, PythonJul 16, 20203 years agoNOASSERTION

Similar Papers

Cite this paper

@article{caron2020unsupervised,
  title  = {Unsupervised Learning of Visual Features by Contrasting Cluster Assignments},
  author = {Mathilde Caron and Ishan Misra and Julien Mairal and Priya Goyal and Piotr Bojanowski and Armand Joulin},
  year   = {2020},
  eprint = {2006.09882},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.09882}
}

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

Discussion