Skip to main content
QUICK REVIEW

[Paper Review] On the duality between contrastive and non-contrastive self-supervised learning

Quentin Garrido, Yubei Chen|arXiv (Cornell University)|Jun 3, 2022
Domain Adaptation and Few-Shot LearningComputer Science24 citations
TL;DR

The paper proves an equivalence between sample-contrastive (contrastive) and dimension-contrastive (covariance-based non-contrastive) self-supervised losses under normalization, and empirically shows how to interpolate and tune VICReg and SimCLR to close performance gaps and improve robustness to embedding dimension.

ABSTRACT

Recent approaches in self-supervised learning of image representations can be categorized into different families of methods and, in particular, can be divided into contrastive and non-contrastive approaches. While differences between the two families have been thoroughly discussed to motivate new approaches, we focus more on the theoretical similarities between them. By designing contrastive and covariance based non-contrastive criteria that can be related algebraically and shown to be equivalent under limited assumptions, we show how close those families can be. We further study popular methods and introduce variations of them, allowing us to relate this theoretical result to current practices and show the influence (or lack thereof) of design choices on downstream performance. Motivated by our equivalence result, we investigate the low performance of SimCLR and show how it can match VICReg's with careful hyperparameter tuning, improving significantly over known baselines. We also challenge the popular assumption that non-contrastive methods need large output dimensions. Our theoretical and quantitative results suggest that the numerical gaps between contrastive and non-contrastive methods in certain regimes can be closed given better network design choices and hyperparameter tuning. The evidence shows that unifying different SOTA methods is an important direction to build a better understanding of self-supervised learning.

Motivation & Objective

  • Motivate and formalize the relationship between contrastive and non-contrastive SSL methods.
  • Show that sample-contrastive and dimension-contrastive losses are equivalent under normalization and relate popular methods to these criteria.
  • Interpolate between VICReg and SimCLR to study loss components and validate equivalence empirically.
  • Demonstrate that careful hyperparameter tuning and architecture (projector) can close performance gaps and improve robustness across methods.

Proposed method

  • Define two criteria: sample-contrastive loss L_c = ||K^T K - diag(K^T K)||_F^2 and dimension-contrastive loss L_nc = ||K K^T - diag(K K^T)||_F^2.
  • Show L_nc and L_c are equivalent up to row/column normalization of the embedding matrix K (Theorem 3.3).
  • Relate existing methods (SimCLR, VICReg, Barlow Twins, DCL, Spectral Contrastive Loss, etc.) to these criteria (Propositions 3.1–3.2).
  • Rewrite VICReg’s loss to reveal how it can be viewed as a sample-contrastive objective under a norm-regularization scheme (Disguising VICReg as a contrastive method).
  • Propose VICReg variants (VICReg-exp, VICReg-ctr) that interpolate toward contrastive formulations and study their optimization/representations."
  • Evaluate normalization strategies and projector architectures to assess practical impact on downstream performance.

Experimental results

Research questions

  • RQ1Do sample-contrastive and dimension-contrastive losses define equivalent optimization objectives under normalization?
  • RQ2Can VICReg and SimCLR be connected through loss design, and do hyperparameter choices erase empirical performance gaps?
  • RQ3What is the practical impact of normalization strategies on SSL performance across methods?
  • RQ4How do projector architecture and embedding dimension affect performance and robustness across methods across a 100-epoch training window?

Key findings

  • L_nc and L_c are equivalent up to row/column normalization of K, making sample-contrastive and dimension-contrastive losses closely related.
  • SimCLR and DCL criteria approach the same optimization target as L_c under certain conditions, while VICReg-like methods align with L_nc.
  • VICReg can be expressed as a contrastive-like objective by reinterpreting its covariance term, highlighting the duality between families.
  • Two VICReg variants (VICReg-exp and VICReg-ctr) enable interpolation toward contrastive formulations, with empirical results showing close performance among VICReg, VICReg-exp, and VICReg-ctr in 100 epochs.
  • Careful hyperparameter tuning and larger projectors can raise SimCLR performance to VICReg levels, challenging assumptions about inherent gaps between methods.
  • Normalization strategy (embedding vs. dimension normalization) does not decisively affect peak performance in the studied setups, provided practical implementation choices are made.

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.