Abstract
Prevention of complete and dimensional collapse of representations has recently become a design principle for self-supervised learning (SSL). However, questions remain in our theoretical understanding: When do those collapses occur? What are the mechanisms and causes? We answer these questions by deriving and thoroughly analyzing an analytically tractable theory of SSL loss landscapes. In this theory, we identify the causes of the dimensional collapse and study the effect of normalization and bias. Finally, we leverage the interpretability afforded by the analytical theory to understand how dimensional collapse can be beneficial and what affects the robustness of SSL against data imbalance.
Introduction
Self-supervised learning (SSL) has revolutionized representation learning by enabling models to extract features from unlabeled data. By encouraging different views of the same sample to have similar representations, SSL avoids the need for manual labels. However, this objective often leads to "collapse," where the model learns trivial solutions. This paper, presented at ICLR 2023, provides a rigorous theoretical framework to understand the geometry of SSL loss landscapes and the conditions that lead to dimensional collapse.
The Problem of Collapse
In SSL, training often suffers from two types of failure modes:
- Complete Collapse: The model projects all data onto a single point.
- Dimensional Collapse: The model projects data onto a very low-dimensional subspace, losing the rank of the representation matrix.
While empirical "tricks" like asymmetric architectures or specialized loss functions (e.g., Barlow Twins) help, a unified theory explaining why these occur has been missing.
Theoretical Framework: Linear Models and Taylor Expansion
To make the problem analytically tractable, the authors analyze linear models ($f(x) = Wx$). By performing a Taylor expansion of popular SSL loss functions (InfoNCE, Barlow Twins, VICReg, etc.) around the origin ($W=0$), they identify the "leading order" behavior. This allows them to determine the stability of the origin: if the origin is a stable local minimum, the model collapses; if it is an unstable maximum, the model learns meaningful features.
The Tug-of-War: Signal vs. Noise
The core of the theory is a competition between data variation (the signal) and data augmentation (the noise). The geometry of the loss landscape is shaped by this balance. Collapse occurs when the noise introduced by augmentation overwhelms the signal in a specific dimension.
As shown in the figure above, the local stability at the start of training determines the learning trajectory. If the "repulsion" from dissimilar samples is insufficient to overcome the "attraction" of the augmentation, the dimension collapses. Interestingly, the authors show that "good" collapse can exist; by heavily augmenting task-irrelevant features, the model is forced to ignore noise and focus on essential content, improving generalization.
Key Findings and Implications
- Universal Form: Most SSL losses reduce to a similar effective form: $L = -\text{Tr}[WBW^T]$, where $B$ captures the signal-noise competition.
- Normalization Risks: While normalization (common in SimCLR) prevents complete collapse, the theory proves it actually makes dimensional collapse more likely.
- Robustness to Imbalance: Spectral Contrastive Loss (SCL) is found to be more robust to data imbalance than InfoNCE. SCL's landscape is primarily shaped by the augmentation strategy, whereas InfoNCE is more sensitive to skewed data distributions.
Conclusion
By moving beyond empirical trial-and-error, this work provides a mathematical foundation for understanding SSL. It demonstrates that dimensional collapse is not just a failure mode but a controllable aspect of the loss landscape that can be leveraged to filter out irrelevant information. Future research will likely explore how these landscape properties interact with the dynamics of stochastic gradient descent in deeper, non-linear networks.
Summary updated