Introduction
In the realm of computer vision, self-supervised learning (SSL)—specifically Contrastive Learning (CL) methods like SimCLR—has become a powerhouse, often producing representations that rival models trained with extensive human-labeled data. Recent theoretical work suggests this success stems from the CL loss function acting as a mathematical "close cousin" to a supervised variant known as Negatives-Only Supervised Contrastive Learning (NSCL).
However, a major gap has remained: just because two models share similar objectives (loss functions) does not guarantee they take the same optimization path. In deep learning, minute differences in gradients or noise can cause training trajectories to diverge wildly. This paper investigates a fundamental question: Do self-supervised and supervised models actually build the same internal representations throughout the entire training process, or do they merely happen to end up in similar places?
The authors prove that CL and NSCL share nearly identical "representation trajectories." Even though the raw weights of these models drift apart exponentially during training, their internal feature geometries remain tightly aligned, especially as the number of classes and the softmax temperature increase.
Methodology
To address this, the researchers studied models trained under shared randomness—meaning the CL and NSCL models start with identical initialization and process the exact same data augmentations and mini-batches.
Crucially, the analysis shifts focus away from "Weight Space" (the raw parameters in the neural network layers) and into "Representation Space" (how the model perceives the similarity between different images). The methodology involved:
- Theoretical Bounds: Deriving high-probability lower bounds for alignment metrics like Centered Kernel Alignment (CKA) and Representational Similarity Analysis (RSA).
- Similarity-Descent Framework: Introducing a theoretical framework to track how similarity matrices evolve, proving that these matrices stay coupled even when weights diverge.
- Comparative Baselines: Comparing CL against several supervised objectives, including standard Cross-Entropy (CE) and Supervised Contrastive Learning (SCL), to determine which objective tracks the self-supervised path most faithfully.
These findings were validated across a wide range of standard computer vision benchmarks, including CIFAR-10, CIFAR-100, Mini-ImageNet, Tiny-ImageNet, ImageNet-1K, and SVHN (used specifically to test if class imbalance breaks the alignment).
Key Insights and Results
The Weight-Representation Paradox
The most striking insight of the paper is the "Weight-Representation Paradox." The authors demonstrate that while the actual weights of the models diverge exponentially (making them appear entirely different in parameter space), the geometry of their learned features remains remarkably similar. This suggests that weight-distance is a fundamentally poor metric for understanding model alignment in deep learning.
As shown above, the angle between models in weight space grows large, while the angle in representation space remains tight. Simultaneously, similarity metrics like RSA and CKA stay high even as the weight gap increases over training epochs.
NSCL as the "Principled Bridge"
Standard Supervised Contrastive Learning (SCL) often forces classes into extremely tight clusters, a phenomenon known as "neural collapse." CL avoids this because it lacks label information. However, NSCL acts as a perfect middle ground: it uses labels only to avoid pushing apart images of the same class, effectively mimicking the "instance-level" focus of SSL. On Tiny-ImageNet, the CKA alignment between CL and NSCL reached an impressive 0.87, whereas the alignment between CL and standard SCL was a mere 0.043.
The Stabilizing Power of Scale and Temperature
The theory predicts—and experiments confirm—that alignment improves as the number of classes and the batch size increase. Essentially, the more complex the task, the more the self-supervised signal is forced to mimic the supervised one. Furthermore, higher softmax temperatures act as a stabilizer, smoothing out the optimization landscape and keeping the SSL and supervised trajectories in sync.
Model Merging and Robustness
In a compelling experiment, the authors showed that one can linearly interpolate (average) the features of a CL model and an NSCL model to create a "merged" representation that outperforms both individual models, proving their geometric compatibility. Additionally, even on the highly imbalanced SVHN dataset, the alignment remained strong, suggesting that the "supervised signal" inside CL is robust to real-world data distributions.
Limitations and Future Work
While the theoretical framework is robust, the mathematical bounds are "worst-case" and conservative, as is common in deep learning theory. They correctly identify which factors (like temperature and class count) drive alignment, but they are not yet tight enough to provide exact numerical predictions for massive models like large-scale Vision Transformers (ViTs).
The current work focuses exclusively on contrastive SSL. Future research should investigate whether these alignment properties hold for non-contrastive SSL methods (such as BYOL, Barlow Twins, or VicReg). Finally, moving from worst-case bounds to data-dependent constants could yield a much more precise understanding of why SSL excels on specific modalities like natural images.
Summary updated