This paper provides a theoretical "missing link" in our understanding of Self-Supervised Learning (SSL). While researchers have known for a few years that adding a Multi-Layer Perceptron (MLP) "projector" on top of an encoder significantly boosts performance, the reason why remained largely empirical.
Mialon et al. demonstrate that Variance-Covariance Regularization (VCReg)—a common strategy to prevent model collapse—effectively turns the projector into a tool for enforcing pairwise independence in the learned representations.
TL;DR
The authors prove that applying Variance-Covariance Regularization (VCReg) to an MLP projector's output implicitly minimizes the pairwise dependence (measured by HSIC) of the features at the encoder's output. This theoretical grounding explains why wider projectors improve SSL performance and shows that this induced independence is a key driver for out-of-domain generalization.
What Problem Does This Paper Address?
In SSL, "joint embedding" architectures learn by ensuring that two different views of the same image result in similar representations. To prevent the model from simply outputting a constant vector (a failure mode called "collapse"), methods like VICReg and Barlow Twins regularize the covariance matrix of the model's output to be close to the identity matrix.
Curiously, these methods don't apply this regularization directly to the representation used for downstream tasks. Instead, they use a "projector" network $g$ on top of the encoder $f$, apply the loss to $g(f(x))$, and then throw $g$ away after training. This paper investigates the theoretical mechanism of this projector: why is it there, and what does its regularization do to the underlying representation?
Methods
The authors bridge the gap between standard covariance regularization and kernel-based independence measures.
- VCReg Definition: They define VCReg as the combination of a variance term (ensuring features have at least unit variance) and a covariance term (minimizing the correlation between different features).
- The HSIC Connection: They prove that for a random MLP projector, minimizing the covariance of the output is mathematically equivalent to minimizing the Hilbert-Schmidt Independence Criterion (HSIC)—a robust measure of statistical dependence—between pairs of features in the input (the encoder's representation).
- Theoretical Composition: They show that each layer of an MLP (Linear + BatchNorm + ReLU) acts as a kernel that, when regularized at the output, enforces independence at the input. This result is extended recursively through the depth of the network.
Datasets
The study validates its findings using several standard benchmarks:
- ImageNet: Used for the primary SSL training and validation of representations.
- Generalization Suite: To test out-of-domain performance, they evaluated on Places205, CIFAR100, iNaturalist, and CIFAR10.
- ICA Benchmarks: To test if VCReg can solve Independent Component Analysis, they used a synthetic dataset (6 sources) and a real audio dataset (3 sources).
Key Insights and Ideas
- Pairwise vs. Mutual Independence: VCReg is excellent at reducing pairwise dependence (HSIC) but doesn't necessarily improve mutual independence (dHSIC), where groups of three or more variables are considered together. As seen in Figure 1, HSIC drops significantly during training while dHSIC stagnates.
- Width Matters: The theory predicts that wider projectors provide a better approximation of the "universal kernels" needed for true independence. Empirical results in Figure 2 confirm that increasing projector width $P$ leads to lower HSIC.
- Independence Aids Generalization: A major "aha" moment is the correlation between low HSIC and better out-of-domain accuracy. Representations where features are more independent generalize better to new types of data (see Figure 3).
- Random Projectors are Enough: Surprisingly, the projector doesn't even need to be learned to enforce independence. A fixed random projector—or better yet, one that is resampled at every step—can be highly effective.
Key Results
- SSL Performance: VCReg-based methods (Barlow Twins, VICReg) achieve lower HSIC and a higher percentage of independent feature pairs compared to DINO or supervised baselines (Table 1).
- Solving ICA: The authors demonstrate that a simple linear encoder followed by a random resampled projector and VCReg can solve linear Independent Component Analysis. It achieves a maximum correlation with true sources of ~0.99, performing as well as specialized algorithms like FastICA.
Limitations and Future Work
- Non-linear ICA: While VCReg excels at linear ICA, it struggles with non-linear ICA. The authors suggest this is because features in the projector output are non-linear functions of all input features, making it impossible to completely disentangle them.
- Information vs. Independence: There is a trade-off. Optimizing for independence too aggressively can lead to a drop in accuracy (information collapse), suggesting that some level of feature dependence might be necessary for complex classification tasks.
- Future Directions: The authors suggest exploring whether pairwise independence is linked to the linear separability of features, which is the standard way SSL representations are evaluated.
Summary updated