NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

UNETR++: Delving into Efficient and Accurate 3D Medical Image Segmentation

Abdelrahman Shaker, Muhammad Maaz, Hanoona Rasheed, Salman Khan, Ming-Hsuan Yang, Fahad Shahbaz Khan

TL;DR

UNETR++ is a new hierarchical architecture for 3D medical image segmentation that solves the "heavyweight" problem of Transformer models. By introducing a novel Efficient Paired Attention (EPA) block, it achieves state-of-the-art accuracy while slashing model parameters and computational costs (FLOPs) by over 71% compared to previous leading methods.

What Problem Does This Paper Address?

Volumetric (3D) medical imaging, like CT and MRI scans, presents a massive data challenge. While Transformer-based models are excellent at capturing the "big picture" (long-range dependencies) needed to distinguish between similar-looking organs, they suffer from a major bottleneck: quadratic complexity.

Standard self-attention becomes exponentially more expensive as the number of input tokens (voxels) increases. In 3D imaging, where a single scan can have millions of voxels, this leads to models that are either too slow for clinical use or so large they lack robustness. Existing hybrid models (combining CNNs and Transformers) often prioritize accuracy at the cost of massive parameter counts. UNETR++ aims to break this trade-off, delivering high-quality segmentation masks with a lean, efficient footprint.

Methods

The authors move away from the fixed-resolution design of the original UNETR in favor of a hierarchical encoder-decoder structure. The core innovation is the Efficient Paired Attention (EPA) block, which replaces standard self-attention.

Figure 2. Overview of our UNETR++ approach with hierarchical encoder-decoder structure. The 3D patches are fed to the encoder, whose outputs are then connected to the decoder via skip connections followed by convolutional blocks to produce the final segmentation mask. The focus of our design is the introduction of an efficient paired-attention (EPA) block (Sec. 3.2). Each EPA block performs two tasks using parallel attention modules with shared keys-queries and different value layers to efficiently learn enriched spatial-channel feature representations. As illustrated in the EPA block diagram (on the right), the first (top) attention module aggregates the spatial features by a weighted sum of the projected features in a linear manner to compute the spatial attention maps, while the second (bottom) attention module emphasizes the dependencies in the channels and computes the channel attention maps. Finally, the outputs of the two attention modules are fused and passed to convolutional blocks to enhance the feature representation, leading to better segmentation masks.

Key features of the EPA block include:

  • Dual-Branch Attention: It processes features through two parallel branches: one focused on spatial attention and the other on channel attention.
  • Linear Complexity: The spatial branch projects keys ($K$) and values ($V$) into a lower-dimensional space. This reduces the computational complexity from quadratic ($O(n^2)$) to linear ($O(np)$), where $n$ is the number of tokens and $p$ is the much smaller projected dimension.
  • Weight Sharing: To ensure the two branches communicate and to save parameters, the model shares the weights for the Query ($Q$) and Key ($K$) mapping functions across both branches. However, it keeps the Value ($V$) weights independent to allow each branch to learn complementary features.
  • Hierarchical Design: The encoder gradually downsamples the feature maps, while the decoder upsamples them, using skip connections to recover spatial details lost during downsampling.

Datasets

The model was rigorously evaluated on five diverse benchmarks:

  1. Synapse: Multi-organ CT segmentation (8 organs).
  2. BTCV: Multi-organ CT segmentation (13 organs).
  3. ACDC: Cardiac MRI segmentation (3 heart structures).
  4. BRaTs: Brain tumor MRI segmentation.
  5. Decathlon-Lung: Lung cancer CT segmentation.

Key Insights and Ideas

  • Efficiency is Accuracy: The authors argue that the "unsatisfactory robustness" of previous hybrid models stems from their inefficiency. By making the attention mechanism leaner, the model can be more robust and easier to train.
  • Spatial-Channel Synergy: Most models focus on spatial relationships. UNETR++ explicitly captures the inter-dependencies between feature channels, which helps the model understand what features are important, not just where they are.
  • Shared Weights as Communication: Sharing $Q$ and $K$ weights isn't just a compression trick; it forces the spatial and channel branches to be "mutually informed," leading to more enriched feature representations.

Key Results

UNETR++ sets a new bar for the efficiency-accuracy frontier in medical AI.

  • State-of-the-Art Performance: On the Synapse dataset, it achieved a Dice Score of 87.2%, outperforming the previous best (nnFormer).
  • Massive Efficiency Gains: Compared to nnFormer, UNETR++ reduces parameters from 150.5M to 42.96M and FLOPs from 213.4G to 47.98G—a reduction of over 71% in both categories.
  • Qualitative Superiority: As shown in Figure 1, UNETR++ accurately segments challenging organs like the right kidney and gallbladder, where the baseline UNETR often confuses them or produces "leaky" boundaries.
Figure 1. Left: Qualitative comparison between the baseline UNETR [13] and our UNETR++ on Synapse. We present two examples containing multiple organs. Each inaccurate segmented region is marked with a white dashed box. In the first row, UNETR struggles to accurately segment the right kidney (RKid) and confuses it with gallbladder (Gal). Further, both the stomach (Sto) and left adrenal gland (LAG) tissues are inaccurately segmented. In the second row, UNETR struggles to segment the whole spleen and mixes it with stomach (Sto) and portal and splenic veins (PSV). Moreover, it under and over-segments certain organs (e.g., PSV and Sto). In comparison, our UNETR++ that efficiently encodes enriched inter-dependent spatial and channel features within the proposed EPA block, accurately seg- ments all organs in these examples. Best viewed zoomed in. Additional qualitative comparisons are presented in Fig. 4 and supplementary material. Right: Accuracy (Dice score) vs. model complexity (FLOPs and parameters) comparison on Synapse. Compared to best existing nnFormer [36], UNETR++ achieves better segmentation performance while significantly reduces the model complexity by over 71%.

Limitations and Future Work

Despite its success, the authors noted that UNETR++ (like other SOTA models) still struggles with outlier cases involving organs with abnormal geometric shapes or extremely thin borders. They attribute this to the limited availability of such "abnormal" samples in standard training sets.

Future Work: The team plans to address these edge cases by exploring advanced geometric data augmentation techniques during the pre-processing stage to better prepare the model for rare anatomical variations.

Summary updated

BibTeX
@article{shaker2024unetr,
  author = {Abdelrahman Shaker and Muhammad Maaz and Hanoona Rasheed and Salman Khan and Ming-Hsuan Yang and Fahad Shahbaz Khan},
  title = {{UNETR++: Delving into Efficient and Accurate 3D Medical Image Segmentation}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2024},
  doi = {10.1109/tmi.2024.3398728},
}
Figure