HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Barlow Twins: Self-Supervised Learning via Redundancy Reduction

Jure Zbontar Li Jing Ishan Misra Yann LeCun Stéphane Deny

Barlow Twins: Self-Supervised Learning via Redundancy Reduction

Abstract

Self-supervised learning (SSL) is rapidly closing the gap with supervised methods on large computer vision benchmarks. A successful approach to SSL is to learn embeddings which are invariant to distortions of the input sample. However, a recurring issue with this approach is the existence of trivial constant solutions. Most current methods avoid such solutions by careful implementation details. We propose an objective function that naturally avoids collapse by measuring the cross-correlation matrix between the outputs of two identical networks fed with distorted versions of a sample, and making it as close to the identity matrix as possible. This causes the embedding vectors of distorted versions of a sample to be similar, while minimizing the redundancy between the components of these vectors. The method is called Barlow Twins, owing to neuroscientist H. Barlow's redundancy-reduction principle applied to a pair of identical networks. Barlow Twins does not require large batches nor asymmetry between the network twins such as a predictor network, gradient stopping, or a moving average on the weight updates. Intriguingly it benefits from very high-dimensional output vectors. Barlow Twins outperforms previous methods on ImageNet for semi-supervised classification in the low-data regime, and is on par with current state of the art for ImageNet classification with a linear classifier head, and for transfer tasks of classification and object detection.

Code Repositories

leot13/BarlowTwins
pytorch
Mentioned in GitHub
lightly-ai/lightly
pytorch
Mentioned in GitHub
FloCF/SSL_pytorch
pytorch
Mentioned in GitHub
Westlake-AI/openmixup
pytorch
Mentioned in GitHub
zcao0420/moformer
pytorch
Mentioned in GitHub
facebookresearch/clip-rocket
pytorch
Mentioned in GitHub
kalelpark/FG-SSL
pytorch
Mentioned in GitHub
vturrisi/solo-learn
pytorch
Mentioned in GitHub
MaxLikesMath/Barlow-Twins-Pytorch
pytorch
Mentioned in GitHub
jonahanton/ssl_audio
pytorch
Mentioned in GitHub
facebookresearch/vissl
pytorch
Mentioned in GitHub
gaborvecsei/Barlow-Twins
tf
Mentioned in GitHub
GregorKobsik/Octree-Transformer
pytorch
Mentioned in GitHub
IgorSusmelj/barlowtwins
pytorch
Mentioned in GitHub
sayakpaul/Barlow-Twins-TF
tf
Mentioned in GitHub
facebookresearch/barlowtwins
Official
pytorch
Mentioned in GitHub
naver/tldr
pytorch
Mentioned in GitHub
gabrieldernbach/barlow-twins
pytorch
Mentioned in GitHub
open-mmlab/mmselfsup
pytorch
Mentioned in GitHub
jeffwiroj/robust_tutorial
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
image-classification-on-inaturalist-2018Barlow Twins (ResNet-50)
Top-1 Accuracy: 46.5
image-classification-on-places205Barlow Twins (ResNet-50)
Top 1 Accuracy: 54.1%
self-supervised-image-classification-onBarlow Twins (ResNet-50)
Number of Params: 24M
Top 1 Accuracy: 73.2%
Top 5 Accuracy: 91
semi-supervised-image-classification-on-1Barlow Twins (ResNet-50)
Top 1 Accuracy: 55%
Top 5 Accuracy: 79.2
semi-supervised-image-classification-on-2Barlow Twins (ResNet-50)
Top 1 Accuracy: 69.7%
Top 5 Accuracy: 89.3

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