Understanding self-supervised Learning Dynamics without Contrastive Pairs

Yuandong Tian, Xinlei Chen, Surya Ganguli
2/12/2021
cs.LGcs.AIcs.CV

Official code: facebookresearch/luckmatters (308 stars, last commit 2025-10-19).

Abstract

While contrastive approaches of self-supervised learning (SSL) learn representations by minimizing the distance between two augmented views of the same data point (positive pairs) and maximizing views from different data points (negative pairs), recent \emph{non-contrastive} SSL (e.g., BYOL and SimSiam) show remarkable performance {\it without} negative pairs, with an extra learnable predictor and a stop-gradient operation. A fundamental question arises: why do these methods not collapse into trivial representations? We answer this question via a simple theoretical study and propose a novel approach, DirectPred, that \emph{directly} sets the linear predictor based on the statistics of its inputs, without gradient training. On ImageNet, it performs comparably with more complex two-layer non-linear predictors that employ BatchNorm and outperforms a linear predictor by $2.5\%$ in 300-epoch training (and $5\%$ in 60-epoch). DirectPred is motivated by our theoretical study of the nonlinear learning dynamics of non-contrastive SSL in simple linear networks. Our study yields conceptual insights into how non-contrastive SSL methods learn, how they avoid representational collapse, and how multiple factors, like predictor networks, stop-gradients, exponential moving averages, and weight decay all come into play. Our simple theory recapitulates the results of real-world ablation studies in both STL-10 and ImageNet. Code is released https://github.com/facebookresearch/luckmatters/tree/master/ssl.

View on arXivView PDF

Code Implementations(1)

Understanding Training Dynamics of Deep ReLU Networks

30832Shell, PythonJun 5, 20191 years agoNOASSERTION

Similar Papers

Cite this paper

@article{tian2021understanding,
  title  = {Understanding self-supervised Learning Dynamics without Contrastive Pairs},
  author = {Yuandong Tian and Xinlei Chen and Surya Ganguli},
  year   = {2021},
  eprint = {2102.06810},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.06810}
}

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

Discussion