Investigating the Benefits of Projection Head for Representation Learning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Xue, Yihao, Gan, Eric, Ni, Jiayi, Joshi, Siddharth, Mirzasoleiman, Baharan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911800499372032
author Xue, Yihao
Gan, Eric
Ni, Jiayi
Joshi, Siddharth
Mirzasoleiman, Baharan
author_facet Xue, Yihao
Gan, Eric
Ni, Jiayi
Joshi, Siddharth
Mirzasoleiman, Baharan
contents An effective technique for obtaining high-quality representations is adding a projection head on top of the encoder during training, then discarding it and using the pre-projection representations. Despite its proven practical effectiveness, the reason behind the success of this technique is poorly understood. The pre-projection representations are not directly optimized by the loss function, raising the question: what makes them better? In this work, we provide a rigorous theoretical answer to this question. We start by examining linear models trained with self-supervised contrastive loss. We reveal that the implicit bias of training algorithms leads to layer-wise progressive feature weighting, where features become increasingly unequal as we go deeper into the layers. Consequently, lower layers tend to have more normalized and less specialized representations. We theoretically characterize scenarios where such representations are more beneficial, highlighting the intricate interplay between data augmentation and input features. Additionally, we demonstrate that introducing non-linearity into the network allows lower layers to learn features that are completely absent in higher layers. Finally, we show how this mechanism improves the robustness in supervised contrastive learning and supervised learning. We empirically validate our results through various experiments on CIFAR-10/100, UrbanCars and shifted versions of ImageNet. We also introduce a potential alternative to projection head, which offers a more interpretable and controllable design.
format Preprint
id arxiv_https___arxiv_org_abs_2403_11391
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Investigating the Benefits of Projection Head for Representation Learning
Xue, Yihao
Gan, Eric
Ni, Jiayi
Joshi, Siddharth
Mirzasoleiman, Baharan
Machine Learning
Computer Vision and Pattern Recognition
An effective technique for obtaining high-quality representations is adding a projection head on top of the encoder during training, then discarding it and using the pre-projection representations. Despite its proven practical effectiveness, the reason behind the success of this technique is poorly understood. The pre-projection representations are not directly optimized by the loss function, raising the question: what makes them better? In this work, we provide a rigorous theoretical answer to this question. We start by examining linear models trained with self-supervised contrastive loss. We reveal that the implicit bias of training algorithms leads to layer-wise progressive feature weighting, where features become increasingly unequal as we go deeper into the layers. Consequently, lower layers tend to have more normalized and less specialized representations. We theoretically characterize scenarios where such representations are more beneficial, highlighting the intricate interplay between data augmentation and input features. Additionally, we demonstrate that introducing non-linearity into the network allows lower layers to learn features that are completely absent in higher layers. Finally, we show how this mechanism improves the robustness in supervised contrastive learning and supervised learning. We empirically validate our results through various experiments on CIFAR-10/100, UrbanCars and shifted versions of ImageNet. We also introduce a potential alternative to projection head, which offers a more interpretable and controllable design.
title Investigating the Benefits of Projection Head for Representation Learning
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2403.11391