Understanding Collapse in Non-Contrastive Siamese Representation Learning

Alexander C. Li, Alexei A. Efros, Deepak Pathak
9/29/2022
cs.LGcs.AIcs.CV
contrastive-ssl

Official code: alexlioralexli/noncontrastive-ssl (16 stars, Jupyter Notebook, MIT, PyTorch, last commit 2023-11-12).

Abstract

Contrastive methods have led a recent surge in the performance of self-supervised representation learning (SSL). Recent methods like BYOL or SimSiam purportedly distill these contrastive methods down to their essence, removing bells and whistles, including the negative examples, that do not contribute to downstream performance.

Show full abstract

These "non-contrastive" methods work surprisingly well without using negatives even though the global minimum lies at trivial collapse. We empirically analyze these non-contrastive methods and find that SimSiam is extraordinarily sensitive to dataset and model size. In particular, SimSiam representations undergo partial dimensional collapse if the model is too small relative to the dataset size. We propose a metric to measure the degree of this collapse and show that it can be used to forecast the downstream task performance without any fine-tuning or labels. We further analyze architectural design choices and their effect on the downstream performance. Finally, we demonstrate that shifting to a continual learning setting acts as a regularizer and prevents collapse, and a hybrid between continual and multi-epoch training can improve linear probe accuracy by as many as 18 percentage points using ResNet-18 on ImageNet. Our project page is at https://alexanderli.com/noncontrastive-ssl/.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Analyzing partial dimensional collapse in non-contrastive self-supervised learning. "Understanding Collapse in Non-Contrastive Siamese Representation Learning." In ECCV, 2022.

161Jupyter Notebook, PythonJul 22, 20223 years agoMIT
computer-visioncontrastive-learningdeep-learningpytorchself-supervised-learning

Similar Papers

Cite this paper

@article{li2022understanding,
  title  = {Understanding Collapse in Non-Contrastive Siamese Representation Learning},
  author = {Alexander C. Li and Alexei A. Efros and Deepak Pathak},
  year   = {2022},
  eprint = {2209.15007},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.15007}
}

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

Discussion