Attention U-Net
3 memberslucid.models.vision.attention_unetAttention U-Net (Oktay et al., MIDL 2018).
Paper: "Attention U-Net: Learning Where to Look for the Pancreas"
Oktay, Ozan, et al. "Attention U-Net: Learning Where to Look for the Pancreas." Medical Imaging with Deep Learning, 2018.
Attention U-Net augments the standard U-Net skip pathways with soft spatial attention gates. In a plain U-Net every encoder feature is concatenated unconditionally into the decoder, so irrelevant background activations still propagate to the output. For small structures like the pancreas — where the target occupies a tiny fraction of the field of view — this leaks gradient signal into the wrong regions and hurts both convergence and final Dice.
Each Attention Gate (AG) at decoder level takes two inputs: the skip feature from the encoder and a gating signal from the deeper decoder stage. Both are projected to a common intermediate space with convolutions and additively combined:
where is ReLU and is sigmoid, so is a per-pixel attention coefficient. The gated skip then replaces the raw skip in the U-Net concatenation.
Because the gate is differentiable and trained jointly with the rest of the network, no extra supervision (bounding boxes, landmarks, …) is needed: the model learns where to look purely from the segmentation loss. The added cost is small (two convs per gate) but consistently improves Dice on small-organ targets and tightens the response near tissue boundaries — a now-standard add-on in medical-imaging U-Net variants.