[Paper Review] Understanding Dimensional Collapse in Contrastive Self-supervised Learning
The paper analyzes why dimensional collapse occurs in contrastive self-supervised learning and introduces DirectCLR, a projector-free method that directly optimizes the representation space and improves ImageNet linear probe accuracy.
Self-supervised visual representation learning aims to learn useful representations without relying on human annotations. Joint embedding approach bases on maximizing the agreement between embedding vectors from different views of the same image. Various methods have been proposed to solve the collapsing problem where all embedding vectors collapse to a trivial constant solution. Among these methods, contrastive learning prevents collapse via negative sample pairs. It has been shown that non-contrastive methods suffer from a lesser collapse problem of a different nature: dimensional collapse, whereby the embedding vectors end up spanning a lower-dimensional subspace instead of the entire available embedding space. Here, we show that dimensional collapse also happens in contrastive learning. In this paper, we shed light on the dynamics at play in contrastive learning that leads to dimensional collapse. Inspired by our theory, we propose a novel contrastive learning method, called DirectCLR, which directly optimizes the representation space without relying on an explicit trainable projector. Experiments show that DirectCLR outperforms SimCLR with a trainable linear projector on ImageNet.
Motivation & Objective
- Show that contrastive self-supervised learning can exhibit dimensional collapse, where embeddings span a lower-dimensional subspace.
- Identify two mechanisms driving dimensional collapse: strong augmentation and implicit regularization.
- Propose a projector-free method, DirectCLR, that directly optimizes the representation space.
- Demonstrate that DirectCLR outperforms SimCLR with a linear projector on ImageNet.
Proposed method
- Theoretical analysis of contrastive learning dynamics under InfoNCE loss in linear and two-layer linear networks to characterize weight updates.
- Derivation of gradient flow: dot W = -G with G expressed via data and augmentation covariances.
- Introduction of the matrix X as a difference of PSD matrices capturing augmentation vs. data covariance, indicating when collapse occurs.
- Evidence that strong augmentation can make the embedding covariance low-rank, causing dimensional collapse.
- Analysis of implicit regularization in over-parameterized networks leading to low-rank embedding spaces.
- Proposal of DirectCLR that bypasses the projector by training on a fixed sub-vector of the representation and normalizing it in the InfoNCE loss.
- Ablation studies showing projector properties (diagonal/low-rank) and their impact on linear probe accuracy.
Experimental results
Research questions
- RQ1Why does dimensional collapse occur in contrastive self-supervised learning despite negative samples?
- RQ2What are the mechanisms by which augmentation and model dynamics induce low-rank embedding spaces?
- RQ3Can we design a projector-free contrastive method that maintains or improves downstream performance?
- RQ4How does DirectCLR compare to conventional SimCLR with a trainable projector on ImageNet?
Key findings
- Dimensional collapse occurs in contrastive learning when embeddings occupy a lower-dimensional subspace rather than the full space.
- Strong augmentation can drive the embedding space to be low-rank via the dynamics of the weight matrix.
- Implicit regularization in over-parameterized networks also yields low-rank embedding solutions, contributing to dimensional collapse.
- DirectCLR, a projector-free method that optimizes a sub-vector of the representation with InfoNCE, matches or exceeds SimCLR with a linear projector on ImageNet.
- DirectCLR experiments show linear probe accuracy of 62.7% versus 61.1% for SimCLR with a trainable linear projector on ImageNet (100 epochs, ResNet50 backbone).
- The projector can be effectively modeled as diagonal or low-rank, supporting the idea that direct optimization of the representation space is viable.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.