A Statistical Theory of Contrastive Learning via Approximate Sufficient Statistics
Licong Lin, Song Mei
TL;DR
This work develops a theoretical framework for data augmentation-based contrastive learning by extending the notion of approximate sufficient statistics to general ${\mathrm{f}}$-divergences, connecting the minimization of contrastive losses (e.g., InfoNCE) to encoders that are near-sufficient for downstream tasks. It provides risk bounds for downstream regression and classification that decompose into a sufficiency term and augmentation-induced error, and extends the analysis from KL to broader f-divergences, including ${\chi^2}$-sufficiency. Concrete examples in linear regression and topic classification illustrate broad applicability and guide practical adaptation of learned encoders. The results imply that encoders trained via contrastive losses can be effectively reused with limited labeled data, provided the encoders maintain low sufficiency loss and the data augmentations preserve downstream-relevant information. The framework also opens avenues for analyzing alternative contrastive losses and extending to other self-supervised paradigms beyond SimCLR.
Abstract
Contrastive learning -- a modern approach to extract useful representations from unlabeled data by training models to distinguish similar samples from dissimilar ones -- has driven significant progress in foundation models. In this work, we develop a new theoretical framework for analyzing data augmentation-based contrastive learning, with a focus on SimCLR as a representative example. Our approach is based on the concept of \emph{approximate sufficient statistics}, which we extend beyond its original definition in \cite{oko2025statistical} for contrastive language-image pretraining (CLIP) using KL-divergence. We generalize it to equivalent forms and general f-divergences, and show that minimizing SimCLR and other contrastive losses yields encoders that are approximately sufficient. Furthermore, we demonstrate that these near-sufficient encoders can be effectively adapted to downstream regression and classification tasks, with performance depending on their sufficiency and the error induced by data augmentation in contrastive learning. Concrete examples in linear regression and topic classification are provided to illustrate the broad applicability of our results.
