HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

A Simple Framework for Contrastive Learning of Visual Representations

Ting Chen; Simon Kornblith; Mohammad Norouzi; Geoffrey Hinton

A Simple Framework for Contrastive Learning of Visual Representations

Abstract

This paper presents SimCLR: a simple framework for contrastive learning of visual representations. We simplify recently proposed contrastive self-supervised learning algorithms without requiring specialized architectures or a memory bank. In order to understand what enables the contrastive prediction tasks to learn useful representations, we systematically study the major components of our framework. We show that (1) composition of data augmentations plays a critical role in defining effective predictive tasks, (2) introducing a learnable nonlinear transformation between the representation and the contrastive loss substantially improves the quality of the learned representations, and (3) contrastive learning benefits from larger batch sizes and more training steps compared to supervised learning. By combining these findings, we are able to considerably outperform previous methods for self-supervised and semi-supervised learning on ImageNet. A linear classifier trained on self-supervised representations learned by SimCLR achieves 76.5% top-1 accuracy, which is a 7% relative improvement over previous state-of-the-art, matching the performance of a supervised ResNet-50. When fine-tuned on only 1% of the labels, we achieve 85.8% top-5 accuracy, outperforming AlexNet with 100X fewer labels.

Code Repositories

hannaiiyanggit/unicon
pytorch
Mentioned in GitHub
sidwa/ae_thesis
pytorch
Mentioned in GitHub
alexk1704/scclv2
tf
Mentioned in GitHub
JoonHyung-Park/SimCLR
pytorch
Mentioned in GitHub
acholston/SimCLR
pytorch
Mentioned in GitHub
delyan-boychev/grad-cache-con-learning
pytorch
Mentioned in GitHub
jramapuram/SimCLR
pytorch
Mentioned in GitHub
dewenzeng/clsp
pytorch
Mentioned in GitHub
AidenDurrant/MoCo-Pytorch
pytorch
Mentioned in GitHub
sylviesss/pytorch-simclr
pytorch
Mentioned in GitHub
rajatkoner08/oodformer
pytorch
Mentioned in GitHub
google-research/simclr
Official
tf
Mentioned in GitHub
cjrd/self-supervised-pretraining
pytorch
Mentioned in GitHub
phanav/simclr-presentation
Mentioned in GitHub
XG293/SupConLoss
pytorch
Mentioned in GitHub
eminorhan/baby-vision
pytorch
Mentioned in GitHub
roydenwa/cell-centroid-former
tf
Mentioned in GitHub
bjader/QSSL
pytorch
Mentioned in GitHub
lightly-ai/lightly
pytorch
Mentioned in GitHub
mdiephuis/simclr
pytorch
Mentioned in GitHub
radiradev/contrastive-neutrino
pytorch
Mentioned in GitHub
HobbitLong/SupContrast
pytorch
Mentioned in GitHub
Westlake-AI/openmixup
pytorch
Mentioned in GitHub
clabrugere/pytorch-scarf
pytorch
Mentioned in GitHub
ushmabhatt/Contrastive-Learning
tf
Mentioned in GitHub
SaeedShurrab/SimSiam-pytorch
pytorch
Mentioned in GitHub
vturrisi/solo-learn
pytorch
Mentioned in GitHub
guerbet-ai/wsp-contrastive
pytorch
Mentioned in GitHub
wilile26811249/SimCLR
pytorch
Mentioned in GitHub
ut-vision/simhand
pytorch
Mentioned in GitHub
davidczy/supcon_gamma
pytorch
Mentioned in GitHub
zpf0117b/CLMB
pytorch
Mentioned in GitHub
edureisMD/ConVIRT-pytorch
pytorch
Mentioned in GitHub
talipucar/PyFlow_SimCLR
pytorch
Mentioned in GitHub
liuch37/image-processing
pytorch
Mentioned in GitHub
BalajiAI/SimCLR
pytorch
Mentioned in GitHub
Daniel-H-99/SimCLR
pytorch
Mentioned in GitHub
leftthomas/SimCLR
pytorch
Mentioned in GitHub
facebookresearch/vissl
pytorch
Mentioned in GitHub
rmastand/jetclr_ad
pytorch
Mentioned in GitHub
forcesh/SupContrast
pytorch
Mentioned in GitHub
AndrewAtanov/simclr-pytorch
pytorch
Mentioned in GitHub
Mind23-2/MindCode-76
mindspore
Mentioned in GitHub
serre-lab/prj_selfsup
tf
Mentioned in GitHub
caesarea38/doclangid
pytorch
Mentioned in GitHub
ninatu/mood_challenge
pytorch
Mentioned in GitHub
p3i0t/simclr-cifar10
pytorch
Mentioned in GitHub
63days/SimCLR
pytorch
Mentioned in GitHub
yoojungsun0/Psych239
pytorch
Mentioned in GitHub
salarim/Semi-Supervised-CL
pytorch
Mentioned in GitHub
edreismd/convirt-pytorch
pytorch
Mentioned in GitHub
jwcalder/GraphLearningLayer
pytorch
Mentioned in GitHub
hemakaraveenhansika/convirt
pytorch
Mentioned in GitHub
ta9ryuWalrus/simclr
tf
Mentioned in GitHub
john-mlr/CIFAR-10-SimCLR
pytorch
Mentioned in GitHub
parkinkon1/simclr
tf
Mentioned in GitHub
spijkervet/simclr
pytorch
Mentioned in GitHub
chingyaoc/DCL
pytorch
Mentioned in GitHub
htdt/self-supervised
pytorch
Mentioned in GitHub
sunjesse/SimCLR_pytorch
pytorch
Mentioned in GitHub
optimization-ai/sogclr
pytorch
Mentioned in GitHub
thunderInfy/simclr
pytorch
Mentioned in GitHub
kawshik8/DL-project
pytorch
Mentioned in GitHub
krafton-ai/mini-batch-cl
pytorch
Mentioned in GitHub
ae-foster/pytorch-simclr
pytorch
Mentioned in GitHub
rdbch/tutorial_simclr
pytorch
Mentioned in GitHub
ssumin6/SimCLR
pytorch
Mentioned in GitHub
rdbch/simclr
pytorch
Mentioned in GitHub
Liut2016/ecg-supcontrast
pytorch
Mentioned in GitHub
applecrumble123/SimCLR_pytorch
pytorch
Mentioned in GitHub
asd08573064/SimCLR
tf
Mentioned in GitHub
open-mmlab/mmselfsup
pytorch
Mentioned in GitHub
danielzgsilva/MOT
pytorch
Mentioned in GitHub
mandiehyewon/goodviews_ecg
pytorch
Mentioned in GitHub
reppy4620/SimCLR4Paint
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
contrastive-learning-on-imagenet-1kResNet50
ImageNet Top-1 Accuracy: 69.3
image-classification-on-places205SimCLR
Top 1 Accuracy: 53.3
object-recognition-on-shape-biasSimCLR (ResNet-50x4)
shape bias: 40.7
object-recognition-on-shape-biasSimCLR (ResNet-50x1)
shape bias: 38.9
object-recognition-on-shape-biasSimCLR (ResNet-50x2)
shape bias: 41.7
person-re-identification-on-sysu-30kSimCLR (self-supervised)
Rank-1: 10.9
self-supervised-image-classification-onSimCLR (ResNet-50)
Number of Params: 24M
Top 1 Accuracy: 69.3%
Top 5 Accuracy: 89.0%
self-supervised-image-classification-onSimCLR (ResNet-50 4x)
Number of Params: 375M
Top 1 Accuracy: 76.5%
Top 5 Accuracy: 93.2%
self-supervised-image-classification-onSimCLR (ResNet-50 2x)
Number of Params: 94M
Top 1 Accuracy: 74.2%
Top 5 Accuracy: 92.0%
self-supervised-image-classification-on-1SimCLR (Resnet-50)
Top 1 Accuracy: 77.2%
self-supervised-person-re-identification-onSimCLR
Rank-1: 10.9
semi-supervised-image-classification-on-1SimCLR (ResNet-50 4×)
Top 1 Accuracy: 63.0%
Top 5 Accuracy: 85.8%
semi-supervised-image-classification-on-1SimCLR (ResNet-50 2×)
Top 1 Accuracy: 58.5%
Top 5 Accuracy: 83.0%
semi-supervised-image-classification-on-1SimCLR (ResNet-50)
Top 1 Accuracy: 48.3%
Top 5 Accuracy: 75.5%
semi-supervised-image-classification-on-2SimCLR (ResNet-50)
Top 5 Accuracy: 87.8%
semi-supervised-image-classification-on-2SimCLR (ResNet-50 4×)
Top 5 Accuracy: 92.6%
semi-supervised-image-classification-on-2SimCLR (ResNet-50 2×)
Top 5 Accuracy: 91.2%

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
A Simple Framework for Contrastive Learning of Visual Representations | Papers | HyperAI