On Rotational Symmetry in the Loss landscape of Self-Supervised Learning

Liu Ziyin, Ekdeep Singh Lubana, Masahito Ueda, Hidenori TanakaNeurReps @ NeurIPS 2022

TL;DR

This paper introduces a theoretical framework to understand dimensional collapse in self-supervised learning (SSL) by analyzing the loss landscape. They show that collapses are linked to the stability of the last layer at the origin and the restoration of broken symmetries, offering a unified explanation for various collapse phenomena.

What Problem Does This Paper Address?

Self-supervised learning (SSL) has shown remarkable success in learning representations without labeled data. However, a common failure mode is "dimensional collapse," where the learned representations become low-dimensional, losing valuable information. This phenomenon has been observed empirically, but its underlying causes and theoretical underpinnings remain unclear. Existing work has proposed various explanations, sometimes leading to conflicting conclusions (e.g., strong augmentations causing collapse vs. improving generalization). This paper aims to provide a unified, analytical theory to explain why and when dimensional collapse occurs in SSL, particularly in linear models, and how it relates to the geometry of the loss landscape.

Methods

The authors develop an analytically tractable theory of the loss landscape for linear models trained with common SSL loss functions like InfoNCE and NT-xent. They decompose the model output into a general function and a last-layer weight matrix, then analyze the covariance of these components. A key technique is to derive the effective landscape around the origin, which allows them to identify stationary points and analyze their stability. They use eigenvalue decomposition and matrix manipulations to derive conditions for collapse based on the properties of the data and augmentation. The theory is then extended to analyze the effect of normalization and bias terms.

Datasets

The paper uses synthetic datasets generated from Gaussian distributions for theoretical analysis and numerical experiments. Specifically, they mention training a ResNet18 on CIFAR10 for one experiment to illustrate the landscape of nonlinear models.

Key Insights and Ideas

  • Collapse as Symmetry Restoration: Dimensional collapse is fundamentally linked to the restoration of broken symmetries in the loss landscape, particularly the stability of the origin.
  • Competition Between Data and Augmentation: The occurrence of collapse is determined by a competition between the inherent structure of the data and the strength and nature of data augmentations.
  • Normalization's Double-Edged Sword: While normalization is a common practice to stabilize training, it can paradoxically cause or facilitate dimensional collapse, especially when augmentations are weak or the dataset size is small.
  • Linear Models as Proxies: The analysis of linear models provides surprisingly accurate insights into the behavior of more complex, nonlinear models, suggesting that the core mechanisms of collapse are captured even in simplified settings.
  • Loss Landscape Geometry Matters: The local geometry of the loss landscape, particularly around the origin, is crucial for understanding collapse phenomena.

Key Results

  • The paper derives analytical conditions for dimensional collapse in linear models under various SSL losses (InfoNCE, NT-xent).
  • They show that for vanilla InfoNCE, singular values scale with augmentation strength ($\sigma^4$) and do not vanish, implying no collapse.
  • For weighted InfoNCE, collapse is shown to be dependent on dataset size, with a theoretical threshold accurately predicting the onset of collapse.
  • Normalization is demonstrated to cause collapse at smaller augmentation strengths compared to the unnormalized case.
  • The theory is validated with numerical experiments on synthetic data, showing good agreement between theoretical predictions and observed behavior.

Limitations and Future Work

  • Linear Model Assumption: While the authors argue that linear models capture essential aspects of nonlinear models, a direct extension of the theory to deep nonlinear networks remains an open challenge.
  • Dynamics vs. Landscape: The current work focuses on the landscape (stationary points). The authors acknowledge that dynamics (e.g., learning rate, batch size) can also play a role in collapse, particularly in converging to saddle points, which is a crucial area for future research.
  • Specific Loss Functions: The analysis is primarily focused on contrastive losses. Extending the framework to other SSL paradigms could provide broader insights.
  • Data-Centric Augmentations: The paper highlights the importance of targeted data augmentation. Future work could explore how to design augmentations that effectively prevent collapse and improve representation quality based on domain knowledge.

Summary updated

BibTeX
@inproceedings{ziyin2022rotational,
  author = {Liu Ziyin and Ekdeep Singh Lubana and Masahito Ueda and Hidenori Tanaka},
  title = {{On Rotational Symmetry in the Loss landscape of Self-Supervised Learning}},
  booktitle = {NeurReps @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=J9EyxEpWYVj},
}
Figure