Your Contrastive Learning Is Secretly Doing Stochastic Neighbor Embedding

Tianyang Hu, Zhili Liu, Fengwei Zhou, Wenjia Wang, Weiran Huang
5/30/2022
37 citations
cs.LGcs.AIcs.CV
contrastive-ssl

Official code: Capricious-Liu/t-MoCo-v2 (1 star, Python, last commit 2023-07-15).

Abstract

Contrastive learning, especially self-supervised contrastive learning (SSCL), has achieved great success in extracting powerful features from unlabeled data. In this work, we contribute to the theoretical understanding of SSCL and uncover its connection to the classic data visualization method, stochastic neighbor embedding (SNE), whose goal is to preserve pairwise distances.

Show full abstract

From the perspective of preserving neighboring information, SSCL can be viewed as a special case of SNE with the input space pairwise similarities specified by data augmentation. The established correspondence facilitates deeper theoretical understanding of learned features of SSCL, as well as methodological guidelines for practical improvement. Specifically, through the lens of SNE, we provide novel analysis on domain-agnostic augmentations, implicit bias and robustness of learned features. To illustrate the practical advantage, we demonstrate that the modifications from SNE to $t$-SNE can also be adopted in the SSCL setting, achieving significant improvement in both in-distribution and out-of-distribution generalization.

View on arXivView PDF

Code Implementations(1)

11Python, ShellJul 15, 20233 years agoNOASSERTION

Similar Papers

Cite this paper

@article{hu2022your,
  title  = {Your Contrastive Learning Is Secretly Doing Stochastic Neighbor Embedding},
  author = {Tianyang Hu and Zhili Liu and Fengwei Zhou and Wenjia Wang and Weiran Huang},
  year   = {2022},
  eprint = {2205.14814},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.14814}
}

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/2205.14814.svg)](https://codeofpaper.com/paper/2205.14814)

Discussion