BATFormer: Towards Boundary-Aware Lightweight Transformer for Efficient Medical Image Segmentation

Xian Lin, Li Yu, Kwang-Ting Cheng, Zengqiang Yan
6/29/2022
77 citations
cs.CVcs.AI
transformer-attention

Official code: xianlin7/BATFormer (48 stars, Python, last commit 2023-04-24).

Abstract

Objective: Transformers, born to remedy the inadequate receptive fields of CNNs, have drawn explosive attention recently. However, the daunting computational complexity of global representation learning, together with rigid window partitioning, hinders their deployment in medical image segmentation.

Show full abstract

This work aims to address the above two issues in transformers for better medical image segmentation. Methods: We propose a boundary-aware lightweight transformer (BATFormer) that can build cross-scale global interaction with lower computational complexity and generate windows flexibly under the guidance of entropy. Specifically, to fully explore the benefits of transformers in long-range dependency establishment, a cross-scale global transformer (CGT) module is introduced to jointly utilize multiple small-scale feature maps for richer global features with lower computational complexity. Given the importance of shape modeling in medical image segmentation, a boundary-aware local transformer (BLT) module is constructed. Different from rigid window partitioning in vanilla transformers which would produce boundary distortion, BLT adopts an adaptive window partitioning scheme under the guidance of entropy for both computational complexity reduction and shape preservation. Results: BATFormer achieves the best performance in Dice of 92.84%, 91.97%, 90.26%, and 96.30% for the average, right ventricle, myocardium, and left ventricle respectively on the ACDC dataset and the best performance in Dice, IoU, and ACC of 90.76%, 84.64%, and 96.76% respectively on the ISIC 2018 dataset. More importantly, BATFormer requires the least amount of model parameters and the lowest computational complexity compared to the state-of-the-art approaches. Conclusion and Significance: Our results demonstrate the necessity of developing customized transformers for efficient and better medical image segmentation.

View on arXivView PDF

Code Implementations(1)

xianlin7/BATFormerOfficial100%
487PythonMay 13, 20223 years ago

Similar Papers

Cite this paper

@article{lin2022batformer,
  title  = {BATFormer: Towards Boundary-Aware Lightweight Transformer for Efficient Medical Image Segmentation},
  author = {Xian Lin and Li Yu and Kwang-Ting Cheng and Zengqiang Yan},
  year   = {2022},
  eprint = {2206.14409},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.14409}
}

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/2206.14409.svg)](https://codeofpaper.com/paper/2206.14409)

Discussion