Contrastive Learning (SimCLR / MoCo / CLIP)

A family of self-supervised methods that learn representations by pulling augmented views of the same instance together and pushing different instances apart in embedding space.

Method

Generate two (or more) augmented views; encode with a neural network (and optionally a projection head); apply a contrastive loss (InfoNCE / NT-Xent) that maximizes agreement of positive pairs relative to negatives. MoCo uses a momentum encoder and queue; CLIP extends the idea to image-text pairs at web scale.

Applications

Pre-training visual representations without labels, multimodal retrieval and zero-shot classification (CLIP), improving downstream sample efficiency, audio and graph contrastive learning, robust feature learning.

Advantages

Strong transferable representations; reduces dependence on labeled data; CLIP-style models enable remarkable zero-shot capabilities; scalable.

Limitations

Requires careful augmentation design; large batch sizes or memory banks for sufficient negatives; can learn superficial shortcuts; multimodal versions inherit web-scale data biases. CLIP uses paired text-image supervision; SimCLR and MoCo typically use augmented image views.

Alternatives

Masked autoencoders (MAE), clustering-based SSL (SwAV), BYOL / SimSiam (no negatives), supervised pre-training when labels exist. Top Algorithms & Models — Part 2 (101–200) Research Compendium

Editorial clarification

CLIP uses paired text-image supervision; SimCLR and MoCo typically use augmented image views.

Sources

Educational reference only, not professional advice.

All algorithms