Preservational Learning Improves Self-supervised Medical Image Models by Reconstructing Diverse Contexts

Hong-Yu Zhou, Chixiang Lu, Sibei Yang, Xiaoguang Han, Yizhou Yu

TL;DR

Preservational Contrastive Representation Learning (PCRL) enhances self-supervised medical image models by combining contrastive learning with explicit context reconstruction. By forcing the network to reconstruct diverse, transformation-conditioned image contexts, PCRL retains richer features that significantly boost performance on downstream classification and segmentation tasks, especially when labeled data is scarce.

What Problem Does This Paper Address?

Deep learning in medical imaging is heavily bottlenecked by the high cost and scarcity of expert annotations. Self-supervised learning (SSL), particularly contrastive learning, has emerged as a powerful alternative by training models to recognize similarities between different augmented views of the same image without needing human labels.

However, contrastive learning primarily optimizes for invariance—teaching the model to ignore variations like rotations or color shifts. While this works well for image-level classification, it can inadvertently cause the network to discard fine-grained spatial or contextual details that are crucial for dense downstream tasks like lesion segmentation. While plain image reconstruction (like standard autoencoders) preserves these details, simply adding a standard reconstruction branch to a contrastive model yields minimal performance gains. The authors address this gap by proposing a method to explicitly preserve maximal information via the reconstruction of diverse, dynamically changing contexts.

Methods

The authors introduce PCRL (Preservational Contrastive Representation Learning), which uses a triple-encoder, single-decoder U-Net-like architecture.

Figure 1: Conceptual illustration of proposed method. GO stands for global operations which convert feature maps to feature vectors. The blue feature vector comes from the mo- mentum encoder. vec(T ) represents the indicator vector of T which contains a set of transformation functions. Each component in vec(T ) is 1 or 0 denoting whether the corre- sponding transformation is applied or not. ⊙stands for a channel-wise multiplication operation.

PCRL integrates two novel components to force the network to explicitly preserve more information:

  1. Transformation-conditioned Attention (TransAtt): Instead of standard reconstruction, the model is given a binary indicator vector, $\text{vec}(\mathcal{T})$, representing which transformations (e.g., flips, specific rotation angles) were applied to the input. This vector is embedded into the high-level feature maps via an attentional mechanism, forcing the encoder to retain transformation-specific details to successfully reconstruct the target context.
  2. Cross-model Mixup (CrossMix): To further diversify the reconstruction targets, PCRL mixes the feature maps of the ordinary encoder and a momentum encoder (updated via exponential moving average). The resulting hybrid encoder is then tasked with reconstructing a blended image target.

The total loss is an equal combination of a standard contrastive loss (using a memory queue for negative samples) and the mean squared error (MSE) reconstruction loss across all three encoders.

Datasets

The framework was evaluated across both 2D and 3D medical imaging modalities, as well as standard natural image benchmarks:

  • 2D Medical Tasks: Chest14 (112,120 X-ray images) used for both pretraining and finetuning; CheXpert (224,316 chest radiographs) used for pretraining only.
  • 3D Medical Tasks: LUNA (888 CT scans) used for pretraining and finetuning; BraTS (351 brain MRI scans) and LiTS (131 liver CT scans) used to evaluate cross-modal transferability and 3D segmentation performance.
  • Natural Images: ImageNet-1k (pretraining), Cityscapes (segmentation), and COCO (object detection) to validate the method's generalizability outside medical imaging.

Key Insights and Ideas

  • Invariance vs. Preservation: Contrastive learning is excellent at learning high-level semantic invariance but poor at keeping pixel-level details. Explicitly conditioning the reconstruction on the exact transformations applied forces the network to retain both types of information.
  • Context Matters More Than Content: Reconstructing the original image is often too trivial a task for deep networks and fails to teach robust features. Reconstructing a transformed context (conditioned on an attention vector) acts as a much stronger regularizer.
  • Data Efficiency: The performance gains of PCRL are most pronounced when downstream labeled data is highly constrained (e.g., at a 10% labeling ratio), making it highly practical for clinical settings where expert annotations are rare.

Key Results

  • State-of-the-Art Performance: PCRL significantly outperformed existing medical SSL methods (such as Model Genesis, Semantic Genesis, and 3D-CPC) across 5 distinct classification and segmentation tasks.
  • Substantial Gains in Low-Data Regimes: On the Chest14 dataset with a 9:1 unlabeled-to-labeled ratio, PCRL achieved a fine-tuning accuracy of 76.2%, outperforming standard contrastive learning (71.7%).
  • Superior Detail Handling: In 3D liver segmentation (LiTS) and brain tumor segmentation (BraTS), visual analysis demonstrated that PCRL delineates boundaries accurately and detects isolated tumor regions that other baseline methods miss entirely.
Figure 5: Visual analysis of segmentation results when finetuning on LiTS and BraTS. For each dataset, we provide 2 cases where we report the dice scores using different self-supervised pretraining methodologies. Specifically, in LiTS, the goal is to segment liver. In BraTS, we only display the results of WT. We ignore MG because SG is built on top of MG.

Limitations and Future Work

  • Underlying Mechanisms: The authors note that while information preservation is a clear driver of success, it remains an open question whether it is the only reason for the observed improvements over standard contrastive loss.
  • 3D Computational Constraints: The computational overhead of online random cropping and resizing for large 3D volumes was too high for the authors' hardware setup, forcing them to rely on offline cropping strategies during 3D pretraining. Optimizing the pipeline for fully online 3D augmentations remains a direction for future engineering work.

Summary updated

BibTeX
@misc{zhou2021preservational,
  author = {Hong-Yu Zhou and Chixiang Lu and Sibei Yang and Xiaoguang Han and Yizhou Yu},
  title = {{Preservational Learning Improves Self-supervised Medical Image Models by Reconstructing Diverse Contexts}},
  year = {2021},
  eprint = {2109.04379},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.04379},
}
Figure