ContrastivelearningContrastive learning

Contrastive learning — pull pairs together, push others apart

Training two encoders so that matching pairs (an image and its caption) score higher than every mismatched pair in the batch.

CLIP uses a softmax over the batch; SigLIP an independent sigmoid per pair (section 25.3).

Where the course uses it

Related terms