GASA-UNet: Global Axial Self-Attention U-Net for 3D Medical Image Segmentation

Chengkun Sun, Russell Stevens Terry, Jiang Bian, Jie XuarXiv 2024 · DOI

Introduction

Accurate 3D segmentation of organs and tumors is a cornerstone of modern medical diagnosis and treatment planning. However, traditional approaches face a significant trade-off between local precision and global context. Standard Convolutional Neural Networks (CNNs), such as the ubiquitous U-Net, excel at capturing fine-grained local features but often fail to grasp long-range spatial dependencies due to their limited receptive fields. Conversely, Vision Transformers (ViTs) offer global awareness but are computationally expensive, require vast amounts of data, and can lose the sharp boundary details critical for medical imaging.

GASA-UNet addresses these challenges by introducing the Global Axial Self-Attention (GASA) block. This novel architecture empowers the classic U-Net with a global receptive field while maintaining efficiency. By processing 3D volumes through three orthogonal 2D projections simultaneously, GASA-UNet captures comprehensive spatial context with minimal computational overhead, achieving state-of-the-art performance across multiple benchmarks.

Methodology: The GASA Block

The primary innovation of this work is the GASA block, which is integrated into an nnUNet-style encoder-decoder framework, typically at the bottleneck to bridge the encoder and decoder.

1. Parallel Patch Generation

Unlike standard 3D convolutions that can be computationally prohibitive, the GASA block utilizes three orthogonal 2D convolutional kernels (along the Width, Height, and Depth axes). This approach generates 1D patches from three different anatomical cross-sections—axial, sagittal, and coronal—simultaneously. This parallel processing ensures that the model considers multiple perspectives of the 3D volume from the outset.

2. Multi-Head Self-Attention (MHSA)

The patches generated from the three views are concatenated and passed into a Multi-Head Self-Attention module. This allows the model to compute attention scores across all three planes at once. By doing so, GASA-UNet avoids the "gradual erosion" of spatial information often seen in sequential axial attention methods, where axes are processed one after another.

Detailed architecture of the GASA block showing patch generation, MHSA, and feature integration.

3. Spatial Encoding and Integration

To maintain 3D spatial awareness, the model incorporates 1D learnable Absolute Positional Embeddings (PE). These embeddings anchor the 3D coordinates for each voxel, enabling the network to distinguish between anatomically similar tissues located in different body regions. Finally, the refined features are integrated back into the main U-Net pipeline, preserving local feature extraction while adding a layer of global intelligence.

Experimental Setup and Datasets

The effectiveness of GASA-UNet was validated on three diverse 3D medical imaging datasets:

  • BTCV (Beyond the Cranial Vault): Comprising 30 abdominal CT scans with annotations for 13 organs, testing multi-organ segmentation capabilities.
  • AMOS (Multi-Modality Abdominal Multi-Organ Segmentation): A large-scale dataset with 300 CT and 60 MRI scans, evaluating the model's robustness across modalities.
  • KiTS23 (Kidney and Kidney Tumor Segmentation): Featuring 489 cases, this dataset focuses on the difficult task of segmenting kidneys, tumors, and cysts, which often have complex and overlapping boundaries.

Key Insights: Efficiency and Perspective

A central insight of this research is that "three views are better than one." Traditional axial attention mechanisms process one orientation at a time, which can lead to a loss of context as information is passed through sequential layers. In contrast, the GASA block's parallel approach allows for a holistic view of the 3D structure in every step.

Comparison between (a) Traditional Axial Self-Attention, which processes views sequentially, and (b) the proposed GASA block, which processes three views simultaneously.

Furthermore, GASA-UNet is remarkably efficient. The GASA block adds only approximately 1 million parameters and 0.3G FLOPs to the base nnUNet. This makes it significantly more lightweight than full Transformer-based models like UNETR, facilitating easier deployment in clinical settings where computational resources may be limited.

Results and Performance

GASA-UNet consistently outperformed established baselines, including nnUNet, V-Net, and newer architectures like nnMamba.

  • KiTS23 Success: The model achieved an average Dice score of 76.49, a significant +1.50 improvement over the standard nnUNet. It proved particularly adept at identifying small kidney tumors that other models often missed.
  • Benchmark Leadership: On the BTCV and AMOS datasets, the "Large" variant (GASA-L) reached top-tier Dice scores of 82.41 and 89.87, respectively.
  • Qualitative Improvements: Visual analysis indicates that GASA-UNet produces cleaner, more distinct boundaries for adjacent organs, such as the stomach and liver, where traditional CNNs frequently produce blurred or merged results.

Conclusion and Future Directions

While GASA-UNet represents a significant step forward, challenges remain in accurately segmenting marginal tissues at organ boundaries. The standard Dice loss may not fully capture these fine-grained edge nuances. Future research will explore specialized loss functions for edge delineation and investigate the application of GASA blocks at multiple scales within the U-Net architecture to further enhance multi-scale global context.

Summary updated

BibTeX
@misc{sun2024gasa,
  author = {Chengkun Sun and Russell Stevens Terry and Jiang Bian and Jie Xu},
  title = {{GASA-UNet: Global Axial Self-Attention U-Net for 3D Medical Image Segmentation}},
  year = {2024},
  eprint = {2409.13146},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.13146},
}
Figure