Gated Differential Linear Attention: A Linear-Time Decoder for High-Fidelity Medical Segmentation
Organizations: University of Illinois Urbana-Champaign · University of Regensburg
Abstract
Medical image segmentation requires models that preserve fine anatomical boundaries while remaining practical for clinical deployment. Transformers capture long-range dependencies but incur quadratic attention cost, whereas CNNs are efficient but less effective at global reasoning. Linear attention offers scaling, but often produces diffuse feature aggregation that weakens boundary-sensitive prediction. We introduce a gated differential linear-attention mixer for medical image segmentation. Its global path, Gated Differential Linear Attention (GDLA), performs differential subtraction between two kernelized attention branches over complementary query/key subspaces to suppress redundant responses, and employs a data-dependent gate for token refinement. A parallel local token-mixing branch with depthwise convolution strengthens neighborhood interactions for better refinement, and the two branches are fused while preserving complexity. When instantiated in a pretrained Pyramid Vision Transformer (PVT)-based encoder--decoder model, \name achieves state-of-the-art results on the evaluated 2D medical segmentation benchmarks spanning CT, MRI, ultrasound, and dermoscopy, with a favorable accuracy--efficiency trade-off over closely related baselines. The code is publicly available at https://github.com/xmindflow/gdla.
Figures & tables
| Methods | Params | FLOPs | Spl. | RKid. | LKid. | Gal. | Liv. | Sto. | Aor. | Pan. | Average | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DSC | HD95 | |||||||||||
| R50+U-Net [ 8 ] | 30.42 M | - | 85.87 | 78.19 | 80.60 | 63.66 | 93.74 | 74.16 | 87.74 | 56.90 | 74.68 | 36.87 |
| TransUNet [ 8 ] | 96.07 M | 88.91 G | 85.08 | 77.02 | 81.87 | 63.16 | 94.08 | 75.62 | 87.23 | 55.86 | 77.49 | 31.69 |
| Swin-UNet [ 7 ] | 27.17 M | 6.16 G | 90.66 | 79.61 | 83.28 | 66.53 | 94.29 | 76.60 | 85.47 | 56.58 | 79.13 | 21.55 |
| HiFormer-B [ 15 ] | 25.51 M | 8.05 G | 90.99 | 79.77 | 85.23 | 65.23 | 94.61 | 81.08 | 86.21 | 59.52 | 80.39 | 14.70 |
| VM-UNet [ 31 ] | 44.27 M | 6.52 G | 89.51 | 82.76 | 86.16 | 69.41 | 94.17 | 81.40 | 86.40 | 58.80 | 81.08 | 19.21 |
| Methods Avg. Dice RV MYO LV R50+UNet [ 8 ] 87.55 87.10 80.63 94.92 R50+AttnUNet [ 8 ] 86.75 87.58 79.20 93.47 TransUNet [ 8 ] 89.71 88.86 84.53 95.73 Swin-UNet [ 7 ] 90.00 88.55 85.62 95.83 R50+ViT+CUP [ 8 ] 87.57 86.07 81.88 94.75 MT-UNet [ 38 ] 90.43 86.64 89.04 95.62 MISSFormer [ 17 ] 90.86 89.55 88.04 94.99 PVT-EMCAD-B2 [ 29 ] 92.12 90.65 89.68 96.02 CENet [ 5 ] 92.18 90.90 89.63 95.99 PVT-DiffAttn [ 41 ] 92.20 90.64 89.90 96.06 PVT-SelfAttn [ 36 ] 92.10 90.47 89.76 96.06 PVT-LinearAttn [ 18 ] 91.77 89.80 89.52 96.00 PVT-GDLA 92.53 91.30 90.21 96.07 | Methods Avg. Dice U-Net [ 30 ] 74.04 PraNet [ 11 ] 75.41 CaraNet [ 22 ] 77.34 AttnUNet [ 25 ] 74.48 DeepLabv3+ [ 2 ] 76.81 TransUNet [ 8 ] 78.30 TransFuse [ 42 ] 79.36 Swin-UNet [ 7 ] 77.38 PVT-EMCAD-B2 [ 29 ] 80.25 PVT-DiffAttn [ 41 ] 79.84 PVT-SelfAttn [ 36 ] 79.42 PVT-LinearAttn [ 18 ] 79.14 PVT-GDLA 80.54 | Methods PH 2 HAM10000 Dice Acc. Dice Acc. U-Net [ 30 ] 89.36 92.33 91.67 95.67 TransUNet [ 8 ] 88.40 92.00 93.53 96.49 Swin-Unet [ 7 ] 94.49 96.78 92.63 96.16 DeepLabv3+ [ 9 ] 92.02 95.03 92.51 96.07 Att-UNet [ 25 ] 90.03 92.76 92.68 96.10 UCTransNet [ 37 ] 90.93 94.08 93.46 96.84 MissFormer [ 17 ] 85.50 90.50 92.11 96.21 CENet [ 5 ] 95.04 97.19 94.71 97.04 PVT-DiffAttn [ 41 ] 95.10 97.13 94.73 97.10 PVT-SelfAttn [ 36 ] 95.08 97.18 94.78 97.06 PVT-LinearAttn [ 18 ] 94.78 96.68 94.68 96.87 PVT-GDLA 95.59 97.20 95.01 97.38 |
| Components | Params | FLOPs | Dice | ||
|---|---|---|---|---|---|
| DiffAttn | Mixer | Gate | |||
| ✗ | ✗ | ✗ | 28.25 M | 5.38 G | 94.78 |
| ✓ | ✗ | ✗ | 29.89 M | 6.05 G | 95.08 |
| ✓ | ✗ | ✓ | 30.01 M | 6.10 G | 95.20 |
| ✓ | ✓ | ✗ | 31.13 M | 6.52 G | 95.46 |
| ✓ | ✓ | ✓ | 32.13 M | 6.85 G | 95.59 |
| Kernel Size | Avg. Dice | |||
|---|---|---|---|---|
| Synapse | ACDC | HAM1000 | ||
| 85.32 | 92.53 | 95.01 | ||
| 84.94 | 92.23 | 94.73 | ||
| 84.73 | 92.21 | 94.68 | ||
| 84.63 | 92.17 | 94.62 | ||
| Gate | Avg. Dice | ||
|---|---|---|---|
| Synapse | ACDC | HAM10000 | |
| Sigmoid | 84.94 | 92.24 | 94.70 |
| SiLU | 85.32 | 92.53 | 95.01 |
| FFN | Avg. Dice | ||
|---|---|---|---|
| Synapse | ACDC | HAM10000 | |
| 2-layer MLP | 84.73 | 92.33 | 94.84 |
| SwiGLU | 84.78 | 92.25 | 94.90 |
| Mix-FFN | 85.32 | 92.53 | 95.01 |
Medical Image Segmentation
Medical image segmentation delineates organs, lesions, and other structures in scans to support measurement, diagnosis, treatment planning, and research.
See all 768 papers