AIInterviewTraining logoAIInterview/Training
📊 Evaluation & ML Foundations
Core

Contrastive and Metric Learning

Contrastive learning trains embeddings through comparison: pull similar (positive) pairs together and push dissimilar (negative) pairs apart, so distance encodes similarity. It drives retrieval embeddings, CLIP's shared text-image space, face recognition, and self-supervised pretraining. Quality rides on the number and difficulty of negatives. AI, ML, and GenAI engineer 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
COMPANIES THAT ASSUME THIS
NEXT IN EVALUATION & ML FOUNDATIONSLLM-as-a-Judge