Towards the Generalization of Contrastive Self-Supervised Learning

Weiran Huang, Mingyang Yi, Xuyang Zhao, Zihao Jiang
11/1/2021
cs.LGcs.AIcs.CV
contrastive-ssl

Official code: MIFA-Lab/contrastive2021 (42 stars, Python, MIT, PyTorch, last commit 2022-10-19).

Abstract

Recently, self-supervised learning has attracted great attention, since it only requires unlabeled data for model training. Contrastive learning is one popular method for self-supervised learning and has achieved promising empirical performance.

Show full abstract

However, the theoretical understanding of its generalization ability is still limited. To this end, we define a kind of $(σ,δ)$-measure to mathematically quantify the data augmentation, and then provide an upper bound of the downstream classification error rate based on the measure. It reveals that the generalization ability of contrastive self-supervised learning is related to three key factors: alignment of positive samples, divergence of class centers, and concentration of augmented data. The first two factors are properties of learned representations, while the third one is determined by pre-defined data augmentation. We further investigate two canonical contrastive losses, InfoNCE and cross-correlation, to show how they provably achieve the first two factors. Moreover, we conduct experiments to study the third factor, and observe a strong correlation between downstream performance and the concentration of augmented data.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Implementation for ICLR 2023 paper "Towards the Generalization of Contrastive Self-Supervised Learning" (https://arxiv.org/abs/2111.00743)

4211Python, ShellNov 2, 20214 years agoMIT
cifar10contrastive-learningpytorchself-supervised-learning

Similar Papers

Cite this paper

@article{huang2021towards,
  title  = {Towards the Generalization of Contrastive Self-Supervised Learning},
  author = {Weiran Huang and Mingyang Yi and Xuyang Zhao and Zihao Jiang},
  year   = {2021},
  eprint = {2111.00743},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.00743}
}

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

Discussion