flâneur — a map of the web's best reading

Contrastive Representation Learning | Lil'Log

lilianweng.github.io · 8,525 words · saved by 1 readers

The goal of contrastive representation learning is to learn such an embedding space in which similar sample pairs stay close to each other while dissimilar ones are far apart. Contrastive learning can be applied to both supervised and unsupervised settings. When working with unsupervised data, contrastive learning is one of the most powerful approaches in self-supervised learning.

Table of Contents Contrastive Training Objectives Contrastive Loss Triplet Loss Lifted Structured Loss N-pair Loss NCE InfoNCE Soft-Nearest Neighbors Loss Common Setup Key Ingredients Heavy Data Augmentation Large Batch Size Hard Negative Mining Vision: Image Embedding Image Augmentations Basic Image Augmentation Augmentation Strategies Image Mixture Parallel Augmentation SimCLR Barlow Twins BYOL Memory Bank Instance Discrimination with Memoy Bank MoCo & MoCo-V2 CURL Feature Clustering DeepCluster SwAV Working with Supervised Datasets CLIP Supervised Contrastive Learning Language: Sentence Emb

Explore this link on the map →

related reading