Skip to main content
QUICK REVIEW

[Paper Review] Understanding self-supervised Learning Dynamics without Contrastive Pairs

Yuandong Tian, Xinlei Chen|arXiv (Cornell University)|Feb 12, 2021
Neural Networks and ApplicationsComputer Science64 citations
TL;DR

The paper analyzes the nonlinear learning dynamics of non-contrastive SSL (BYOL/SimSiam) in simple linear networks, proves key properties (weight decay balancing, stop-gradient necessity, eigenspace alignment), and introduces DirectPred to set the predictor directly from data statistics.

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.

Motivation & Objective

  • Explain why non-contrastive SSL methods avoid collapse without negative pairs.
  • Understand how predictor networks, stop-gradients, EMA, and weight decay interact to learn robust representations.
  • Provide analytic predictions that explain empirical ablations in BYOL/SimSiam across datasets.
  • Propose a simple, optimization-free predictor (DirectPred) aligned with theory.
  • Validate theoretical insights with experiments on STL-10, CIFAR-10, and ImageNet.

Proposed method

  • Develop a simple two-layer linear BYOL model to derive nonlinear learning dynamics.
  • Derive gradient-flow equations for W, W_p, and W_a under augmentations and weight decay.
  • Prove weight decay promotes balancing between predictor and online networks (Theorem 1).
  • Show stop-gradient is essential to avoid collapse (Theorem 2).
  • Demonstrate eigenspace alignment between the predictor and online feature covariance (Theorem 3).
  • Introduce DirectPred that sets W_p from predictor input statistics via eigen-decomposition (Equation 18).

Experimental results

Research questions

  • RQ1Why do non-contrastive SSL methods avoid representational collapse without negative pairs?
  • RQ2How do EMA, predictor learning rate, and weight decay interact to shape learning dynamics?
  • RQ3Do the predictor and online representations align in eigenspace, and under what conditions?
  • RQ4Can a closed-form, optimization-free predictor achieve competitive performance?
  • RQ5How well do the theory-driven insights explain empirical ablations on STL-10 and ImageNet?

Key findings

  • Weight decay promotes balancing between predictor and online networks, preventing predictor-only explanations for learned representations (Theorem 1).
  • Removing stop-gradient leads to representational collapse, analytically demonstrating the necessity of stop-gradient (Theorem 2).
  • Eigenspace alignment between the predictor and the online feature covariance emerges over training, enabling decoupled, mode-wise dynamics (Theorem 3).
  • EMA acts as an automatic curriculum that gradually raises alignment goals, aiding stable learning and performance (observations tied to Theorem 3 and related analysis).
  • DirectPred, an optimization-free predictor set from input statistics, matches or exceeds gradient-trained linear predictors and achieves strong ImageNet STL-10/CIFAR-10 results (e.g., ImageNet 72.4/91.0 Top-1/Top-5 at 300 epochs; +5% Top-1 on STL-10 and ImageNet for 60 epochs).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.