Skip to main content
QUICK REVIEW

[Paper Review] Towards Good Practices in Self-supervised Representation Learning

Srikar Appalaraju, Yi Zhu|arXiv (Cornell University)|Dec 1, 2020
Domain Adaptation and Few-Shot LearningComputer Science26 references10 citations
TL;DR

This paper identifies and empirically validates key good practices in contrastive self-supervised representation learning, demonstrating that a nonlinear projection head, Gaussian blur augmentation, cosine learning rate scheduling, and momentum encoders significantly improve performance and reduce reliance on large numbers of negative samples. The authors show these practices stabilize learning and enable state-of-the-art results even with minimal negatives, offering actionable insights for both contrastive and non-contrastive SSL methods.

ABSTRACT

Self-supervised representation learning has seen remarkable progress in the last few years. More recently, contrastive instance learning has shown impressive results compared to its supervised learning counterparts. However, even with the ever increased interest in contrastive instance learning, it is still largely unclear why these methods work so well. In this paper, we aim to unravel some of the mysteries behind their success, which are the good practices. Through an extensive empirical analysis, we hope to not only provide insights but also lay out a set of best practices that led to the success of recent work in self-supervised representation learning.

Motivation & Objective

  • To uncover the underlying reasons for the success of recent contrastive instance learning methods, which appear to rely on specific design choices rather than fundamental principles.
  • To investigate why certain components—like the nonlinear projection head—work so effectively in contrastive SSL but not in supervised learning.
  • To evaluate the impact of data augmentation, learning rate scheduling, and negative sampling strategies on representation quality and robustness.
  • To determine whether the number and quality of negative samples are truly critical for performance, or if good practices can reduce this dependency.
  • To provide a set of empirically validated best practices that can be transferred across contrastive and non-contrastive self-supervised learning frameworks.

Proposed method

  • The authors conduct extensive ablation studies on MoCo v2 (MoCov2) using ImageNet and PASCAL VOC datasets to evaluate the impact of key components.
  • They introduce a nonlinear projection head (MLP) after the encoder, analyzing its effect via ablation and feature inversion using DIP (Deep Image Prior).
  • They evaluate the role of Gaussian blur augmentation by removing it and measuring performance degradation on linear probe accuracy.
  • They assess the impact of cosine learning rate scheduling by disabling it and comparing performance across different numbers of negative samples.
  • They perform dynamic hard-negative sampling by sorting the memory queue based on cosine similarity and over-sampling hard negatives using a skew-normal distribution.
  • They conduct ablation studies by removing one good practice at a time while varying the number of negative samples (K = 512 to 65,536) to isolate their effects.

Experimental results

Research questions

  • RQ1Why does adding a nonlinear projection head significantly improve performance in contrastive SSL, despite its ineffectiveness in supervised learning?
  • RQ2Why does aggressive data augmentation, such as Gaussian blur, not degrade performance in contrastive learning, unlike in supervised learning?
  • RQ3To what extent do the number and quality of negative samples affect contrastive learning performance?
  • RQ4Which good practices are most responsible for reducing the need for large numbers of negative samples in contrastive learning?
  • RQ5Can these good practices be generalized to non-contrastive self-supervised learning methods?

Key findings

  • Removing the nonlinear projection head in MoCov2 reduces ImageNet linear probe accuracy from 67.5% to 61.7%, demonstrating its critical role in representation quality.
  • Using a randomly initialized and frozen nonlinear projection head still improves performance (62.9% accuracy), indicating that the nonlinear transformation itself is beneficial beyond learnable parameters.
  • The combination of Gaussian blur augmentation and cosine learning rate scheduling enables stable performance across different numbers of negative samples, from K=512 to K=65,536.
  • Without the nonlinear projection head, performance drops significantly as the number of negatives decreases, showing that this component is essential for robustness to low negative counts.
  • Dynamic hard-negative sampling does not improve performance, indicating that the good practices in MoCov2 already make the model robust to negative sample quality.
  • The momentum encoder with a momentum of 0.999 is crucial; reducing it to 0.5 degrades performance to 59.8% at K=512, showing its importance in maintaining representation stability.

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.