nnFormer: Interleaved Transformer for Volumetric Segmentation

Hong-Yu Zhou, Jiansen Guo, Yinghao Zhang, Lequan Yu, Liansheng Wang +1 more
9/7/2021
849 citations
cs.CV
transformer-attention

Official code: 282857341/nnFormer (793 stars, Python, MIT, last commit 2022-08-05).

Abstract

Transformer, the model of choice for natural language processing, has drawn scant attention from the medical imaging community. Given the ability to exploit long-term dependencies, transformers are promising to help atypical convolutional neural networks to overcome their inherent shortcomings of spatial inductive bias.

Show full abstract

However, most of recently proposed transformer-based segmentation approaches simply treated transformers as assisted modules to help encode global context into convolutional representations. To address this issue, we introduce nnFormer, a 3D transformer for volumetric medical image segmentation. nnFormer not only exploits the combination of interleaved convolution and self-attention operations, but also introduces local and global volume-based self-attention mechanism to learn volume representations. Moreover, nnFormer proposes to use skip attention to replace the traditional concatenation/summation operations in skip connections in U-Net like architecture. Experiments show that nnFormer significantly outperforms previous transformer-based counterparts by large margins on three public datasets. Compared to nnUNet, nnFormer produces significantly lower HD95 and comparable DSC results. Furthermore, we show that nnFormer and nnUNet are highly complementary to each other in model ensembling.

View on arXivView PDF

Code Implementations(1)

282857341/nnFormerOfficial100%
MIT
79399Python, ShellJul 24, 20214 years agoMIT

Similar Papers

Cite this paper

@article{zhou2021nnformer,
  title  = {nnFormer: Interleaved Transformer for Volumetric Segmentation},
  author = {Hong-Yu Zhou and Jiansen Guo and Yinghao Zhang and Lequan Yu and Liansheng Wang and Yizhou Yu},
  year   = {2021},
  eprint = {2109.03201},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.03201}
}

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

Discussion