Skip to main content
QUICK REVIEW

[Paper Review] AFTer-UNet: Axial Fusion Transformer UNet for Medical Image Segmentation

Xiangyi Yan, Hao Tang|arXiv (Cornell University)|Oct 20, 2021
Advanced Neural Network ApplicationsComputer Science10 citations
TL;DR

AFTer-UNet proposes an end-to-end 3D medical image segmentation framework that integrates axial fusion transformers into a U-Net architecture to jointly model intra-slice and inter-slice long-range dependencies. By computing self-attention separately along the axial and spatial axes before fusing them, it reduces computational cost and GPU memory usage while achieving state-of-the-art performance on multi-organ segmentation benchmarks with 4.34% average Dice improvement over U-Net and 2.56% over CoTr.

ABSTRACT

Recent advances in transformer-based models have drawn attention to exploring these techniques in medical image segmentation, especially in conjunction with the U-Net model (or its variants), which has shown great success in medical image segmentation, under both 2D and 3D settings. Current 2D based methods either directly replace convolutional layers with pure transformers or consider a transformer as an additional intermediate encoder between the encoder and decoder of U-Net. However, these approaches only consider the attention encoding within one single slice and do not utilize the axial-axis information naturally provided by a 3D volume. In the 3D setting, convolution on volumetric data and transformers both consume large GPU memory. One has to either downsample the image or use cropped local patches to reduce GPU memory usage, which limits its performance. In this paper, we propose Axial Fusion Transformer UNet (AFTer-UNet), which takes both advantages of convolutional layers' capability of extracting detailed features and transformers' strength on long sequence modeling. It considers both intra-slice and inter-slice long-range cues to guide the segmentation. Meanwhile, it has fewer parameters and takes less GPU memory to train than the previous transformer-based models. Extensive experiments on three multi-organ segmentation datasets demonstrate that our method outperforms current state-of-the-art methods.

Motivation & Objective

  • To address the limitation of existing 2D and 3D transformer-based models in medical image segmentation that fail to effectively utilize axial (inter-slice) contextual information in 3D volumes.
  • To reduce the high GPU memory consumption of 3D self-attention in volumetric data while preserving long-range modeling capability.
  • To improve segmentation accuracy—especially for elongated and anatomically variable organs—by fusing contextual cues across multiple slices.
  • To maintain model efficiency with fewer parameters and lower memory usage than prior transformer-based models.
  • To develop a scalable, end-to-end framework compatible with commodity GPUs for clinical deployment.

Proposed method

  • Introduces an axial fusion mechanism that computes self-attention independently along the axial axis and within each 2D slice before fusing the outputs.
  • Embeds the axial fusion transformer between the encoder and decoder of a U-Net, preserving the U-Net’s U-shaped skip connections.
  • Uses a 2D CNN encoder and decoder for feature extraction, while the axial fusion transformer captures long-range dependencies across slices.
  • Applies multi-head self-attention with relative positional encoding along the axial direction and within each 2D slice to model long-range context.
  • Employs a sampling frequency $N_f$ to control the density of inter-slice attention, favoring closer neighboring slices for improved efficiency and performance.
  • Reduces computational complexity from $O(HW D^2)$ to $O(HW D + H^2W^2)$ by decoupling axial and spatial attention, enabling training on a single 11GB GPU.

Experimental results

Research questions

  • RQ1Can axial fusion of intra-slice and inter-slice attention improve 3D medical image segmentation beyond pure 2D or 3D transformer models?
  • RQ2Does decoupling axial and spatial attention reduce GPU memory usage while preserving long-range modeling capability?
  • RQ3How does the number of neighboring axial slices affect segmentation performance, especially for elongated organs?
  • RQ4To what extent does increasing the number of axial fusion transformer layers improve segmentation accuracy?
  • RQ5How does sampling frequency along the axial axis influence model performance and efficiency?

Key findings

  • On the Thorax-85 dataset, AFTer-UNet achieves a 2.13% average Dice score improvement over U-Net and 0.69% over CoTr.
  • For the esophagus, a challenging elongated organ, AFTer-UNet improves Dice by 2.91% over U-Net and 1.45% over CoTr.
  • On the multi-organ dataset, AFTer-UNet outperforms U-Net by 3.17% for the liver, 7.30% for the left kidney, 7.11% for the right kidney, and 6.64% for the pancreas.
  • Compared to CoTr, AFTer-UNet achieves 3.85% higher Dice for the liver, 5.26% for the left kidney, 6.61% for the right kidney, and 5.68% for the pancreas.
  • AFTer-UNet reduces GPU memory usage significantly, enabling training on a single RTX-2080Ti (11GB), unlike previous 3D transformer models requiring multiple GPUs.
  • With 41.5M parameters, AFTer-UNet maintains model size comparable to TransUNet (43.5M) and CoTr (41.9M), proving efficiency without parameter inflation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.