Understanding Self-supervised Contrastive Learning through Supervised Objectives
Byeongchan Lee
TL;DR
This work reframes self-supervised representation learning as an approximation to supervised objectives by modeling class prototypes and their targets. It derives an InfoNCE-like self-supervised loss from a prototype-based supervised formulation, introduces the concept of prototype representation bias, and proposes a balanced contrastive loss that jointly tunes attracting and repelling forces via parameters $( u,eta)$ and $(oldsymbol{ ho})$. The theory connects standard SSL components (e.g., SimCLR, Siamese architectures, cosine normalization) to principled objectives, and provides empirical evidence that bias reduction and proper balancing improve downstream accuracy. The results offer a principled lens for understanding and improving SSL design, with practical implications for data augmentation, class balance, and loss formulation.
Abstract
Self-supervised representation learning has achieved impressive empirical success, yet its theoretical understanding remains limited. In this work, we provide a theoretical perspective by formulating self-supervised representation learning as an approximation to supervised representation learning objectives. Based on this formulation, we derive a loss function closely related to popular contrastive losses such as InfoNCE, offering insight into their underlying principles. Our derivation naturally introduces the concepts of prototype representation bias and a balanced contrastive loss, which help explain and improve the behavior of self-supervised learning algorithms. We further show how components of our theoretical framework correspond to established practices in contrastive learning. Finally, we empirically validate the effect of balancing positive and negative pair interactions. All theoretical proofs are provided in the appendix, and our code is included in the supplementary material.
