Write info-NCE / NT-Xent and its role in SSL.
hardAnswer
- = -, sim = cosine similarity, τ = temperature.
- Treats contrastive learning as a classification problem: 'which of these candidates is the positive?'.
- Foundation of SimCLR, MoCo, CLIP, GPT-style retrieval.
- Larger negative batches → richer learning signal.
Check yourself — multiple choice
- Same as triplet
- InfoNCE: softmax over positive vs many negatives with cosine sim / temperature — SimCLR/MoCo/CLIP foundation
- Removes negatives
- Only for images
InfoNCE = softmax-classification over one positive vs many negatives; core to modern SSL.
#losses#contrastive#self-supervised
Practise Deep Learning
214 interview questions in this topic.
Related questions
- Write the basic contrastive loss and when it's used.
- What is triplet loss and its main challenge?
- Why compute softmax + cross-entropy jointly via log-sum-exp?
- How should the output head be designed for a regression task with a strictly positive target?
- How is the output head different for multi-label vs multi-class classification?
- What is label smoothing and why does it help?