Projection Head is Secretly an Information Bottleneck
Zhuo Ouyang, Kaiwen Hu, Qi Zhang, Yifei Wang, Yisen Wang
TL;DR
This work analyzes the projection head in contrastive learning from an information-theoretic perspective, showing that an effective projector should act as an information bottleneck between encoder features $Z_1$ and the self-supervised target $R$ to maximize downstream utility $I(Y;Z_1)$ while minimizing $I(Z_1;Z_2)$. It derives lower and upper bounds on $I(Y;Z_1)$ in terms of $I(Z_1;R)$, $I(Z_1;Z_2)$, and $I(R;Y)$, providing a principled design rule: the projector should filter information irrelevant to the contrastive objective. Guided by this principle, the paper introduces training and structural regularizations, including a matrix MI surrogate bottleneck term, discretized projection, and sparse autoencoder approaches, and validates them across CIFAR-10, CIFAR-100, and ImageNet-100 with SimCLR and Barlow Twins, achieving consistent downstream improvements. The results bridge theory and practice in projector design and offer actionable techniques for principled enhancements in contrastive representation learning.
Abstract
Recently, contrastive learning has risen to be a promising paradigm for extracting meaningful data representations. Among various special designs, adding a projection head on top of the encoder during training and removing it for downstream tasks has proven to significantly enhance the performance of contrastive learning. However, despite its empirical success, the underlying mechanism of the projection head remains under-explored. In this paper, we develop an in-depth theoretical understanding of the projection head from the information-theoretic perspective. By establishing the theoretical guarantees on the downstream performance of the features before the projector, we reveal that an effective projector should act as an information bottleneck, filtering out the information irrelevant to the contrastive objective. Based on theoretical insights, we introduce modifications to projectors with training and structural regularizations. Empirically, our methods exhibit consistent improvement in the downstream performance across various real-world datasets, including CIFAR-10, CIFAR-100, and ImageNet-100. We believe our theoretical understanding on the role of the projection head will inspire more principled and advanced designs in this field. Code is available at https://github.com/PKU-ML/Projector_Theory.
