[Paper Review] ScaleFormer: Revisiting the Transformer-based Backbones from a Scale-wise Perspective for Medical Image Segmentation
ScaleFormer proposes a novel transformer-based backbone for medical image segmentation that addresses scale-wise challenges through a dual-branch design: intra-scale modeling with a lightweight Dual-Axis Multi-Head Self-Attention (DA-MSA) to fuse local and global cues within each scale, and inter-scale modeling via a spatial-aware transformer to enhance cross-scale feature interaction. It achieves state-of-the-art performance on multiple medical image segmentation benchmarks.
Recently, a variety of vision transformers have been developed as their capability of modeling long-range dependency. In current transformer-based backbones for medical image segmentation, convolutional layers were replaced with pure transformers, or transformers were added to the deepest encoder to learn global context. However, there are mainly two challenges in a scale-wise perspective: (1) intra-scale problem: the existing methods lacked in extracting local-global cues in each scale, which may impact the signal propagation of small objects; (2) inter-scale problem: the existing methods failed to explore distinctive information from multiple scales, which may hinder the representation learning from objects with widely variable size, shape and location. To address these limitations, we propose a novel backbone, namely ScaleFormer, with two appealing designs: (1) A scale-wise intra-scale transformer is designed to couple the CNN-based local features with the transformer-based global cues in each scale, where the row-wise and column-wise global dependencies can be extracted by a lightweight Dual-Axis MSA. (2) A simple and effective spatial-aware inter-scale transformer is designed to interact among consensual regions in multiple scales, which can highlight the cross-scale dependency and resolve the complex scale variations. Experimental results on different benchmarks demonstrate that our Scale-Former outperforms the current state-of-the-art methods. The code is publicly available at: https://github.com/ZJUGiveLab/ScaleFormer.
Motivation & Objective
- To address the intra-scale limitation in existing vision transformers, where local and global features are not effectively fused within each scale.
- To resolve the inter-scale challenge of insufficient cross-scale feature interaction, especially for objects with variable size and shape.
- To improve representation learning in medical image segmentation by explicitly modeling scale-wise dependencies across feature hierarchies.
- To develop a lightweight, effective backbone that enhances signal propagation for small objects and robustness to scale variations.
Proposed method
- Introduces a scale-wise intra-scale transformer that combines CNN-based local features with transformer-based global cues using a lightweight Dual-Axis Multi-Head Self-Attention (DA-MSA) mechanism.
- Employs row-wise and column-wise attention in DA-MSA to capture long-range dependencies in both directions independently, improving local-global feature integration.
- Designs a spatial-aware inter-scale transformer that explicitly models cross-scale interactions by attending to corresponding regions across different scales.
- Uses feature maps from multiple encoder stages as input to the inter-scale module, enabling hierarchical feature refinement.
- Applies residual connections and layer normalization to stabilize training and improve gradient flow.
- Trains the full model end-to-end with standard segmentation loss (e.g., dice loss) on medical image datasets.
Experimental results
Research questions
- RQ1How can local and global features be effectively fused within each scale to improve representation learning for small objects?
- RQ2To what extent can cross-scale feature interaction enhance the model's ability to handle objects of varying sizes and shapes in medical images?
- RQ3Can a lightweight, scale-aware transformer module improve performance without significantly increasing computational cost?
- RQ4How does the proposed intra-scale and inter-scale design compare to standard vision transformer backbones in medical image segmentation?
Key findings
- ScaleFormer achieves state-of-the-art performance on multiple medical image segmentation benchmarks, including nnU-Net and other standard datasets.
- The ablation study confirms that both intra-scale and inter-scale modules contribute significantly to performance gains, especially for small objects.
- The model shows improved segmentation accuracy on small and irregularly shaped structures due to better local-global feature fusion.
- The spatial-aware inter-scale module effectively captures cross-scale dependencies, leading to more robust feature representations across scale hierarchies.
- The proposed method maintains competitive inference speed and parameter efficiency compared to existing transformer-based backbones.
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.