Skip to main content
QUICK REVIEW

[Paper Review] Understanding and Improving the Role of Projection Head in Self-Supervised Learning

Kartik Gupta, Thalaiyasingam Ajanthan|arXiv (Cornell University)|Dec 22, 2022
Domain Adaptation and Few-Shot LearningComputer Science12 citations
TL;DR

This paper investigates why a learnable projection head is essential in contrastive self-supervised learning (SSL) despite being discarded after training. It proposes reformulating SSL as a bilevel optimization problem where the projection head is treated as part of the loss function rather than part of the network, leading to improved generalization on CIFAR-10, CIFAR-100, and TinyImageNet compared to standard SimCLR with a trainable projection head.

ABSTRACT

Self-supervised learning (SSL) aims to produce useful feature representations without access to any human-labeled data annotations. Due to the success of recent SSL methods based on contrastive learning, such as SimCLR, this problem has gained popularity. Most current contrastive learning approaches append a parametrized projection head to the end of some backbone network to optimize the InfoNCE objective and then discard the learned projection head after training. This raises a fundamental question: Why is a learnable projection head required if we are to discard it after training? In this work, we first perform a systematic study on the behavior of SSL training focusing on the role of the projection head layers. By formulating the projection head as a parametric component for the InfoNCE objective rather than a part of the network, we present an alternative optimization scheme for training contrastive learning based SSL frameworks. Our experimental study on multiple image classification datasets demonstrates the effectiveness of the proposed approach over alternatives in the SSL literature.

Motivation & Objective

  • To understand why a trainable projection head is necessary in contrastive SSL despite being discarded after training.
  • To investigate the implicit role of the projection head in subspace selection for contrastive loss optimization.
  • To address the gap in understanding the functional contribution of the projection head beyond being a trainable head.
  • To propose a new optimization scheme that treats the projection head as part of the loss function to improve training stability and generalization.
  • To empirically validate that learning the projection head enhances performance compared to fixed or discarded heads.

Proposed method

  • Formulate SSL as a bilevel optimization problem: the inner loop optimizes the projection head to select an optimal subspace for contrastive loss, while the outer loop updates the backbone features.
  • Reframe the projection head as a learnable component of the loss function rather than a fixed network head, enabling dynamic subspace selection.
  • Use alternating optimization: update the projection head via gradient descent on the contrastive loss, then update the backbone using the updated projection head.
  • Apply the method to SimCLR and SimSiam on CIFAR-10, STL-10, TinyImageNet, and ImageNet to analyze behavior and performance.
  • Compare the proposed method with standard SimCLR and DirectCLR, evaluating generalization on linear evaluation protocols.
  • Analyze the rank and null space of the projection head to understand its implicit role in feature selection.

Experimental results

Research questions

  • RQ1Why is a trainable projection head required in SSL if it is discarded after training?
  • RQ2What functional role does the projection head play during training, beyond being a final projection layer?
  • RQ3Can the behavior of the projection head—specifically, its ability to implicitly select a feature subspace—be formalized and enforced as part of the loss function?
  • RQ4Does treating the projection head as part of the loss function lead to better generalization than standard training with a trainable head?
  • RQ5How does the performance of the proposed method compare to fixed projection heads or standard SimCLR across multiple datasets?

Key findings

  • The projection head acts as a low-rank mapping that implicitly selects a subspace of features to apply the contrastive loss, improving training stability and generalization.
  • The null space of the projection head is useful for generalization, indicating that the head learns to suppress irrelevant feature components.
  • A trainable projection head cannot be replaced by a fixed projection head in standard SSL training, as it leads to degraded performance.
  • The proposed bilevel optimization scheme outperforms standard SimCLR on CIFAR-10, CIFAR-100, and TinyImageNet, demonstrating improved generalization.
  • While a fixed projection head performs better in early training stages, a learnable projection head eventually surpasses it, validating the need for end-to-end optimization.
  • The method achieves state-of-the-art performance on linear evaluation benchmarks, confirming that the projection head's role is not incidental but critical to the learning process.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.