What Makes for Good Views for Contrastive Learning?
About
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. 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
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Object Detection | COCO 2017 (val) | -- | 2454 | |
| Image Classification | ImageNet-1k (val) | Top-1 Accuracy73 | 1453 | |
| Image Classification | ImageNet (val) | Top-1 Acc75.2 | 1206 | |
| Classification | ImageNet-1K 1.0 (val) | Top-1 Accuracy (%)70.1 | 1155 | |
| Instance Segmentation | COCO 2017 (val) | -- | 1144 | |
| Image Classification | ImageNet-1k (val) | Top-1 Accuracy73 | 840 | |
| Object Detection | PASCAL VOC 2007 (test) | mAP57.6 | 821 | |
| Image Classification | ImageNet 1k (test) | Top-1 Accuracy73 | 798 | |
| Image Classification | ImageNet-1k (val) | Top-1 Acc73 | 706 | |
| Object Detection | COCO (val) | mAP42.5 | 613 |