# Path Aggregation Network for Instance Segmentation

PANet shortens the path from low-level features to proposals for instance segmentation

Liu, Shu, Qi, Lu, Qin, Haifang, Shi, Jianping, Jia, Jiaya · arXiv · 2018-3-5

- **Problem** In FPN, low-level localization signals must cross 100+ layers to reach the top, and each proposal pools features from only one heuristically chosen level.
- **Method** PANet adds a short bottom-up path from the lowest level to the top, and lets each proposal pool features from all four levels instead of one.
- **Results** PANet with ResNet-50 scored 38.2 mask AP on test-dev, compared to 37.6 for the 2016 champion.

## Why low-level signals reach the top so slowly

Mask R-CNN predicts boxes, classes and instance masks, and it builds its features with an FPN. FPN's top-down path pushes semantically strong features down, but the edge and part cues in low layers have to travel far to reach the top. The CNN trunk from the low layers to the topmost one runs through 100+ layers, so accurate localization signals have a long way to go.

Each proposal also takes its features from one level chosen by its size, and that choice is heuristic. Two proposals that differ by only 10 pixels in size can land on different levels, although they look almost the same.

The authors identify three weak points: the long low-to-top path, the single-level pooling and the single-view mask prediction. The first two concern how information reaches the proposals, and the third concerns how each mask is predicted. PANet addresses these weak points in turn, starting from the feature hierarchy itself.

## A short bottom-up path from the low levels

The core idea is a second path that runs upward from the lowest level, so low-level cues reach the top in fewer than 10 layers. The authors call this a shortcut, set against the 100+ layer trunk of FPN. They argue that strong responses to edges or instance parts are a good sign of where an instance is, so this shortcut is worth building.

The levels are the FPN levels P2 to P5, and the new path starts from N2, which is P2 with no processing. Each step halves the spatial size, so the path climbs from P2 toward P5. Each block takes the finer map N\_i and the coarser map P\_{i+1}, and it produces N\_{i+1}.

First, a 3×3 convolution with stride 2 shrinks N\_i so that it matches the coarser grid. Then the result is added to P\_{i+1} through a lateral connection. A second 3×3 convolution turns that sum into N\_{i+1}, and every layer uses 256 channels with a ReLU.

Adding the path raised mask AP and box AP by more than 0.6 and 0.9, with or without adaptive pooling. The authors found the largest gain on large instances. They read this as evidence that information from lower feature levels is useful for the final prediction.

## Pooling each proposal from every level

Instead of assigning each proposal to one level, PANet pools its features from all four levels and fuses them. ROIAlign extracts a grid from each level, and an element-wise max or sum combines the grids. Each level's grid first passes through its own parameter layer, and only then is the fusion applied. For the box branch the fusion follows the first of the two fc layers, and for the mask branch it sits between the first and second convolutional layers.

To check that the levels are really mixed, the authors grouped proposals by their FPN level and measured where their pooled features came from. This analysis used max fusion. Small proposals originally on level 1 drew nearly 70% of their features from higher levels. Large proposals originally on level 4 drew 50%+ of their features from lower levels.

The authors take this as support that features from several levels help prediction, and as backing for the bottom-up path.

On val-2017, max and sum fusion gave nearly the same mask AP, 36.3 and 36.2. Placement mattered more: fusing after fc1 gave 36.3, compared to 35.7 when the fusion sat right after ROIAlign. The authors conclude that letting a parameter layer adapt grids from different levels matters most. This is why the final design fuses with max behind the first parameter layer.

## A fully-connected mask path beside the FCN

The core idea keeps Mask R-CNN's per-class FCN mask and adds a small fully-connected path that predicts one class-agnostic foreground mask. The two outputs are added to form the final mask.

An FCN gives each pixel a prediction from a local receptive field, and its weights are shared across spatial locations. An fc layer uses a different set of weights for each location and sees the whole proposal, so it can adapt to position. The authors argue that the two layer types are complementary, so fusing them gives better masks.

The FCN path has four consecutive 3×3 convolutions with 256 filters, followed by a deconvolution that doubles the resolution. The fc path starts from conv3 with two 3×3 convolutions, and the second one halves the channels. A single fc layer then outputs 784 values, reshaped to a 28×28 mask. Using one fc layer, rather than several, keeps the spatial map from being squeezed into a short vector too early.

Starting the fc path from conv3 with sum fusion gave 37.6 mask AP, compared to 36.9 for the baseline. Starting from conv2 gave 37.5, and starting from conv4 gave 37.2. Among the fusion operations tested, sum gave the highest mask AP, ahead of max at 37.1 and product at 36.9. The authors found that starting at conv3 with sum fusion worked best.

Across the full ablation, fully-connected fusion added 0.7 mask AP. The authors describe this gain as general across instance scales.

## COCO test-dev results against the 2016 champion

With ResNet-50 trained on multi-scale images and tested at a single scale, PANet scored 38.2 mask AP on test-dev. The 2016 champion scored 37.6, but it used a 6×ResNet-101 setup. The authors note that the champion relied on larger model ensembles and testing tricks.

On box AP, the same ResNet-50 model scored 42.5 on test-dev, compared to 41.6 for the 2016 detection champion. That champion combined 2×ResNet-101 with 3×Inception-ResNet-v2. The single-scale ResNet-50 model outperformed all other single-model entries in that table, including those built on ResNeXt-101.

The 2017 challenge entry scored 46.7 mask AP on test-dev. The ablation rows add DCN, testing tricks, a larger model and an ensemble one by one, so the score climbs from 38.2 to 46.7. The challenge result is therefore a system-level number, and it doesn't isolate the effect of the PANet modules.

## How the val-2017 gains add up

Starting from the re-implemented baseline at 33.4 mask AP, the full PANet scored 37.8 on val-2017. That is the 4.4 mask AP gain the authors report over the baseline. Table 3 adds each component in turn with ResNet-50 as the initial model, so every row builds on the one above.

Multi-scale training and multi-GPU synchronized batch normalization come first, and the authors say they help the network converge and generalize. The authors say half of the total improvement comes from these two strategies. Small and medium instances account for most of the gain.

The heavier head uses four shared 3×3 convolutions in place of two fc layers, and it raises box AP in the multi-task box branch. For mask AP and the independently trained detector, the change is minor. So the heavier head matters for the multi-task box branch, not for mask prediction.

## Cityscapes and MVD results

On Cityscapes, fine-only PANet scored 31.8 AP on the test subset, compared to 26.2 for Mask R-CNN trained on fine data only. The authors put the gap at 5.6 points. With COCO pre-training, PANet scored 36.4 on the test subset, compared to 32.0 for Mask R-CNN under the same setting.

On the val subset, the re-implemented baseline scored 33.1 AP, and adding multi-GPU synchronized batch normalization lifted it to 34.6. The full PANet added 1.9 points more and scored 36.5. These Cityscapes ablations use fine annotations only for training.

On MVD, the single-scale PANet scored 23.6 AP on val, compared to 22.8 for UCenter-Single. With test tricks, PANet scored 26.3 on the test subset, compared to 24.8 for UCenter-Ensemble. The authors say the single-scale result is comparable to the ensemble that uses COCO pre-training.

## Limitations

The component ablations use ResNet-50 on val-2017, and the Cityscapes ablation uses only the val subset. Adaptive pooling was compared with only max and sum fusion. The MVD experiments use ResNet-50 trained on the train subset. The challenge numbers add DCN, larger backbones, testing tricks and an ensemble, so they aren't a single-model comparison.

The gain from fully-connected fusion is 0.7 mask AP, and the heavier head barely moves mask AP. The authors call the extra computation subtle, but the text gives no timing or memory numbers. Proposals come from an independently trained RPN, so the backbone isn't shared with the detection and mask branches. The authors list extending the method to video and RGBD data as future work.

## Paper info

- **Authors**: Liu, Shu, Qi, Lu, Qin, Haifang, Shi, Jianping, Jia, Jiaya
- **Venue**: arXiv · Preprint
- **First published**: 2018-3-5
- **Added**: 2026-11-11
- **Updated**: 2018-9-18
- **Version**: v4
- **arXiv**: 1803.01534
- **Category**: cs.CV
- **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/1803.01534v4) · [PDF ↗](https://arxiv.org/pdf/1803.01534v4)

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

Liu, Shu, Qi, Lu, Qin, Haifang, Shi, Jianping, Jia, Jiaya (2018). Path Aggregation Network for Instance Segmentation. arXiv:1803.01534v4. https://arxiv.org/abs/1803.01534v4

**BibTeX**

```
@misc{shu2018path,
  title = {{Path Aggregation Network for Instance Segmentation}},
  author = {Liu, Shu and Qi, Lu and Qin, Haifang and Shi, Jianping and Jia, Jiaya},
  year = {2018},
  eprint = {1803.01534},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.01534v4}
}
```

## Other paper commentary

- [EfficientDet: Scalable and Efficient Object Detection](https://refivu.com/en/papers/bea70d85-5dca-48dc-8e51-707923164b9b-efficientdet-scalable-and-efficient-object-detection.md)
- [Rethinking Atrous Convolution for Semantic Image Segmentation](https://refivu.com/en/papers/d417603b-a8c0-438a-8aaf-2a2da3403f74-rethinking-atrous-convolution-for-semantic-image.md)
- [Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms](https://refivu.com/en/papers/a95484f1-3372-4671-ab1c-c9d084962641-fashion-mnist-a-novel-image-dataset-for-benchmarking.md)
- [Searching for MobileNetV3](https://refivu.com/en/papers/0831f87e-094f-403b-b55b-27cf192fd9c4-searching-for-mobilenetv3.md)
- [UNet++: A Nested U-Net Architecture for Medical Image Segmentation](https://refivu.com/en/papers/156db9ed-e303-494d-af9e-c37b8715a287-unet-a-nested-u-net-architecture-for-medical.md)
- [Identity Mappings in Deep Residual Networks](https://refivu.com/en/papers/4dcb24a4-8fe8-4b2a-b957-a69e3f0212b0-identity-mappings-in-deep-residual-networks.md)
- [DeepWalk: Online Learning of Social Representations](https://refivu.com/en/papers/dd05ed66-43b8-4f25-93ca-264ea076a439-deepwalk-online-learning-of-social-representations.md)
- [Gemini: A Family of Highly Capable Multimodal Models](https://refivu.com/en/papers/210f7673-6e80-4763-9ef2-d58f1a878648-gemini-a-family-of-highly-capable-multimodal-models.md)
- [Enriching Word Vectors with Subword Information](https://refivu.com/en/papers/c9e8d8e6-e24f-4128-8771-cadeb8b6c17e-enriching-word-vectors-with-subword-information.md)
- [DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models](https://refivu.com/en/papers/1de65a84-2d26-40df-8104-656807b7a166-deepseekmath-pushing-the-limits-of-mathematical-reasoning-in.md)

## Terms in this paper

- [Object detection](https://refivu.com/en/terms/113bfdb14049-object-detection)
- [COCO](https://refivu.com/en/terms/41f3215c4f4a-coco)
- [Cityscapes](https://refivu.com/en/terms/1067bb006500-cityscapes)
- [Mask R-CNN](https://refivu.com/en/terms/6da881f24c0c-mask-r-cnn)
- [ResNet-50](https://refivu.com/en/terms/eb2323a60a89-resnet-50)
- [instance segmentation](https://refivu.com/en/terms/c62f5b6c52fb-instance-segmentation)
- [FPN](https://refivu.com/en/terms/ad78e3a6bd84-fpn)
- [PANet](https://refivu.com/en/terms/98fd0cb88789-panet)
- [box AP](https://refivu.com/en/terms/850b2f2111cb-box-ap)
- [mask AP](https://refivu.com/en/terms/302e59e40633-mask-ap)
- [RoIAlign](https://refivu.com/en/terms/63bbc998a4d4-roialign)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/a3658986-d50d-4da4-997a-1b69d8a09d76-path-aggregation-network-for-instance-segmentation)
