← 📊 Evaluation & ML FoundationsNEXT IN EVALUATION & ML FOUNDATIONSLLM-as-a-Judge→
Core
Contrastive and Metric Learning
Contrastive learning trains embeddings by comparison: pull similar (positive) pairs together and push dissimilar (negative) pairs apart, so distance encodes similarity. It powers retrieval embeddings, CLIP's shared text-image space, face recognition, and self-supervised pretraining. Quality hinges on the number and difficulty of negatives. Applied-AI interviews probe it because it is how the embeddings under search, RAG, and recommendation are actually trained, and because 'where do good embeddings come from?' has a concrete answer.
a free account unlocks the core curriculum tier · no card
RELATED CONCEPTS
PRACTICE THIS IN REAL QUESTIONS
Machine Learning & Data ScienceWhat is contrastive / metric learning, and how does it learn good embeddings?→Machine Learning & Data ScienceWhat is self-supervised learning, and how do contrastive methods and masked prediction work?→System Design for AI in ProductionDesign a system to retrieve similar scenes from a large video corpus given a query clip.→Machine Learning & Data ScienceYou're training embeddings with contrastive/triplet loss. How do you choose pairs, the margin, and negatives?→Machine Learning & Data ScienceYour churn model's AUC jumps from 0.71 to 0.93 after adding a 7-day rolling feature. What now?→Machine Learning & Data ScienceDefine precision, recall, F1, and AUC, and give a case where each (and accuracy) is misleading.→
COMPANIES THAT ASSUME THIS
