Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

With a Little Help from My Friends: Nearest-Neighbor Contrastive Learning of Visual Representations

About

Self-supervised learning algorithms based on instance discrimination train encoders to be invariant to pre-defined transformations of the same instance. While most methods treat different views of the same image as positives for a contrastive loss, we are interested in using positives from other instances in the dataset. Our method, Nearest-Neighbor Contrastive Learning of visual Representations (NNCLR), samples the nearest neighbors from the dataset in the latent space, and treats them as positives. This provides more semantic variations than pre-defined transformations. We find that using the nearest-neighbor as positive in contrastive losses improves performance significantly on ImageNet classification, from 71.7% to 75.6%, outperforming previous state-of-the-art methods. On semi-supervised learning benchmarks we improve performance significantly when only 1% ImageNet labels are available, from 53.8% to 56.5%. On transfer learning benchmarks our method outperforms state-of-the-art methods (including supervised learning with ImageNet) on 8 out of 12 downstream datasets. Furthermore, we demonstrate empirically that our method is less reliant on complex data augmentations. We see a relative reduction of only 2.1% ImageNet Top-1 accuracy when we train using only random crops.

Debidatta Dwibedi, Yusuf Aytar, Jonathan Tompson, Pierre Sermanet, Andrew Zisserman• 2021

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-100 (test)--
3518
Image ClassificationCIFAR-10 (test)--
3381
Image ClassificationImageNet-1k (val)
Top-1 Accuracy75.6
1453
Image ClassificationImageNet (val)
Top-1 Acc75.6
1206
ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy (%)70.7
1155
Image ClassificationImageNet-1k (val)
Top-1 Accuracy74.9
840
Image ClassificationCIFAR-100
Top-1 Accuracy84.7
622
Image ClassificationImageNet-1K
Top-1 Acc74.9
524
Image ClassificationFood-101
Accuracy85.5
494
Image ClassificationDTD
Accuracy79.2
487
Showing 10 of 88 rows
...

Other info

Follow for update