# UNet++: A Nested U-Net Architecture for Medical Image Segmentation

Nested dense skip pathways narrow the semantic gap in segmentation networks

Zongwei Zhou, Md Mahfuzur Rahman Siddiquee, Nima Tajbakhsh, Jianming Liang · arXiv · 2018-7-18

- **Problem** Plain U-Net skip connections fuse encoder and decoder feature maps that differ too much in semantic level. The network then faces a harder learning task, which hurts segmentation accuracy.
- **Method** UNet++ puts a nested series of dense convolution blocks on each skip pathway. Encoder features are enriched before they meet the decoder, so the two sides are closer in semantic level.
- **Results** With deep supervision, UNet++ averaged 3.9 IoU points above U-Net. Against wide U-Net, the gain was 3.4 points.

## Where plain skip connections fall short

In medical images, even small boundary errors matter, because a missed spiculation can change how a nodule is judged. U-Net and FCN both rely on skip connections to bring fine spatial detail back into the output. Those skip connections join shallow, fine-grained encoder maps to a decoder whose maps are semantically coarser. The authors locate the weak point in that join.

The plain skip in U-Net passes high-resolution encoder maps straight to the decoder, so the two sides are fused while still semantically dissimilar. The authors argue that the network faces an easier learning task when the two maps are semantically closer. That argument is why the fix targets the join itself rather than the size of the network.

H-denseunet and the short skip connections studied by Drozdzal et al. share the same fusion pattern. According to the authors' experiments, fusing semantically dissimilar maps can degrade segmentation performance. GridNet lacks up-sampling between its skip connections, so the authors don't treat it as a representation of UNet++.

## Rebuilding the skip pathways as nested dense blocks

The core change is to put a dense convolution block on every skip pathway, so encoder maps are enriched before they meet the decoder. Each block moves the encoder features closer in semantic level to the decoder features they will be fused with. For example, the pathway from X 0,0 to X 1,3 uses three convolution layers, and each one is preceded by a concatenation.

Each node x i,j is defined by a recurrence, where i is the down-sampling level and j is the position along the skip pathway. For j = 0 the rule is \\\[x\_{i,j} = H(x\_{i-1,j})\\\] For j \> 0 the node concatenates all earlier outputs at its level with the up-sampled node from the lower pathway, then applies H, as \\\[x\_{i,j} = H\\big(\[\[x\_{i,k}\]\_{k=0}^{j-1}, U(x\_{i+1,j-1})\]\\big)\\\] Here H is a convolution followed by an activation function, U is an up-sampling layer, and the brackets denote concatenation.

The number of inputs to a node grows along the pathway. Level 0 nodes take one input, level 1 nodes take two, and a node at level j above 1 takes j+1 inputs. This is why every earlier output accumulates at the current node, as it would in a dense block.

## Training every top branch and choosing a branch at run time

Deep supervision attaches a loss to each of these four outputs during training. Each output passes through a 1x1 convolution and a sigmoid, and the loss combines binary cross-entropy with a dice term.

At inference the model has two modes. In accurate mode the four outputs are averaged, while in fast mode one branch supplies the final segmentation map. The chosen branch sets how much of the network is pruned, and so how much speed is gained.

Kernel counts double with each down-sampling level, following k = 32 × 2^i.

## Does UNet++ beat the parameter-matched baselines?

The authors compared UNet++, with and without deep supervision, against U-Net and a wide U-Net. The wide U-Net was sized to have a parameter count similar to UNet++, so that any gain isn't simply due to more parameters.

Without deep supervision, UNet++ improved average IoU by 2.8 points over U-Net and by 3.3 points over wide U-Net. With deep supervision the average gains rise to 3.9 and 3.4 points. So the nested design carries most of the gain, and deep supervision adds 0.6 points on average.

The gain isn't uniform across datasets, and the per-dataset values show where it sits. On liver, U-Net scored 76.62 IoU, wide U-Net 76.58 and UNet++ with deep supervision 82.90. On lung nodule the values were 71.47, 73.38 and 77.21 for the same three models. Wide U-Net edged past U-Net on cell nuclei, colon polyp and lung nodule, but not on liver.

Deep supervision helped on liver and lung nodule but lowered IoU on cell nuclei and colon polyp. On cell nuclei it moved from 92.63 to 92.52, and on colon polyp from 33.45 to 32.12. The authors tie the benefit to lesions and organs appearing at varying scales, but they don't test that link directly.

## Trading accuracy for faster inference

Because deep supervision gives each level its own output, UNet++ can be pruned at inference time. The timing was taken on processing 10k test images with one NVIDIA TITAN X (Pascal) with 12 GB memory. The authors refer to the pruned variants as UNet++ L followed by the level index.

Pruning to level L3 cut inference time by 32.2% on average. The IoU cost at that level was 0.6 points on average. More aggressive pruning cut time further but caused a large loss in segmentation accuracy.

## Limits of the evidence

The comparison covers four datasets, with 2D inputs for three of them and 3D input for lung nodule. Each number is a single IoU value per dataset, and the text shows no spread across runs.

Deep supervision lowers IoU on cell nuclei and colon polyp, so it isn't a uniform improvement. The scale explanation for the liver and lung nodule gains is not measured separately. Pruning past level L3 costs accuracy quickly.

The authors suggest UNet++ can serve as the backbone of Mask-RCNN, but this paper doesn't include those results. Those results are pointed to in supplementary material, outside this text.

## Paper info

- **Authors**: Zongwei Zhou, Md Mahfuzur Rahman Siddiquee, Nima Tajbakhsh, Jianming Liang
- **Venue**: arXiv · Preprint
- **First published**: 2018-7-18
- **Added**: 2026-11-11
- **Updated**: 2018-7-18
- **Version**: v1
- **arXiv**: 1807.10165
- **Category**: cs.CV · cs.LG · eess.IV · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1807.10165v1) · [PDF ↗](https://arxiv.org/pdf/1807.10165v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Zongwei Zhou, Md Mahfuzur Rahman Siddiquee, Nima Tajbakhsh, Jianming Liang (2018). UNet++: A Nested U-Net Architecture for Medical Image Segmentation. arXiv:1807.10165v1. https://arxiv.org/abs/1807.10165v1

**BibTeX**

```
@misc{zhou2018unet,
  title = {{UNet++: A Nested U-Net Architecture for Medical Image Segmentation}},
  author = {Zongwei Zhou and Md Mahfuzur Rahman Siddiquee and Nima Tajbakhsh and Jianming Liang},
  year = {2018},
  eprint = {1807.10165},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.10165v1}
}
```

## Other paper commentary

- [Identity Mappings in Deep Residual Networks](https://refivu.com/en/papers/4dcb24a4-8fe8-4b2a-b957-a69e3f0212b0-identity-mappings-in-deep-residual-networks.md)
- [Perceptual Losses for Real-Time Style Transfer and Super-Resolution](https://refivu.com/en/papers/780825d2-51b4-4426-9340-0f1859a637a2-perceptual-losses-for-real-time-style-transfer-and.md)
- [Learning Deep Features for Discriminative Localization](https://refivu.com/en/papers/6bdcd2a6-8c81-46b4-95d2-9560f97fd427-learning-deep-features-for-discriminative-localization.md)
- [V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation](https://refivu.com/en/papers/a6e119c3-3c19-41b0-afee-c1d81e538a35-v-net-fully-convolutional-neural-networks-for-volumetric.md)
- [Aggregated Residual Transformations for Deep Neural Networks](https://refivu.com/en/papers/e793fb66-bc1f-4ced-89ed-5f634b4590ea-aggregated-residual-transformations-for-deep-neural-networks.md)
- [YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors](https://refivu.com/en/papers/c2cb4858-244f-407a-916b-4d41a9df7d4f-yolov7-trainable-bag-of-freebies-sets-new-state.md)
- [Training Verifiers to Solve Math Word Problems](https://refivu.com/en/papers/6eaa7788-f79e-40b8-87b7-3ca3217edfe9-training-verifiers-to-solve-math-word-problems.md)
- [node2vec: Scalable Feature Learning for Networks](https://refivu.com/en/papers/dc0725e4-ec21-4d60-9363-0eac2fc69a10-node2vec-scalable-feature-learning-for-networks.md)
- [Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AI](https://refivu.com/en/papers/3f686a20-03db-4642-80bb-f85fafc1d04f-explainable-artificial-intelligence-xai-concepts-taxonomies.md)
- [Stop Explaining Black Box Machine Learning Models for High Stakes Decisions and Use Interpretable Models Instead](https://refivu.com/en/papers/96d240ca-7c32-4f79-8167-c2beafc2a38f-stop-explaining-black-box-machine-learning-models-for.md)

## Terms in this paper

- [IoU](https://refivu.com/en/terms/49f3d09602a9-iou)
- [skip connections](https://refivu.com/en/terms/8c8a0a5eff69-skip-connections)
- [deep supervision](https://refivu.com/en/terms/5fe4f2985157-deep-supervision)
- [Liver](https://refivu.com/en/terms/c5c98978bf35-liver)
- [Lung Nodule](https://refivu.com/en/terms/29181d473dd6-lung-nodule)
- [Model pruning](https://refivu.com/en/terms/186785d53693-model-pruning)
- [UNet++](https://refivu.com/en/terms/59c7561b892e-unet)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/156db9ed-e303-494d-af9e-c37b8715a287-unet-a-nested-u-net-architecture-for-medical)
