AI engineering glossary · Computer vision

What is contrastive learning?

Contrastive learning: A training approach that pulls together embeddings of related pairs, such as two augmented views of one image, and pushes apart unrelated ones. It learns useful visual features without labels.

Level: advancedTopic: Computer vision

Contrastive learning: an example

Two random crops of the same photo are treated as a positive pair and crops of other photos as negatives.

Related terms

More Computer vision terms

Where you learn it

Contrastive learning is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.