Skip to main content
QUICK REVIEW

[Paper Review] Medical Transformer: Gated Axial-Attention for Medical Image Segmentation

Jeya Maria Jose Valanarasu, Poojan Oza|arXiv (Cornell University)|Feb 21, 2021
Radiomics and Machine Learning in Medical ImagingMedicine6 citations
TL;DR

This paper proposes Medical Transformer (MedT), a gated axial-attention network for medical image segmentation that enhances long-range feature modeling by integrating a learnable gate mechanism into axial self-attention. The method achieves state-of-the-art performance on three medical imaging datasets without requiring pretraining, outperforming both convolutional and existing transformer-based models through a novel Local-Global training strategy (LoGo).

ABSTRACT

Over the past decade, Deep Convolutional Neural Networks have been widely adopted for medical image segmentation and shown to achieve adequate performance. However, due to the inherent inductive biases present in the convolutional architectures, they lack understanding of long-range dependencies in the image. Recently proposed Transformer-based architectures that leverage self-attention mechanism encode long-range dependencies and learn representations that are highly expressive. This motivates us to explore Transformer-based solutions and study the feasibility of using Transformer-based network architectures for medical image segmentation tasks. Majority of existing Transformer-based network architectures proposed for vision applications require large-scale datasets to train properly. However, compared to the datasets for vision applications, for medical imaging the number of data samples is relatively low, making it difficult to efficiently train transformers for medical applications. To this end, we propose a Gated Axial-Attention model which extends the existing architectures by introducing an additional control mechanism in the self-attention module. Furthermore, to train the model effectively on medical images, we propose a Local-Global training strategy (LoGo) which further improves the performance. Specifically, we operate on the whole image and patches to learn global and local features, respectively. The proposed Medical Transformer (MedT) is evaluated on three different medical image segmentation datasets and it is shown that it achieves better performance than the convolutional and other related transformer-based architectures. Code: https://github.com/jeya-maria-jose/Medical-Transformer

Motivation & Objective

  • Address the limitation of convolutional networks in modeling long-range dependencies in medical images.
  • Overcome the data scarcity challenge in medical imaging that hinders effective training of standard transformers.
  • Develop a transformer-based architecture that improves segmentation accuracy by explicitly modeling global context and local details.
  • Design a training strategy that effectively leverages both whole-image and patch-level representations to boost performance on small medical datasets.

Proposed method

  • Proposes a gated axial-attention mechanism that adds a learnable gate to control the attention weights in 2D self-attention, improving feature representation by selectively attending to relevant spatial contexts.
  • Introduces a Local-Global (LoGo) training strategy that jointly trains a global branch (on full images) and a local branch (on image patches), enabling the model to learn both global context and fine-grained local features.
  • Uses axial attention to decompose 2D self-attention into two 1D operations, reducing computational cost while preserving spatial modeling capability.
  • Employs a U-Net-like encoder-decoder architecture with axial attention blocks replacing standard convolutional layers in the encoder.
  • Applies a two-stage training protocol: initially training without gate updates for 10 epochs to stabilize features, then jointly training all components with a base learning rate of 0.001.
  • Reduces model parameters by limiting the global branch to only two encoder/decoder layers and using patch-based processing in the local branch, maintaining efficiency despite multi-branch design.

Experimental results

Research questions

  • RQ1Can a transformer-based architecture with axial self-attention effectively model long-range dependencies in medical image segmentation without pretraining?
  • RQ2How does the introduction of a learnable gate in the axial-attention mechanism improve performance on small medical imaging datasets?
  • RQ3To what extent does the Local-Global (LoGo) training strategy enhance feature learning compared to standard training on full images or patches alone?
  • RQ4Does the proposed Medical Transformer (MedT) outperform existing convolutional and transformer-based models in terms of segmentation accuracy on limited medical data?

Key findings

  • MedT achieves an F1 score of 88.84 on the Brain US dataset, outperforming U-Net (85.37), Res-UNet (87.5), and Axial-UNet (88.39).
  • The ablation study confirms that each component—gated axial attention, LoGo training, and the multi-branch design—contributes to improved performance.
  • The LoGo strategy with only two global encoder layers achieves strong performance, indicating that minimal global modeling is sufficient when combined with local patch-level learning.
  • Despite having only 1.4 million parameters, MedT outperforms models with significantly more parameters, such as the original U-Net (12.5M) and Res-UNet (5.32M), demonstrating parameter efficiency.
  • Qualitative results show that MedT correctly segments background regions that are misclassified by U-Net and Res-UNet, particularly in ultrasound scans with complex background textures.
  • The model achieves state-of-the-art performance without requiring ImageNet pretraining, unlike related works such as TransUNet and TransFuse, which rely on large-scale pretraining.

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.