Losses and objectives · MLD-0221
Contrastive loss
A family of losses encouraging compatible pairs to match and incompatible pairs to separate.
Original reference page · detailed expansion pending. Original definitions, examples, notes and citations are preserved below. New examples are illustrative, not benchmark results.
Original example
Train image-text embeddings.
Original caveat
The term covers several nonidentical objectives.
Context and aliases
Level: Intermediate. Stages: Theory · Training · Evaluation.
Tags: ML · DL · SLM · LLM.
Aliases: None recorded.
Related concepts
Concepts linking here
Original references
- Deep Learning: online textbook ↗ · Consulted
- scikit-learn: evaluation metrics ↗ · Reference link
- PyTorch neural-network layers ↗ · Reference link
- Original reference URL ↗