Optimizing Vision Transformers for Medical Image Segmentation

Qianying Liu, Chaitanya Kaul, Jun Wang, Christos Anagnostopoulos, Roderick Murray-Smith +1 more
10/14/2022
cs.CV
transformer-attention

Official code: kathyliu579/CS-Unet (19 stars, Python, last commit 2025-09-17).

Abstract

For medical image semantic segmentation (MISS), Vision Transformers have emerged as strong alternatives to convolutional neural networks thanks to their inherent ability to capture long-range correlations. However, existing research uses off-the-shelf vision Transformer blocks based on linear projections and feature processing which lack spatial and local context to refine organ boundaries.

Show full abstract

Furthermore, Transformers do not generalize well on small medical imaging datasets and rely on large-scale pre-training due to limited inductive biases. To address these problems, we demonstrate the design of a compact and accurate Transformer network for MISS, CS-Unet, which introduces convolutions in a multi-stage design for hierarchically enhancing spatial and local modeling ability of Transformers. This is mainly achieved by our well-designed Convolutional Swin Transformer (CST) block which merges convolutions with Multi-Head Self-Attention and Feed-Forward Networks for providing inherent localized spatial context and inductive biases. Experiments demonstrate CS-Unet without pre-training outperforms other counterparts by large margins on multi-organ and cardiac datasets with fewer parameters and achieves state-of-the-art performance. Our code is available at Github.

View on arXivView PDF

Code Implementations(1)

first version

192Python, ShellOct 24, 20221 years ago

Similar Papers

Cite this paper

@article{liu2022optimizing,
  title  = {Optimizing Vision Transformers for Medical Image Segmentation},
  author = {Qianying Liu and Chaitanya Kaul and Jun Wang and Christos Anagnostopoulos and Roderick Murray-Smith and Fani Deligianni},
  year   = {2022},
  eprint = {2210.08066},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.08066}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.08066.svg)](https://codeofpaper.com/paper/2210.08066)

Discussion