Introduced on day 38
Contrastive learning
Training an encoder so that an anchor is closer to its positive example than to negatives, using a softmax-style loss over similarities.
In detail
The loss for an anchor , positive and negatives is with temperature . What counts as a positive (paraphrase, query-answer pair, augmented view) defines the geometry learned, and the quality of negatives matters as much as their number.