Skip to main content
QUICK REVIEW

[Paper Review] DAE-Former: Dual Attention-guided Efficient Transformer for Medical Image Segmentation

Reza Azad, René Arimond|arXiv (Cornell University)|Dec 27, 2022
Advanced Neural Network ApplicationsComputer Science5 citations
TL;DR

DAE-Former proposes a computationally efficient, convolution-free U-Net-like Transformer architecture for medical image segmentation by introducing dual attention mechanisms: efficient spatial attention followed by transpose (channel) attention to model long-range dependencies across both spatial and channel dimensions. The method achieves state-of-the-art performance on cardiac and skin lesion segmentation benchmarks without pre-training, leveraging a novel skip connection cross-attention (SCCA) module for enhanced feature fusion and localization.

ABSTRACT

Transformers have recently gained attention in the computer vision domain due to their ability to model long-range dependencies. However, the self-attention mechanism, which is the core part of the Transformer model, usually suffers from quadratic computational complexity with respect to the number of tokens. Many architectures attempt to reduce model complexity by limiting the self-attention mechanism to local regions or by redesigning the tokenization process. In this paper, we propose DAE-Former, a novel method that seeks to provide an alternative perspective by efficiently designing the self-attention mechanism. More specifically, we reformulate the self-attention mechanism to capture both spatial and channel relations across the whole feature dimension while staying computationally efficient. Furthermore, we redesign the skip connection path by including the cross-attention module to ensure the feature reusability and enhance the localization power. Our method outperforms state-of-the-art methods on multi-organ cardiac and skin lesion segmentation datasets without requiring pre-training weights. The code is publicly available at https://github.com/mindflow-institue/DAEFormer.

Motivation & Objective

  • Address the quadratic computational complexity of standard self-attention in Transformers for high-resolution medical images.
  • Overcome the limitations of CNNs in capturing long-range spatial and structural dependencies in medical image segmentation.
  • Design a pure Transformer-based U-Net architecture that maintains high efficiency and strong localization capability without relying on CNN backbones.
  • Improve feature fusion between encoder and decoder by introducing a skip connection cross-attention (SCCA) module to enhance representation reusability and segmentation accuracy.
  • Achieve state-of-the-art performance on multi-organ and skin lesion segmentation tasks without requiring pre-trained weights.

Proposed method

  • Employ patch embedding with overlapping 4×4 patches to tokenize input images into sequence tokens, eliminating convolutional operations.
  • Implement a hierarchical encoder-decoder structure with three stacked blocks, using patch merging and expanding layers to downsample and upsample spatial dimensions while doubling channel dimensions.
  • Introduce a dual attention block consisting of two stages: (1) efficient attention to compute spatial importance via normalized queries and keys, reducing O(N²) complexity to O(d²N), and (2) transpose attention to model channel-wise dependencies by transposing key and value matrices.
  • Apply the efficient attention mechanism using softmax-normalized queries and keys, followed by matrix multiplication with values to produce global context vectors, enabling high representational power with reduced computation.
  • Design the skip connection cross-attention (SCCA) module to fuse features from encoder and decoder paths by attending to both spatial and channel representations, improving feature reusability and localization accuracy.
  • Use a linear projection layer at the final stage to generate the segmentation map from the refined features.

Experimental results

Research questions

  • RQ1Can a pure Transformer-based U-Net architecture achieve state-of-the-art performance in medical image segmentation while maintaining computational efficiency?
  • RQ2How can the self-attention mechanism be restructured to efficiently model both spatial and channel-wise dependencies without incurring quadratic complexity?
  • RQ3To what extent does introducing a skip connection cross-attention (SCCA) module improve feature fusion and localization in a Transformer-based segmentation network?
  • RQ4Can a model based solely on dual attention mechanisms (efficient spatial + transpose channel attention) outperform CNN-Transformer hybrids and existing pure Transformers in medical image segmentation without pre-training?
  • RQ5How does the proposed architecture generalize across diverse medical imaging tasks such as cardiac and skin lesion segmentation?

Key findings

  • DAE-Former achieves state-of-the-art performance on multi-organ cardiac segmentation and skin lesion segmentation datasets without requiring pre-trained weights.
  • The model demonstrates strong generalization capability, outperforming existing SOTA methods on both cardiac and skin lesion segmentation benchmarks.
  • The dual attention mechanism—efficient spatial attention followed by transpose channel attention—enables effective modeling of long-range dependencies across both spatial and channel dimensions with reduced computational cost.
  • The skip connection cross-attention (SCCA) module significantly enhances feature reusability and improves localization accuracy by enabling cross-modality attention between encoder and decoder features.
  • The architecture maintains high efficiency due to the use of efficient attention and a pure Transformer design without convolutional backbones, making it suitable for high-resolution medical images.
  • The ablation study confirms that both the dual attention mechanism and SCCA module contribute substantially to performance gains, validating their design choices.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.