Contrastive Learning

Things to remember:

  1. Batch size is very important parameter for contrastive learning. Larger batch size is better as it gives more diverse negative samples
  2. We need hard negative and not false negatives

Loss

  1. Standard Contrastive Loss
  2. Triplet Loss
  3. InfoNCE Loss

Related Notes