Introduction
Accurate segmentation of brain tumors from medical imaging is a critical component of modern neuro-oncology, influencing diagnosis, surgical planning, and treatment monitoring. While multi-modal Magnetic Resonance Imaging (MRI) provides a comprehensive view of tumor pathology, effectively integrating these diverse sequences—such as T1, T2, and FLAIR—remains a significant technical challenge. Traditional approaches often struggle to capture the complex, non-linear relationships between different modalities.
NestedFormer is a novel transformer-based architecture designed to address these limitations. By moving beyond simple data concatenation, it introduces a "nested" strategy to explicitly model both intra-modality spatial patterns and inter-modality dependencies, achieving state-of-the-art performance with high computational efficiency.
The Challenge of Multi-Modal Fusion
In clinical practice, different MRI sequences highlight distinct tissue characteristics. For instance, one sequence may clearly delineate the tumor core, while another is superior for identifying surrounding edema. Most existing deep learning models utilize "early fusion," where all modalities are concatenated at the input layer. This method frequently fails to capture the nuanced interplay between sequences.
Furthermore, while standard Convolutional Neural Networks (CNNs) excel at local feature extraction, they often lack the receptive field necessary to model long-range spatial dependencies across a 3D volume. Conversely, many 3D Transformers suffer from high computational costs. NestedFormer addresses these gaps by balancing global context with modality-specific awareness.
Methodology
NestedFormer introduces three primary innovations to the standard encoder-decoder (U-Net-like) framework:
1. Global Poolformer Encoder
To maintain a moderate computational footprint, the architecture utilizes Global Poolformer Blocks (GPB) in the encoder. Instead of relying on computationally intensive self-attention layers at every stage, GPBs use global pooling to efficiently extract discriminative volumetric features, allowing the model to scale effectively for 3D data.
2. Nested Modality-Aware Feature Aggregation (NMaFA)
The NMaFA module is the core of the architecture, performing fusion through a two-step nested process:
- Tri-orientated Spatial Attention (TSA): To handle 3D volumes efficiently, TSA decomposes spatial attention into axial-wise, plane-wise, and window-wise components. This captures long-range dependencies within each individual modality.
- Cross-Modality Attention (CMA): Following spatial attention, the model employs a "Token Learner" to identify dominant features across different modalities. This allows the network to learn how information in one scan (e.g., T1Gd) complements or reinforces information in another (e.g., T2).
3. Modality-Sensitive Gating (MSG)
Standard skip connections pass all encoder features directly to the decoder, which can introduce noise. The MSG module acts as a dynamic filter, weighting and selecting the most relevant modality-specific features at lower resolutions. This ensures the decoder receives the most pertinent information for refining segmentation boundaries.
Experimental Results
The researchers evaluated NestedFormer on two distinct datasets to demonstrate its versatility:
- BraTS2020: A benchmark dataset for glioma segmentation (369 cases). NestedFormer achieved a Dice score of 0.861 and a 95% Hausdorff Distance (HD95) of 5.051, outperforming established models like nnUNet, TransBTS, and UNETR.
- MeniSeg: A private dataset of 110 meningioma cases. The model achieved a Dice score of 0.765, representing a 1.5% improvement over the next best method (MAML).
Efficiency and Qualitative Impact
Beyond accuracy, NestedFormer is notably parameter-efficient. With only 10.48M parameters, it is significantly more compact than models like UNETR (92.58M parameters). Qualitative analysis shows that NestedFormer produces cleaner segmentation masks, particularly in complex regions where different MRI modalities provide subtle or conflicting cues.
Conclusion and Future Work
NestedFormer demonstrates that a nested approach to modality fusion—prioritizing intra-modality features before inter-modality aggregation—is superior to serial or parallel fusion strategies. While the model excels at high-level feature integration, future work may explore more sophisticated fusion at higher-resolution levels and test the framework on broader data types, such as PET or CT scans. By optimizing the balance between spatial context and modality awareness, NestedFormer sets a new standard for efficient, high-performance medical image segmentation.
Summary updated