Understanding Dimensional Collapse in Contrastive Self-supervised Learning
Li Jing, Pascal Vincent, Yann LeCun, Yuandong Tian
TL;DR
The paper reveals that dimensional collapse—embedding vectors spanning only a low-dimensional subspace—persists in contrastive self-supervised learning and identifies two driving mechanisms: strong augmentation and implicit regularization in deep networks. It provides a theoretical framework describing gradient-flow dynamics and weight alignment that lead to low-rank representations. Motivated by these insights, it introduces DirectCLR, a projector-free contrastive method that operates on a fixed subvector of the representation to directly optimize the embedding space. On ImageNet, DirectCLR outperforms SimCLR with a trainable linear projector, demonstrating the practicality of bypassing the explicit projector. These results offer a new perspective on SSL dynamics and suggest projector design as a crucial lever for controlling representation geometry.
Abstract
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.
