[Paper Review] Medical Image Segmentation Using Squeeze-and-Expansion Transformers
This paper proposes Segtran, a transformer-based medical image segmentation framework that uses a Squeeze-and-Expansion Transformer to achieve large effective receptive fields while preserving high spatial resolution. By integrating learnable sinusoidal positional encoding and a dual-path attention mechanism, Segtran outperforms U-Net and its variants across 2D and 3D medical imaging tasks, demonstrating state-of-the-art accuracy and strong cross-domain generalization with minimal hyperparameter tuning.
Medical image segmentation is important for computer-aided diagnosis. Good segmentation demands the model to see the big picture and fine details simultaneously, i.e., to learn image features that incorporate large context while keep high spatial resolutions. To approach this goal, the most widely used methods -- U-Net and variants, extract and fuse multi-scale features. However, the fused features still have small "effective receptive fields" with a focus on local image cues, limiting their performance. In this work, we propose Segtran, an alternative segmentation framework based on transformers, which have unlimited "effective receptive fields" even at high feature resolutions. The core of Segtran is a novel Squeeze-and-Expansion transformer: a squeezed attention block regularizes the self attention of transformers, and an expansion block learns diversified representations. Additionally, we propose a new positional encoding scheme for transformers, imposing a continuity inductive bias for images. Experiments were performed on 2D and 3D medical image segmentation tasks: optic disc/cup segmentation in fundus images (REFUGE'20 challenge), polyp segmentation in colonoscopy images, and brain tumor segmentation in MRI scans (BraTS'19 challenge). Compared with representative existing methods, Segtran consistently achieved the highest segmentation accuracy, and exhibited good cross-domain generalization capabilities. The source code of Segtran is released at https://github.com/askerlee/segtran.
Motivation & Objective
- To address the limitation of U-Net and its variants in capturing long-range context due to small effective receptive fields.
- To improve medical image segmentation by leveraging the unlimited effective receptive field of transformers while maintaining high spatial resolution.
- To design a transformer architecture specifically tailored for medical image segmentation, overcoming limitations from natural language pretraining.
- To enhance cross-domain generalization by incorporating a continuity inductive bias through a novel positional encoding scheme.
- To achieve state-of-the-art performance with minimal architectural modifications and hyperparameter tuning across diverse medical imaging tasks.
Proposed method
- Proposes a Squeeze-and-Expansion Transformer with a squeezed attention block that regularizes the self-attention matrix to reduce computational burden and stabilize training.
- Introduces an expansion block that learns diversified representations by projecting features into multiple heads and fusing them after attention.
- Employs a learnable sinusoidal positional encoding that enforces spatial continuity, improving inductive bias for image data compared to standard learnable or fixed sinusoidal encodings.
- Uses a U-Net-like encoder-decoder structure with feature pyramid networks (FPNs) before and after the transformer blocks to maintain and recover spatial resolution.
- Adopts a CNN backbone (e.g., ResNet-101 or EfficientNet-B4) to extract initial features, which are then flattened into a sequence for transformer processing.
- Applies positional encodings based on pixel coordinates to preserve spatial structure during self-attention computation.
Experimental results
Research questions
- RQ1Can a transformer-based architecture with enhanced attention mechanisms outperform U-Net and its variants in medical image segmentation tasks with limited context capture?
- RQ2Does a Squeeze-and-Expansion Transformer design improve feature representation and segmentation accuracy compared to standard transformers in medical imaging?
- RQ3To what extent does the proposed learnable sinusoidal positional encoding improve inductive bias and model generalization in medical image segmentation?
- RQ4How does Segtran perform in cross-domain generalization when tested on datasets with different imaging characteristics (e.g., REFUGE20 vs. RIM-One)?
- RQ5What is the impact of pretraining on ImageNet for medical image segmentation models, and how does it affect performance across different architectures?
Key findings
- Segtran achieved the highest Dice score on the REFUGE’20 challenge (optic disc/cup segmentation), with a mean Dice of 0.938 on the test set, placing it among the top 5 teams.
- On the BraTS’19 challenge (3D brain tumor segmentation), Segtran outperformed U-Net and DeepLabV3+, achieving a mean Dice score of 0.875 on the validation set.
- With EfficientNet-B4 as the backbone, Segtran achieved a Dice score of 0.909 on the combined average of all tasks, significantly outperforming U-Net (0.875) and TransU-Net (0.901).
- Segtran exhibited the best cross-domain generalization, with only a 14.2% drop in Dice score when transferring from REFUGE20 to RIM-One, compared to 18.2% for U-Net and 19.3% for DeepLabV3+.
- Pretraining on ImageNet improved Segtran’s performance by ~2.5% in average Dice score, demonstrating strong benefits from pretraining in low-data regimes.
- Despite higher FLOPs and parameters when using ResNet-101, Segtran achieved optimal efficiency and performance when combined with EfficientNet-B4, reducing FLOPs to 71.3G and parameters to 93.1M.
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.