Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentation
Hu CaoYueyue WangJoy ChenDongsheng JiangXiaopeng ZhangQi TianManning Wang
Introduces Swin-Unet, a pure Transformer U-shaped encoder-decoder network with skip connections that learns long-range contextual interactions to outperform conventional convolutional and hybrid baselines on multi-organ and cardiac image segmentation.
Accurate medical image segmentation is critical for clinical decision-making, computer-assisted surgery, and automated diagnosis. Current standard solutions rely on convolutional neural networks, which process images through localized operations. However, these local operations struggle to capture broad context and long-range relationships across organs and tissues, frequently leading to over-segmentation errors and imperfect boundary delineations.
The article demonstrates that a pure Transformer architecture structured in a standard encoder-decoder format can perform medical image segmentation without relying on traditional convolution operations. To evaluate this approach, the researchers introduced Swin-Unet and tested its performance against established convolutional and hybrid models on standard abdominal computed tomography and cardiac magnetic resonance imaging benchmarks.
The evaluated model processes image patches using shifted attention windows and reconstructs resolution using dedicated patch expanding layers. On multi-organ computed tomography scans, Swin-Unet achieved the highest overall overlap accuracy at 79.13% and substantially reduced boundary errors, lowering the Hausdorff distance metric to 21.55—an improvement of roughly 10 points over leading hybrid models. On cardiac magnetic resonance imaging data, it reached an overall accuracy score of 90.00%. Ablation testing confirmed that incorporating multi-scale skip connections and custom patch expanding layers provided superior boundary precision compared to standard interpolation or convolution-based up-sampling.
These findings indicate that pure attention-based networks can capture global anatomical context more effectively than convolutional baselines, significantly improving the precision of organ boundaries. For clinical workflows, enhanced boundary definition reduces the risk of misidentifying healthy tissue as pathology during surgical planning or automated assessment. Furthermore, the model achieved optimal results using a compact configuration, showing that larger network sizes do not yield meaningful performance gains but add substantial computational expense.
Organizations developing medical imaging systems should consider adopting attention-based encoder-decoder frameworks, specifically using compact model configurations to maintain computational efficiency. Practical implementation should prioritize multi-scale feature connections and dedicated patch expansion rather than basic interpolation. Next steps include developing end-to-end medical pre-training strategies to replace general image pre-initialization, as well as extending the current two-dimensional architecture to directly handle three-dimensional volumetric scans.
Confidence in the reported improvements is strong across the evaluated two-dimensional benchmarks. However, stakeholders should note that the current approach relies on pre-trained weights from natural image datasets and operates solely on two-dimensional image slices, whereas many clinical workflows depend on full three-dimensional volumetric analysis.
- Paper: Swin Transformer: Hierarchical Vision Transformer using Shifted Windows, Ze Liu et al. (2021). Swin Transformer introduces the hierarchical shifted-window attention mechanism that Swin-Unet directly adopts as its encoder backbone.
- Paper: U-Net: Convolutional Networks for Biomedical Image Segmentation, Olaf Ronneberger et al. (2015). U-Net establishes the foundational encoder-decoder architecture with skip connections that Swin-Unet adapts for pure Transformer medical image segmentation.
- Paper: U-KAN Makes Strong Backbone for Medical Image Segmentation and Generation, Chenxin Li et al. (2025). U-KAN builds directly upon U-shaped vision transformer architectures like Swin-Unet by substituting their linear layers with learnable Kolmogorov-Arnold Network activations.
