Skip to main content
QUICK REVIEW

[Paper Review] Intermediate Layers Matter in Momentum Contrastive Self Supervised Learning

Aakash Kaku, Sahana Upadhya|arXiv (Cornell University)|Oct 27, 2021
AI in cancer detectionComputer Science28 references9 citations
TL;DR

This paper proposes enhancing Momentum Contrastive (MoCo) self-supervised learning by minimizing feature dissimilarity in intermediate network layers using mean squared error (MSE) or Barlow Twins-style invariance loss. The method improves downstream performance—especially under low-label regimes—by learning more reusable and informative features earlier in the network, outperforming standard MoCo on three diverse medical imaging datasets with up to 5% average gain at 1% labeled data.

ABSTRACT

We show that bringing intermediate layers' representations of two augmented versions of an image closer together in self-supervised learning helps to improve the momentum contrastive (MoCo) method. To this end, in addition to the contrastive loss, we minimize the mean squared error between the intermediate layer representations or make their cross-correlation matrix closer to an identity matrix. Both loss objectives either outperform standard MoCo, or achieve similar performances on three diverse medical imaging datasets: NIH-Chest Xrays, Breast Cancer Histopathology, and Diabetic Retinopathy. The gains of the improved MoCo are especially large in a low-labeled data regime (e.g. 1% labeled data) with an average gain of 5% across three datasets. We analyze the models trained using our novel approach via feature similarity analysis and layer-wise probing. Our analysis reveals that models trained via our approach have higher feature reuse compared to a standard MoCo and learn informative features earlier in the network. Finally, by comparing the output probability distribution of models fine-tuned on small versus large labeled data, we conclude that our proposed method of pre-training leads to lower Kolmogorov-Smirnov distance, as compared to a standard MoCo. This provides additional evidence that our proposed method learns more informative features in the pre-training phase which could be leveraged in a low-labeled data regime.

Motivation & Objective

  • To investigate whether improving alignment of intermediate layer representations enhances self-supervised representation learning in medical imaging.
  • To address the challenge of limited labeled data in medical AI by improving pre-training quality for downstream fine-tuning.
  • To evaluate whether better feature quality leads to improved generalization, especially in low-data regimes.
  • To analyze feature reuse and layer-wise informativeness to quantify the quality of self-supervised features beyond linear probing.
  • To compare output probability distributions after fine-tuning to assess how close models are to optimal performance.

Proposed method

  • Introduces two additional loss terms: mean squared error (MSE) between intermediate layer features of augmented image views, and a Barlow Twins-style loss minimizing cross-correlation between features.
  • Extends the MoCo framework by applying these losses at multiple intermediate layers, not just the final layer.
  • Uses a momentum-updated queue of negative keys, as in standard MoCo, but adds intermediate-level contrastive objectives.
  • Employs feature reuse analysis to measure similarity between features before and after fine-tuning, indicating feature quality.
  • Performs layer-wise probing to assess informativeness of features at different depths in the network.
  • Compares Kolmogorov–Smirnov (KS) distance between output probability distributions of models fine-tuned on 1% and 6% labeled data versus 100% data to evaluate generalization.

Experimental results

Research questions

  • RQ1Does aligning intermediate layer representations in MoCo improve downstream classification performance on medical imaging datasets?
  • RQ2How does the proposed method affect feature reusability and informativeness across network layers compared to standard MoCo?
  • RQ3To what extent does the improvement in representation quality translate to better performance in low-labeled data regimes?
  • RQ4How do the output probability distributions of models pre-trained with the proposed method compare to those of the best-performing models after fine-tuning on small labeled data?
  • RQ5Can intermediate layer alignment lead to more robust and generalizable features in diverse medical imaging modalities?

Key findings

  • The proposed method with MSE loss outperformed standard MoCo on all three medical imaging datasets—NIH Chest X-ray, Diabetic Retinopathy, and Breast Cancer Histopathology—especially at low label fractions.
  • At 1% labeled data, the average performance gain across datasets was 5% compared to standard MoCo, indicating significant improvement in low-data regimes.
  • Models trained with intermediate layer alignment showed higher feature reuse, indicating better-quality, more transferable features.
  • Layer-wise probing revealed that features learned earlier in the network were more informative under the proposed method than under standard MoCo.
  • The Kolmogorov–Smirnov distance between output distributions of models fine-tuned on 1% and 6% data and the 100%-labeled best model was lower for the proposed method, indicating closer alignment to optimal performance.
  • The gains were consistent across diverse medical imaging modalities, suggesting the method generalizes beyond specific data types.

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.