Contrastive Loss
Quick definition
A learning objective that brings related representations closer while pushing unrelated representations apart.
A learning objective that brings related representations closer while pushing unrelated representations apart.
Contrastive objectives depend on how positive and negative pairs are chosen, which influences what similarity means.
Example: A retrieval model learns to pair a query with its correct article rather than an unrelated article.
Common use cases: Embedding training, multimodal alignment, and semantic retrieval.
Examples
- A retrieval model learns to pair a query with its correct article rather than an unrelated article.
Use cases
- Embedding training, multimodal alignment, and semantic retrieval.
Frequently asked questions
What is Contrastive Loss?
A learning objective that brings related representations closer while pushing unrelated representations apart.
What should I know about Contrastive Loss?
Contrastive objectives depend on how positive and negative pairs are chosen, which influences what similarity means.