Variance Covariance Regularization Enforces Pairwise Independence in Self-Supervised Representations

Grégoire Mialon, Randall Balestriero, Yann LeCun

TL;DR

Self-supervised learning (SSL) methods like VICReg and Barlow Twins rely on "projector" networks to prevent representation collapse, but why multi-layer perceptron (MLP) projectors work so well has remained largely unexplained. This paper proves that regularizing the variance and covariance of a projector’s output mathematically minimizes the Hilbert-Schmidt Independence Criterion (HSIC), actively enforcing pairwise statistical independence among features in the encoder's representation. Leveraging these insights, the authors demonstrate how projector design influences feature independence and show that this objective can even solve classic linear Independent Component Analysis (ICA).

What Problem Does This Paper Address?

In joint-embedding SSL, an encoder extracts representations from different augmented views of the same image while an invariance loss pulls them together. To prevent representation collapse (where the model maps every input to a constant vector), methods like VICReg, Barlow Twins, and W-MSE apply Variance-Covariance Regularization (VCReg)—penalizing feature correlation and maintaining variance. Crucially, these losses are calculated on the output of an auxiliary MLP "projector" that is discarded after training.

While practitioners know that MLP projectors significantly boost downstream accuracy compared to linear or no projectors, theoretical motivations for their role have been lacking. This work addresses why and how applying VCReg at the end of an MLP projector shapes the underlying representations learned by the encoder.

Methods

  • Bridging VCReg to HSIC: The authors theoretically demonstrate that minimizing the off-diagonal covariance of the projector output corresponds to minimizing the Hilbert-Schmidt Independence Criterion (HSIC)—a kernel-based measure of statistical independence—between all pairs of features in the encoder output:
  • For elementwise nonlinearities (like ReLU), output covariance minimization directly equates to minimizing HSIC using a universal kernel approximation.
  • For random linear layers, output decorrelation with wide orthogonal weight matrices bounds HSIC under a linear kernel.
  • Composing these layer-wise results shows that an alternating MLP projector with random weights recursively forces the encoder’s features toward pairwise statistical independence.
  • Randomized Batch Normalization: To better satisfy universal kernel conditions in practice, the authors propose sampling Batch Normalization statistics (mean and variance) from empirical distributions during training.
  • Linear & Nonlinear ICA: To isolate VCReg from SSL pretext tasks, they apply VCReg to a linear model where an encoder matrix $M$ is optimized through a frozen, randomly sampled projector to recover independent source signals from mixed inputs.

Datasets

  • ImageNet-1k: Standard computer vision benchmark used for SSL pretraining and linear evaluation on ResNet-50.
  • Downstream Transfer Benchmarks: Places205, iNaturalist (iNat), CO3D, and CO3D video for evaluating linear probing quality.
  • Synthetic ICA Data: A 6-source mixture benchmark (4 signal sources and 2 noise sources) from Brakel & Bengio (2017).
  • TSP Audio Dataset: Real speech audio mixtures (Kabal, 2002) containing 3 sources (speech and noise).

Key Insights and Ideas

  • Wider is better, deeper is not: The mathematical link to HSIC relies on layer weights being approximately orthogonal. As projector width ($P$) increases, random weights become increasingly orthogonal via the central limit theorem, producing cleaner HSIC estimates and stronger pairwise independence. Conversely, adding depth loosens this regularization across layers and hurts independence.
  • The projector doesn't need to be learned for independence: Experiments show random, frozen projectors enforce pairwise independence just as effectively as (or better than) learned projectors. In SSL, learning the projector is primarily needed to absorb and satisfy view-invariance constraints without discarding informative features.
  • Batch Normalization is optional: Because VCReg implicitly regularizes activations throughout the projector layers, explicit Batch Normalization in the projector is not strictly necessary to achieve low feature dependence.

Key Results

  • Improved SSL Performance: Introducing Randomized Batch Normalization in the VICReg projector increases ImageNet Top-1 linear probe accuracy from 68.4% to 69.1% while reducing feature dependence.
  • Projector Architecture Impacts: Removing Batch Normalization from the projector in VICReg dropped mean HSIC from 0.30 to 0.22 while retaining ImageNet accuracy (~68.1%) and improving transfer accuracy across downstream tasks (e.g., iNaturalist rose from 27.6% to 29.9%).
  • Linear ICA Recovery: Without any data augmentations or invariance losses, a random projector coupled with VCReg solves linear ICA, achieving near-perfect source reconstruction correlations of 0.9986 on synthetic data and 0.9936 on audio data—matching specialized methods like FastICA and Anica.

Limitations and Future Work

  • Fails at Nonlinear ICA: While VCReg excels at linear ICA, it cannot solve post-nonlinear mixture (PNL) ICA (achieving only 0.8465 correlation). Pairwise independence does not imply mutual independence, and deep nonlinear projections struggle to disentangle shared input mixtures.
  • The Independence vs. Performance Trade-off: Minimizing HSIC too aggressively degrades ImageNet accuracy because statistical independence criteria do not guarantee information retention (i.e., representations can become independent but uninformative).
  • Theoretical Assumptions: The primary proof assumes random, wide weights; while empirical findings transfer well to trained projectors, formalizing the exact dynamics of trained weights during gradient descent remains an open problem.

Summary updated

BibTeX
@inproceedings{mialon2023variance,
  author = {Grégoire Mialon and Randall Balestriero and Yann LeCun},
  title = {{Variance Covariance Regularization Enforces Pairwise Independence in Self-Supervised Representations}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=Nn-7OXvqmSW},
}
Figure