What Makes for Good Views for Contrastive Learning?

Yonglong Tian, Chen Sun, Ben Poole, Dilip Krishnan, Cordelia Schmid +1 more
5/20/2020
1,661 citations
cs.CVcs.LG
contrastive-ssl

Official code: HobbitLong/PyContrast (1,991 stars, Python, last commit 2023-10-04).

Abstract

Contrastive learning between multiple views of the data has recently achieved state of the art performance in the field of self-supervised representation learning. Despite its success, the influence of different view choices has been less studied.

Show full abstract

In this paper, we use theoretical and empirical analysis to better understand the importance of view selection, and argue that we should reduce the mutual information (MI) between views while keeping task-relevant information intact. To verify this hypothesis, we devise unsupervised and semi-supervised frameworks that learn effective views by aiming to reduce their MI. We also consider data augmentation as a way to reduce MI, and show that increasing data augmentation indeed leads to decreasing MI and improves downstream classification accuracy. As a by-product, we achieve a new state-of-the-art accuracy on unsupervised pre-training for ImageNet classification ($73\%$ top-1 linear readout with a ResNet-50). In addition, transferring our models to PASCAL VOC object detection and COCO instance segmentation consistently outperforms supervised pre-training. Code:http://github.com/HobbitLong/PyContrast

View on arXivView PDF

Code Implementations(1)

PyTorch implementation of Contrastive Learning methods

1,991180PythonMay 21, 20203 years ago

Similar Papers

Cite this paper

@article{tian2020what,
  title  = {What Makes for Good Views for Contrastive Learning?},
  author = {Yonglong Tian and Chen Sun and Ben Poole and Dilip Krishnan and Cordelia Schmid and Phillip Isola},
  year   = {2020},
  eprint = {2005.10243},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.10243}
}

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

Discussion