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

Abstract

Self-supervised learning via Masked Image Modeling (MIM) has revolutionized vision tasks but remains challenging for hybrid CNN-Transformer architectures in 3D medical imaging. We present HySparK (Hybrid Sparse masKing), a framework that bridges these architectures using a bottom-up masking strategy, sparse convolutions, and a hierarchical decoder. Pre-trained on a massive dataset of 6,814 CT scans, HySparK achieves state-of-the-art performance on abdominal organ segmentation, demonstrating significant gains in data efficiency and small-organ detection.

Introduction

In medical imaging, the scarcity of high-quality labeled data is a primary bottleneck for deep learning. Self-supervised learning (SSL), particularly Masked Image Modeling (MIM), offers a solution by learning robust representations from unlabeled data. While Vision Transformers (ViTs) have successfully adopted MIM (e.g., Masked Autoencoders), applying these techniques to Convolutional Neural Networks (CNNs) is non-trivial. Standard convolutions tend to "smear" information from unmasked to masked regions, effectively erasing the mask pattern and creating a distribution shift during fine-tuning. HySparK addresses these challenges for hybrid models that combine the local inductive biases of CNNs with the global context of Transformers.

Methodology

HySparK introduces three core innovations to enable effective MIM for hybrid 3D encoders:

1. Bottom-up 3D Hybrid Masking

To maintain consistency across the hybrid stages, HySparK initializes masks at the interface between the CNN and Transformer modules. These masks are then projected "bottom-up" to the earlier CNN layers. This ensures that both components of the encoder operate on the same spatial "holes," preventing the Transformer from receiving features corrupted by standard convolution operations in the preceding CNN stage.

2. Sparse 3D Convolutions

To solve the "mask vanishing" problem, the CNN stage utilizes sparse convolutions. By processing only the unmasked voxels, the model is forced to learn meaningful representations from partial data without information leakage from the masked regions.

3. Hierarchical Decoder with Skip-Connections

Unlike standard MIM decoders that often focus on global reconstruction, HySparK employs a U-shaped hierarchical decoder. It incorporates skip-connections to fuse multi-scale features from the encoder. This architecture is specifically designed to align the pre-training task with downstream segmentation, which requires precise localization across various scales.

The HySparK architecture overview, highlighting the bottom-up masking strategy and the hybrid sparse 3D encoder.

Experimental Setup

The model was pre-trained on a curated dataset of 6,814 3D CT scans aggregated from 13 public sources, including AMOS22, TotalSegmentator, and FLARE'22. Pre-training was completed in 4 days on a single A800 GPU. Evaluation was conducted on the BTCV abdominal segmentation dataset and six tasks from the Medical Segmentation Decathlon (MSD), covering organs such as the liver, lung, pancreas, and spleen.

Results and Discussion

HySparK consistently outperforms existing state-of-the-art SSL methods, including MAE, SimMIM, and SparK, across multiple benchmarks.

Quantitative Performance

On the BTCV benchmark, HySparK achieved an average Dice score of 80.67%, a significant improvement over baselines. As shown in the MSD results, the model excels across various organs, particularly in challenging cases like the pancreas and hepatic vessels.

Quantitative comparison of HySparK against state-of-the-art self-supervised methods on the MSD dataset.

Data Efficiency and Small Organ Segmentation

A key strength of HySparK is its performance in low-data regimes. When fine-tuned with only 20% of available labels, it outperformed baselines by 2.5%, demonstrating superior representational power. Furthermore, the hierarchical multi-scale approach led to significant improvements in segmenting small, complex structures like the adrenal glands and pancreas, which are often difficult for standard models to resolve.

Conclusion

HySparK provides a robust framework for pre-training hybrid CNN-Transformer models in 3D medical imaging. By aligning masking strategies and leveraging sparse convolutions, it overcomes the inherent limitations of applying MIM to convolutional architectures. While currently focused on CT data, the framework's general principles suggest potential applicability to other 3D modalities like MRI.

Reference: Tang, F., et al. "HySparK: Hybrid Sparse Masking for Large Scale Medical Image Pre-Training." arXiv:2408.05815v1, 2024.

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