What is: Supervised Contrastive Loss?
Source | Supervised Contrastive Learning |
Year | 2000 |
Data Source | CC BY-SA - https://paperswithcode.com |
Supervised Contrastive Loss is an alternative loss function to cross entropy that the authors argue can leverage label information more effectively. Clusters of points belonging to the same class are pulled together in embedding space, while simultaneously pushing apart clusters of samples from different classes.
where is the total number of images in the minibatch that have the same label, , as the anchor, . This loss has important properties well suited for supervised learning: (a) generalization to an arbitrary number of positives, (b) contrastive power increases with more negatives.