Intriguing Properties of Contrastive Losses

Ting Chen, Calvin Luo, Lala Li
11/5/2020
cs.LGcs.AIcs.CV

Official code: google-research/simclr (4,503 stars, Apache-2.0, last commit 2023-05-22).

Abstract

We study three intriguing properties of contrastive learning. First, we generalize the standard contrastive loss to a broader family of losses, and we find that various instantiations of the generalized loss perform similarly under the presence of a multi-layer non-linear projection head. Second, we study if instance-based contrastive learning (with a global image representation) can learn well on images with multiple objects present. We find that meaningful hierarchical local features can be learned despite the fact that these objectives operate on global instance-level features. Finally, we study the phenomenon of feature suppression among competing features shared across augmented views, such as "color distribution" vs "object class". We construct datasets with explicit and controllable competing features, and show that, for contrastive learning, a few bits of easy-to-learn shared features can suppress, and even fully prevent, the learning of other sets of competing features. In scenarios where there are multiple objects in an image, the dominant object would suppress the learning of smaller objects. Existing contrastive learning methods critically rely on data augmentation to favor certain sets of features over others, and could suffer from learning saturation for scenarios where existing augmentations cannot fully address the feature suppression. This poses open challenges to existing contrastive learning techniques.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

SimCLRv2 - Big Self-Supervised Models are Strong Semi-Supervised Learners

4,503666Python, Jupyter NotebookMar 10, 20203 years agoApache-2.0
computer-visioncontrastive-learningrepresentation-learningself-supervised-learningsimclr+2 more

Cite this paper

@article{chen2020intriguing,
  title  = {Intriguing Properties of Contrastive Losses},
  author = {Ting Chen and Calvin Luo and Lala Li},
  year   = {2020},
  eprint = {2011.02803},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.02803}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.02803.svg)](https://codeofpaper.com/paper/2011.02803)

Discussion