Abstract
Self-supervised learning (SSL) models aim to learn robust representations without human labels, yet they frequently fall victim to dimensional collapse. While previous research has focused on global collapse, this paper introduces the concept of "local collapse"—where the representation space around individual data points is locally flat. We propose LDReg (Local Dimensionality Regularization), a novel technique that maximizes the Local Intrinsic Dimensionality (LID) of the representation space. By utilizing the Fisher-Rao metric and geometric mean aggregation, LDReg provides a theoretically grounded approach to improving feature quality. Our experiments demonstrate that LDReg consistently improves performance across contrastive, non-contrastive, and generative SSL methods on benchmarks like ImageNet-1K and COCO.
Introduction
In Self-Supervised Learning (SSL), models learn by identifying relationships within the data itself, often through contrastive tasks or masked reconstruction. A significant challenge in this paradigm is dimensional collapse, where the model projects high-dimensional input data into a narrow, low-dimensional subspace. This loss of variance makes the resulting features less useful for complex downstream tasks.
While global dimensional collapse—where the entire dataset occupies a small subspace—is a known issue, this work identifies a more subtle problem: local collapse. Even if a model spans many dimensions across the whole dataset, the neighborhood around any single point may still be extremely flat. This "underfilling" of the local feature space limits the model's ability to capture fine-grained nuances. LDReg is designed to address this by ensuring the representation space is locally high-dimensional.
Methodology
LDReg introduces a regularization term that maximizes the Local Intrinsic Dimensionality (LID) of the learned representations. The method consists of several key components:
LID Estimation
The authors employ the "Method of Moments" to estimate the LID of a sample. This estimation is based on the distances between a sample and its $k$-nearest neighbors within a training minibatch. This approach is computationally efficient, allowing it to be integrated into standard training loops without significant overhead.
Fisher-Rao (FR) Metric
To optimize the estimated LIDs, the authors derive an asymptotic version of the Fisher-Rao metric. Rather than using simple linear subtraction, the FR metric provides a theoretically grounded way to measure the distance between the local distance distribution of a sample and a degenerate, "collapsed" 1-dimensional uniform distribution. Maximizing this distance pushes the model toward higher local dimensionality.
Logarithmic Aggregation
A core theoretical contribution of the paper is the proof that LID values should be compared on a logarithmic scale. Consequently, the authors propose aggregating these values using the geometric mean across the minibatch, rather than the standard arithmetic mean. This choice is rooted in the statistical manifold structure of local distance distributions.
Experimental Setup
The effectiveness of LDReg was evaluated using ImageNet-1K for pretraining across three major SSL paradigms:
- Contrastive: SimCLR
- Non-contrastive: BYOL
- Generative: MAE
Performance was measured through linear evaluation and transfer learning on datasets including Food-101, CIFAR-10/100, Birdsnap, Stanford Cars, and the Describable Textures Dataset (DTD). Additionally, the models were tested on downstream object detection and instance segmentation tasks using the COCO dataset.
Key Insights
Local vs. Global Dimensionality
The study reveals that global metrics, such as effective rank, can be deceptive. For instance, the BYOL model may exhibit high global dimensionality while still suffering from significant local collapse. LDReg effectively mitigates this hidden collapse, leading to better feature representations.
The Role of Data Augmentation
There is a direct correlation between the strength of data augmentation (e.g., color jittering) and the resulting LID. This suggests that the empirical success of heavy augmentation in SSL is partially due to its ability to naturally force the model toward higher-dimensional local features.
Architecture Agnostic
LDReg acts as a "plug-and-play" module. It does not require specific architectural changes and works consistently across different SSL frameworks, providing performance gains with negligible impact on training time.
Results
LDReg yielded consistent improvements across all tested baselines:
- ImageNet Accuracy: Adding LDReg to BYOL increased linear probing accuracy from 67.6% to 68.5%. SimCLR saw an increase from 64.3% to 64.8%.
- Transfer Learning: On the Birdsnap dataset, SimCLR with LDReg improved accuracy from 32.0% to 33.4%.
- Object Detection: On the COCO benchmark, LDReg improved both bounding box and mask Average Precision (AP). These gains were particularly pronounced for SimCLR models trained for 1000 epochs.
Conclusion and Future Work
LDReg addresses the critical but often overlooked issue of local dimensional collapse in SSL. By maximizing local intrinsic dimensionality through a theoretically sound framework, it enhances the quality of learned features across various models and tasks.
However, some challenges remain. The current LID estimation relies on neighbors within a minibatch, which can be a noisy approximation of the global neighborhood. Furthermore, while higher LID is generally beneficial, the "optimal" dimensionality for any given dataset remains an open question. Future research may focus on more robust estimators that scale to even higher dimensions and exploring the theoretical upper bounds of local dimensionality in representation learning.
Summary updated