← Library · Advanced concept

Contrastive Learning

Contrastive learning is a self-supervised approach where a model learns representations by comparing similar and dissimilar pairs of data. It pulls 'positive' pairs (different views of the same instance) closer in the embedding space while pushing 'negative' pairs (different instances) further apart. This helps the model discern meaningful features without explicit labels.

In plain terms

Imagine teaching a child to recognize a dog by showing them many different pictures of dogs and many different pictures of other animals, emphasizing what makes dogs similar to each other and different from everything else.

Why it matters

It allows models to learn powerful representations from vast amounts of unlabeled data, crucial for tasks where labeled data is scarce.

Learn one new AI thing every day.

Daily Deck sends you seven plain-English cards like this every morning. Free.

Start free