A Robust Volumetric Transformer for Accurate 3D Tumor Segmentation

Himashi Peiris, Munawar Hayat, Zhaolin Chen, Gary F. Egan, Mehrtash Harandi

TL;DR

This paper introduces VT-UNet, a novel volumetric transformer architecture for 3D medical image segmentation that processes entire volumes at once, overcoming the information loss of slice-based methods. It achieves state-of-the-art results on brain tumor segmentation while being computationally efficient and robust to data artifacts.

What Problem Does This Paper Address?

Accurate 3D segmentation of medical images, such as tumors in MRI scans, is crucial for diagnosis and treatment planning. Traditional methods often process 3D volumes by breaking them down into 2D slices. This approach, however, leads to the loss of critical volumetric information and inter-slice dependencies, potentially hindering segmentation accuracy. While transformer-based models have shown promise in 2D computer vision due to their ability to capture long-range interactions, adapting them to the complexity of 3D volumetric data while maintaining computational efficiency and preserving spatial information remains a significant challenge.

Methods

The core contribution is the VT-UNet, a purely transformer-based architecture designed for volumetric segmentation. Key methodological innovations include:

  • Volumetric Transformer Encoder: This encoder utilizes self-attention mechanisms within 3D windows (both regular and shifted) to simultaneously capture local and global spatial cues across the entire volume. This approach is inspired by Swin Transformer but adapted for 3D data.
  • Volumetric Transformer Decoder: The decoder employs a parallel self-attention and cross-attention formulation. This allows it to capture fine details for boundary refinement by bridging queries from the decoder with keys and values from the encoder, preserving global context.
  • 3D Patch Partitioning and Merging: To handle the large input size of 3D volumes and manage computational complexity, the input volume is divided into 3D patches (tokens). Patch merging layers in the encoder progressively reduce the number of tokens, decreasing computational load. Conversely, patch expanding layers in the decoder reconstruct the spatial resolution.
  • Fourier Feature Positional Encoding (FPE): To inject spatial information and break symmetry, a 3D FPE is incorporated, providing a unique encoding for each token based on its position within the volume.
  • Fusion Module: Tokens from the cross-attention and self-attention modules in the decoder are combined using a convex combination.

Datasets

The primary dataset used for evaluation is the Medical Segmentation Decathlon (MSD) brain tumor segmentation (BraTS) Task. The paper mentions using 484 MRI scans from this dataset for training, validation, and testing.

Key Insights and Ideas

  • Processing entire volumes is key: The paper strongly advocates for processing 3D volumes holistically rather than as 2D slices, demonstrating that this preserves crucial inter-slice dependencies and leads to better segmentation.
  • Transformer's potential for medical imaging: VT-UNet showcases the power of transformers beyond natural image processing, proving their efficacy in complex medical segmentation tasks.
  • Balancing local and global context: The encoder-decoder design with specialized attention mechanisms effectively balances the need to capture fine local details and broad global context, which is essential for accurate segmentation.
  • Computational efficiency through windowing: The use of windowed self-attention, inspired by Swin Transformer, significantly reduces computational complexity, making volumetric transformers more feasible.
  • Robustness to artifacts: The transformer's inherent flexibility and dynamic receptive field contribute to its robustness against common data corruptions like motion, ghosting, and spikes, a critical factor for real-world medical applications.

Key Results

  • State-of-the-art performance: VT-UNet achieves the best overall performance in terms of Dice Similarity Coefficient (DSC) and Hausdorff Distance (HD) on the MSD BraTS dataset, outperforming existing transformer-based and CNN-based methods.
  • Computational efficiency: The "tiny" VT-UNet model uses only 6.7% of the FLOPs compared to a fully volumetric CNN counterpart while achieving comparable or better performance.
  • Robustness: The model demonstrates improved robustness against synthetically introduced artifacts (motion, ghosting, spike) compared to the nnFormer baseline, as shown in Table 2.
  • Qualitative results: Visualizations (Table 4) show accurate segmentation of tumor structures and delineation of boundaries.

Limitations and Future Work

  • Limitations: The paper acknowledges that while the model is computationally efficient, the quadratic complexity of self-attention remains a challenge for extremely large 3D volumes. The authors also note that the order of sequence is important for accurate predictions due to the absence of convolutions.
  • Future Work: The paper suggests that their work is a first step towards purely volumetric transformer architectures for medical segmentation. Future directions could involve exploring more advanced attention mechanisms, further optimizing computational efficiency, and applying the architecture to other 3D medical imaging modalities and tasks. The authors also mention that their code implementation is publicly available, encouraging further research.

Summary updated

Abstract

We propose a Transformer architecture for volumetric segmentation, a challenging task that requires keeping a complex balance in encoding local and global spatial cues, and preserving information along all axes of the volume. Encoder of the proposed design benefits from self-attention mechanism to simultaneously encode local and global cues, while the decoder employs a parallel self and cross attention formulation to capture fine details for boundary refinement. Empirically, we show that the proposed design choices result in a computationally efficient model, with competitive and promising results on the Medical Segmentation Decathlon (MSD) brain tumor segmentation (BraTS) Task. We further show that the representations learned by our model are robust against data corruptions. Our code implementation is publicly available .
BibTeX
@inproceedings{peiris2022robust,
  author = {Himashi Peiris and Munawar Hayat and Zhaolin Chen and Gary F. Egan and Mehrtash Harandi},
  title = {{A Robust Volumetric Transformer for Accurate 3D Tumor Segmentation}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2022},
  doi = {10.1007/978-3-031-16443-9\_16},
}
Figure