NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MoCo-Transfer: Investigating out-of-distribution contrastive learning for limited-data domains

Yuwen Chen, Helen Zhou, Zachary C. LiptonarXiv 2023 · DOI

Abstract

This study investigates whether self-supervised contrastive pretraining on out-of-distribution (OOD) medical datasets can enhance performance in data-scarce domains. Using the Momentum Contrast (MoCo) framework, we demonstrate that pretraining on unlabeled chest X-rays significantly improves classification performance on spine X-ray tasks, outperforming standard ImageNet transfer learning and rivaling in-domain pretraining.

Introduction

Medical AI faces a persistent "data silo" problem. While massive datasets exist for common areas like chest radiographs, specialized domains (e.g., specific spinal pathologies) often suffer from a lack of labeled data. The standard industry approach is to initialize models with weights pretrained on ImageNet. However, natural images are statistically distinct from medical X-rays. This paper investigates a more targeted approach: leveraging vast amounts of unlabeled data from a related medical domain to build better representations for a data-starved target domain.

Methods

The authors employ the Momentum Contrast (MoCo) framework for self-supervised learning. The pipeline follows three main stages: initialization with supervised ImageNet weights for a DenseNet-121 backbone, MoCo pretraining on either in-domain (Spine) or OOD medical data (Chest), and finally, downstream finetuning.

The MoCo-Transfer pipeline: from ImageNet initialization through self-supervised pretraining on unlabeled medical data to final evaluation on target tasks.

Finetuning is evaluated using two strategies: Linear Finetuning, where the backbone is frozen, and End-to-End Finetuning, where all weights are updated. To quantify dataset similarity, the researchers use Singular Vector Canonical Correlation Analysis (SVCCA) to analyze neural activations across different network layers.

Datasets

The study utilizes three primary datasets:

  • VinDr-SpineXR: 10,468 spine X-ray images (target domain).
  • MIMIC-CXR: 377,110 chest X-rays (related OOD domain).
  • ImageNet: 1.2 million natural images (initialization source).

Results

The experimental results demonstrate that relatedness often trumps raw volume. Even though ImageNet is significantly larger, pretraining on a related medical domain yielded superior features for the target task.

Test AUROC performance across different labeling percentages for VinDr-SpineXR and MIMIC-CXR tasks, comparing various MoCo pretraining strategies.

Key findings include:

  • Performance Boost: On the VinDr-SpineXR task with only 1% of labels (58 images), MoCo pretraining on the OOD Chest dataset achieved a 0.678 AUROC, compared to 0.623 for the ImageNet-only baseline.
  • Competitive with In-Domain: Pretraining on the large OOD Chest dataset performed nearly as well as pretraining on the smaller in-domain Spine dataset, suggesting that dataset size in a related domain can compensate for a lack of exact domain match.
  • Linear vs. End-to-End: In very low-data regimes (e.g., 1% labels), linear finetuning often outperformed end-to-end training. For the MIMIC-CXR task with 1% labels, linear finetuning reached 0.786 AUROC, while end-to-end finetuning only reached 0.771 AUROC.

Conclusion

This research highlights that OOD medical data can serve as a highly effective proxy for pretraining when target labels are scarce. The structural similarities between different X-ray modalities provide a stronger foundation for feature learning than natural images. Future work should explore if these medical-to-medical transfer benefits extend to other modalities such as CT, MRI, or ultrasound.

Summary updated

BibTeX
@misc{chen2023moco,
  author = {Yuwen Chen and Helen Zhou and Zachary C. Lipton},
  title = {{MoCo-Transfer: Investigating out-of-distribution contrastive learning for limited-data domains}},
  year = {2023},
  eprint = {2311.09401},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.09401},
}
Figure