MedT_AxialAttention
A gated axial-attention network with global and local branches for medical image segmentation.
Medical imaging · 7,830 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Medical imaging
- Parameters
- 1.6M
- Operations
- 7,830
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- MICCAI 2021
- Cited by
- 1,541 (as of 22 October 2026)
- Authors
- Jeya Maria Jose Valanarasu, Poojan Oza, Ilker Hacihaliloglu, Vishal M. Patel
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m1744
- Graph hash
- b49b6cae289479dcc50dde8f740cabd992fcc61039a0c01ae801c88c59d392f2
- Skeleton hash
- 7db1bced41dd9cee093811597ccd95b6e6172463bbbbb2bcc357c1f13330952d
- Architecture hash
- 8712996a245370d34b32bf2895cd3923b38a54349ffc03050f5aa8e986c9ca08
- Diagram SHA-256
- 357ec3ee4d48937c7ebe1d7fbc49b9f076589f17597491c3936f9fe2eaab885f
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Medical Transformer (MedT) is a transformer-based network for medical image segmentation. Its paper argues that convolutional networks lack the ability to model long-range dependencies present in an image, while most transformer-based architectures for vision require large-scale datasets to train properly, and in medical imaging the number of data samples is relatively low.
MedT builds on axial attention, in which self-attention is decomposed into two modules, one working on the height axis of the feature map and one on the width axis. Its gated axial-attention layer adds four gates, learnable parameters that control the amount of information the positional embedding supplies to key, query and value. The Local-Global (LoGo) strategy uses two branches: a global branch that works on the original resolution of the image and a local branch that operates on 16 patches of it. The output feature maps of the two branches are added and passed through a 1 x 1 convolution layer to produce the segmentation mask.
The paper evaluates MedT on Brain anatomy segmentation (ultrasound), Gland segmentation (microscopic) and MoNuSeg (microscopic) datasets, and reports better performance than the convolutional and other related transformer-based architectures it is compared with. The authors' repository describes MedT as the LoGo training strategy applied to a Gated Axial Attention U-Net.
Key idea. The paper proposes gated axial attention, whose learnable gates control positional encodings, and a Local-Global training strategy, combined in MedT for medical image segmentation.
- MedT
- Medical Transformer
- gated axial attention
- Gated Axial Attention U-Net
- LoGo
- Local-Global training
- medical image segmentation
- MoNuSeg
- GlaS
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{valanarasu2021medicaltransformergatedaxialattention,
title={Medical Transformer: Gated Axial-Attention for Medical Image Segmentation},
author={Jeya Maria Jose Valanarasu and Poojan Oza and Ilker Hacihaliloglu and Vishal M. Patel},
year={2021},
eprint={2102.10662},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2102.10662},
}