nnFormer: Interleaved Transformer for Volumetric Segmentation
About
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. 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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Cardiac Segmentation | ACDC (test) | Avg Dice92.15 | 141 | |
| Medical Image Segmentation | Synapse (test) | Dice86.57 | 111 | |
| Cardiac Segmentation | ACDC | DSC (Overall)91.62 | 55 | |
| Medical Image Segmentation | LiTS | Dice Score0.927 | 23 | |
| Medical Image Registration | XCAT to-CT | DSC53.6 | 19 | |
| Brain MRI registration | IXI atlas-to-patient | DSC0.747 | 18 | |
| Brain MRI registration | JHU inter-patient | DSC72.9 | 18 | |
| Medical Image Segmentation | FLARE | Mean Dice90.6 | 17 | |
| Medical Image Segmentation | KITS | Dice77.4 | 17 | |
| Multi-organ Segmentation | Synapse | Average HD957.7 | 14 |