monai.AttentionUnet
A U-Net for medical image segmentation whose skip connections pass through attention gates.
Medical imaging · 63 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
- 89.2K
- Operations
- 63
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2018
- Cited by
- 9,548 (as of 16 November 2026)
- Authors
- Ozan Oktay, Jo Schlemper, Loïc Le Folgoc and others
- Source
- monai 1.5.2
- License
- Apache-2.0
- 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
- m7395
- Graph hash
- 26617a1a9465a9d7d39a383335d2ff27c4edfbe1685b2bd60680b81473e3a64d
- Skeleton hash
- 52c5ed5b1e96226fdecc87849c90fcf3f4c605653ac3cc9639863362e06894a3
- Architecture hash
- 58a3f6f024ec29cc97e111b3ec9ec613dfe427dec4d8ec6177dccb08179b2dff
- Diagram SHA-256
- 57f2f5464301efe09602f6409e2fb2954c5c551745b8fffcda8b4b9a952ea6c9
- TorchLens version
- 2.35.3
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
monai.networks.nets.AttentionUnet(spatial_dims=3, in_channels=1, out_channels=2, channels=[8, 16, 32], strides=[2, 2])
What it is
Attention U-Net is a U-Net for medical image segmentation with attention gates (AGs) placed on its skip connections. The gates let the network learn to suppress irrelevant regions of an input image while highlighting the features useful for the task, which the paper says removes the need for a separate organ localization model in front of the segmenter.
In the paper each gate multiplies the feature maps on a skip connection by attention coefficients, using information extracted at a coarser scale as the gating signal. The coefficients come from additive attention followed by a sigmoid, and the gating is applied right before the concatenation operation so that only relevant activations are merged. To reduce the trainable parameters and computational complexity of the gates, their linear transformations are 1x1x1 convolutions and the input feature maps are downsampled to the resolution of the gating signal.
The paper proposes a 3D model to capture sufficient semantic context, and this model is the MONAI implementation set up for three spatial dimensions. On its abdominal CT data the paper reports that adding 8% extra capacity to the standard U-Net improved performance by 2-3% in terms of Dice score.
Key idea. The paper proposes an attention gate that filters U-Net skip-connection features using a gating signal from a coarser scale, removing the need for a separate organ localization model.
- Attention U-Net
- attention unet
- AttentionUnet
- attention gate
- attention gated network
- medical image segmentation
- pancreas segmentation
- CT segmentation
- MONAI attention unet
- soft attention segmentation
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{oktay2018attentionunetlearninglook,
title={Attention U-Net: Learning Where to Look for the Pancreas},
author={Ozan Oktay and Jo Schlemper and Loic Le Folgoc and Matthew Lee and Mattias Heinrich and Kazunari Misawa and Kensaku Mori and Steven McDonagh and Nils Y Hammerla and Bernhard Kainz and Ben Glocker and Daniel Rueckert},
year={2018},
eprint={1804.03999},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1804.03999},
}