STA-Unet: Rethink the semantic redundant for Medical Imaging Segmentation

Vamsi Krishna Vasa, Wenhui Zhu, Xiwen Chen, Peijie Qiu, Xuanzhao Dong, Yalin WangarXiv 2024 · DOI

Introduction: The Redundancy Problem in Medical Segmentation

Medical image segmentation has traditionally relied on Convolutional Neural Networks (CNNs), such as the U-Net, due to their proficiency in capturing local spatial features. However, CNNs often struggle with modeling long-range dependencies and global context. While Vision Transformers (ViTs) have been introduced to address these limitations, they bring a new challenge: semantic redundancy.

In the shallow layers of hybrid Transformer models, multiple attention heads often perform redundant computations, focusing on nearly identical information from neighboring pixels. This "lazy" learning pattern leads to computational inefficiency and a failure to capture diverse features. Using Centered Kernel Alignment (CKA), the authors of STA-Unet demonstrate that popular models like SwinUnet and TransUnet exhibit high similarity in their early blocks, indicating significant redundancy.

Block-wise similarity matrices demonstrating high feature redundancy in the shallow layers of existing Transformer-based models.

Methodology: Super Token Attention (STA)

To mitigate redundancy while maintaining global context, the authors propose the Super Token Attention (STA) module. This mechanism adapts the concept of "superpixels" into the token space of Transformers.

The STA Module

The STA module operates through four primary steps:

  1. Super Token Extraction: Pixels are grouped into compact "super tokens" that summarize local regions.
  2. Sparse Association: The model computes an association map determining the degree to which each pixel belongs to a specific super token.
  3. Global Attention: Self-attention is performed exclusively on these summarized super tokens, significantly reducing the computational load while capturing global dependencies.
  4. Upsampling: The global information is mapped back to the original pixel space using the previously computed association map.

STA-Unet Architecture

The STA modules are integrated into a symmetric U-shaped architecture, forming STA-Unet. Unlike standard U-Nets, STA-Unet utilizes STA modules in both the encoder and decoder paths. This design allows the model to filter essential information at various scales and maintain fine-grained details through skip connections.

The STA-Unet architecture, featuring a symmetric encoder-decoder structure with integrated Super Token Attention (STA) modules and skip connections.

Experimental Results

STA-Unet was evaluated on four diverse medical imaging datasets: Synapse Multi-Organ Segmentation (CT), ACDC (MRI), MoNuSeg (Nuclear), and GlaS (Gland histology).

Quantitative Performance

STA-Unet consistently achieved state-of-the-art (SOTA) results across all benchmarks:

  • Synapse Dataset: The model reached an 80.69% Average Dice Score, significantly outperforming the baseline U-Net (76.85%). It showed remarkable improvements in segmenting small or complex organs, with a +17.30% gain in Pancreas segmentation and +15.80% in Right Kidney segmentation compared to U-Net.
  • ACDC Dataset: It achieved a 92.25% Average Dice Score, surpassing other Transformer-based architectures.

Efficiency and Insights

Ablation studies revealed that decreasing the number of attention heads in the STA module actually improved performance, suggesting that forcing the model to focus on critical global relationships is more effective than redundant multi-head attention. Furthermore, the model allows for a reduction in Floating Point Operations (FLOPs) by optimizing token size, demonstrating that "smarter" attention is more efficient than "denser" attention.

Conclusion

STA-Unet addresses the critical issue of semantic redundancy in Transformer-based medical image segmentation. By leveraging Super Token Attention, the model achieves superior accuracy across multiple modalities while remaining computationally efficient. Future work will explore the application of this redundancy-reduction approach to 3D volumetric data and other specialized medical imaging tasks.

Summary updated

Abstract

In recent years, significant progress has been made in the medical image analysis domain using convolutional neural networks (CNNs). In particular, deep neural networks based on a U-shaped architecture (UNet) with skip connections have been adopted for several medical imaging tasks, including organ segmentation. Despite their great success, CNNs are not good at learning global or semantic features. Especially ones that require human-like reasoning to understand the context. Many UNet architectures attempted to adjust with the introduction of Transformer-based self-attention mechanisms, and notable gains in performance have been noted. However, the transformers are inherently flawed with redundancy to learn at shallow layers, which often leads to an increase in the computation of attention from the nearby pixels offering limited information. The recently introduced Super Token Attention (STA) mechanism adapts the concept of superpixels from pixel space to token space, using super tokens as compact visual representations. This approach tackles the redundancy by learning efficient global representations in vision transformers, especially for the shallow layers. In this work, we introduce the STA module in the UNet architecture (STA-UNet), to limit redundancy without losing rich information. Experimental results on four publicly available datasets demonstrate the superiority of STA-UNet over existing state-of-the-art architectures in terms of Dice score and IOU for organ segmentation tasks. The code is available at \url{https://github.com/Retinal-Research/STA-UNet}.
BibTeX
@misc{vasa2024sta,
  author = {Vamsi Krishna Vasa and Wenhui Zhu and Xiwen Chen and Peijie Qiu and Xuanzhao Dong and Yalin Wang},
  title = {{STA-Unet: Rethink the semantic redundant for Medical Imaging Segmentation}},
  year = {2024},
  eprint = {2410.11578},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.11578},
}
Figure