HySparK: Hybrid Sparse Masking for Large Scale Medical Image Pre-Training

Fenghe Tang, Ronghao Xu, Qingsong Yao, Xueming Fu, Quan Quan, Heqin Zhu, Zaiyi Liu, S. Kevin Zhou

TL;DR

HySparK is a novel generative self-supervised pre-training strategy designed specifically for hybrid CNN-Transformer architectures in 3D medical imaging. By employing a "bottom-up" masking consistency strategy and sparse convolutions, it enables end-to-end pre-training on massive unlabeled datasets, significantly outperforming existing methods on downstream organ segmentation tasks.

What Problem Does This Paper Address?

In medical image analysis, labeled data is notoriously scarce and expensive to produce. Self-supervised learning (SSL)—specifically Masked Image Modeling (MIM)—has emerged as a powerful way to leverage vast amounts of unlabeled data. However, most MIM methods are tailored for single architectures: either Vision Transformers (ViTs) or Convolutional Neural Networks (CNNs).

Medical imaging tasks often require both the local inductive bias of CNNs (for fine textures) and the global context of Transformers (for spatial relationships). While hybrid architectures exist, pre-training them end-to-end is challenging due to:

  1. Masking Inconsistency: CNNs use sliding windows that can "smear" or erode masked regions, leading to a vanishing mask pattern.
  2. Multi-scale Representation: Medical tasks (like segmentation) rely heavily on multi-scale features and skip-connections (U-Net style), which standard MIM decoders often neglect.

Methods

The authors introduce HySparK (Hybrid Sparse masKing) to bridge these gaps. The framework consists of two main stages:

  • Hybrid Encoder with Bottom-Up Masking: The model uses a CNN (MedNeXt) as the top encoder and a ViT as the bottom encoder. To ensure consistency, masking is initialized at the junction between the two. These masks are then mapped "bottom-up" to earlier CNN layers. Crucially, the CNN layers use 3D sparse convolutions, which only calculate values for unmasked positions, preventing the "mask vanishing" issue.
  • Hierarchical Decoder with Skip-Connections: Unlike standard MIM decoders that operate at a single scale, HySparK employs a hierarchical decoder. It uses skip-connections to fuse multi-scale features from the encoder, mirroring the structure of successful downstream segmentation models.
  • Reconstruction Task: The model is trained to reconstruct the original normalized pixels of the masked regions using a Mean Square Error (MSE) loss.
Fig. 1. Hybrid Sparse masKing (HySparK). The hybrid architecture comprises a CNN at the top (yellow) and a Transformer at the bottom (blue). We initiate the masking strategy at the junction between the CNN and Transformer and execute bottom-up mask modeling. The initialization unmasking patch is white, the bottom-up mapping unmasking patch is green and the masking position is black.

Datasets

The authors curated a massive pre-training dataset by aggregating 13 public CT datasets, totaling 6,814 3D CT scans.

For evaluation (downstream fine-tuning), they used:

  • BTCV (Multi-Atlas Labeling Beyond the Cranial Vault): 30 subjects with 13 abdominal organs annotated.
  • MSD (Medical Segmentation Decathlon): Six CT-based tasks including Liver, Lung, Pancreas, Hepatic Vessel, Spleen, and Colon.
Table 1. Overview of Pre-train Dataset.

Key Insights and Ideas

  • Consistency is Crucial: The ablation studies show that without the "bottom-up" masking strategy to maintain consistency between the CNN and Transformer stages, performance drops significantly, nearly reaching the level of a model with no pre-training at all.
  • Skip-Connections in Pre-training: Integrating skip-connections into the pre-training decoder (not just the downstream task) helps align the patterns the model learns with the requirements of downstream U-shape networks.
  • Hybrid Superiority: The hybrid architecture consistently outperforms single-architecture counterparts (like pure ViT or pure CNN) because it effectively captures both local details and global dependencies, which is vital for identifying complex anatomical structures.

Key Results

HySparK achieved state-of-the-art results across multiple benchmarks:

  • BTCV Dataset: Achieved a top average Dice score of 80.67%, a 1.17% improvement over the next best baseline.
  • Small Organ Performance: The model showed significant gains in segmenting smaller, difficult organs like the pancreas and adrenal glands.
  • Data Efficiency: In a "low-data" regime (using only 20% of BTCV training data), HySparK outperformed other methods by 2.5%, demonstrating superior transferability.
  • MSD Datasets: HySparK led the pack with an average Dice of 70.29% across six tasks, showing particular strength in challenging areas like hepatic vessel and pancreas lesion segmentation.
Visual reconstruction results showing the model's ability to recover organ shapes and bone details from sparse unmasked patches.

Limitations and Future Work

The paper does not explicitly detail limitations, but a few are inherent to the approach:

  • Modality Specificity: The current study focuses exclusively on CT scans. Extending this to MRI or PET would require further validation.
  • Computational Cost: Pre-training on nearly 7,000 3D volumes is computationally intensive (the authors noted 4 days on an Nvidia A800 for 100 epochs).
  • Future Directions: The authors suggest that their findings could inspire more work into maximizing the potential of hybrid architectures for other medical imaging modalities and tasks beyond segmentation.

Summary updated

BibTeX
@inproceedings{tang2024hyspark,
  author = {Fenghe Tang and Ronghao Xu and Qingsong Yao and Xueming Fu and Quan Quan and Heqin Zhu and Zaiyi Liu and S. Kevin Zhou},
  title = {{HySparK: Hybrid Sparse Masking for Large Scale Medical Image Pre-Training}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2024},
  doi = {10.1007/978-3-031-72120-5\_31},
}
Figure