[Paper Review] D-Former: A U-shaped Dilated Transformer for 3D Medical Image Segmentation
D-Former proposes a U-shaped dilated Transformer for 3D medical image segmentation that reduces computational cost by using dilated multi-head self-attention to capture long-range dependencies across patches without increasing the number of tokens. It achieves state-of-the-art performance on Synapse and ACDC datasets with lower FLOPs and parameters than competing CNN and Transformer models, using a novel dynamic position encoding mechanism for improved spatial modeling.
Computer-aided medical image segmentation has been applied widely in diagnosis and treatment to obtain clinically useful information of shapes and volumes of target organs and tissues. In the past several years, convolutional neural network (CNN) based methods (e.g., U-Net) have dominated this area, but still suffered from inadequate long-range information capturing. Hence, recent work presented computer vision Transformer variants for medical image segmentation tasks and obtained promising performances. Such Transformers model long-range dependency by computing pair-wise patch relations. However, they incur prohibitive computational costs, especially on 3D medical images (e.g., CT and MRI). In this paper, we propose a new method called Dilated Transformer, which conducts self-attention for pair-wise patch relations captured alternately in local and global scopes. Inspired by dilated convolution kernels, we conduct the global self-attention in a dilated manner, enlarging receptive fields without increasing the patches involved and thus reducing computational costs. Based on this design of Dilated Transformer, we construct a U-shaped encoder-decoder hierarchical architecture called D-Former for 3D medical image segmentation. Experiments on the Synapse and ACDC datasets show that our D-Former model, trained from scratch, outperforms various competitive CNN-based or Transformer-based segmentation models at a low computational cost without time-consuming per-training process.
Motivation & Objective
- To address the high computational cost of global self-attention in 3D medical image segmentation Transformers.
- To improve long-range feature modeling in 3D medical images while maintaining spatial resolution and reducing parameter count.
- To design an efficient, scalable Transformer architecture suitable for 3D medical imaging with limited computational resources.
- To integrate dynamic position encoding that adapts to sequence-dependent positional relationships for better spatial understanding.
Proposed method
- Proposes a dilated self-attention mechanism that alternately computes local and global self-attention in a dilated manner, expanding receptive fields without increasing the number of patches.
- Introduces a U-shaped encoder-decoder architecture, D-Former, combining local scope modules (LSM) and global scope modules (GSM) with alternating dilated attention.
- Employs a dynamic position encoding (DPE) block placed before the first local self-attention module to learn position-aware representations flexibly.
- Uses a hierarchical design with multiple stages, each containing alternating LSM and GSM blocks to progressively capture multi-scale contextual features.
- Applies learned position embeddings that adapt to input-dependent spatial relationships, improving modeling of 3D spatial structures.
- Trains the model from scratch without pre-training, achieving high performance with low computational cost.
Experimental results
Research questions
- RQ1Can a dilated self-attention mechanism reduce computational cost in 3D medical image segmentation while preserving long-range dependency modeling?
- RQ2How does the proposed D-Former architecture compare to standard Transformers and CNNs in terms of segmentation accuracy and FLOPs on 3D medical imaging tasks?
- RQ3What is the optimal placement and design of dynamic position encoding for improving 3D spatial representation in Transformers?
- RQ4Does replacing global self-attention with a dilated global scope module improve performance without increasing the number of tokens?
- RQ5How effective is the D-Former model when trained from scratch on 3D medical image datasets like Synapse and ACDC?
Key findings
- D-Former achieves a mean DSC of 88.83% on the Synapse dataset, outperforming state-of-the-art models including Swin-Unet and nnFormer.
- The model reduces FLOPs and parameters compared to standard Transformers while maintaining superior segmentation accuracy.
- The proposed dynamic position encoding (DPE) improves mean DSC by 4.05% over absolute position encoding and 2.48% over relative position encoding.
- Placing the DPE block before the first local self-attention module yields the best performance, confirming its importance in spatial modeling.
- The global scope module (GSM) with dilated attention improves accuracy by 0.66% over using only local scope modules, demonstrating its effectiveness in long-range modeling.
- Ablation studies confirm that the dilated attention mechanism and DPE are both critical for achieving state-of-the-art performance with low computational cost.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.