# Panoptic Segmentation

A single output format unifies stuff and thing segmentation for scoring

Alexander Kirillov, Kaiming He, Ross Girshick, Carsten Rother, Piotr Dollár · arXiv · 2018-1-3

- **Problem** Stuff and thing segmentation have long been scored with different metrics and datasets, so no single score covered both. Systems for the two tasks also drift apart and can disagree at the same pixel.
- **Method** Panoptic segmentation asks for one semantic label and one instance id per pixel, so segments cannot overlap. The authors score this output with a new panoptic quality (PQ) metric.
- **Results** Human PQ was 69.6 on Cityscapes, compared to 61.2 for the machine panoptic baseline.

## Why stuff and things are scored apart

Stuff and things have long been studied as two separate jobs. Semantic segmentation gives every pixel a class label but treats all instances of a thing class as one region. Instance segmentation instead detects each object and outlines it, and its masks may overlap. The datasets, details and metrics for the two tasks vary a lot, so a system that does both is hard to score as one.

The methods drifted apart as well, since stuff classifiers are usually fully convolutional nets while object detectors are region-based. Running two such systems side by side can produce a stuff label and an object mask that disagree at the same pixel. That inconsistency is what the authors want a single coherent scene segmentation to avoid.

Earlier joint work on image parsing existed, but it used different output formats and separate metrics for stuff and things. Without a shared task or a shared score, the two fields stayed apart.

## One class and one instance id per pixel

The core idea is one output format that the ground truth and the algorithm share. Each pixel receives a semantic label and an instance id, and pixels with the same pair belong to the same object. For stuff labels the instance id is ignored, so all pixels of one stuff label form one region.

Because each pixel carries exactly one label and one id, segments can't overlap, which separates this format from instance segmentation. The format also generalizes semantic segmentation, since if every class is stuff, the two formats are identical. Ambiguous or out-of-class pixels can take a void label, so not every pixel needs a semantic label.

The authors drop the confidence scores that instance segmentation needs. Without scores, human annotations and machine outputs have the same form, so human consistency can be measured directly. Which classes count as stuff or things is left to the dataset creator.

## Matching segments and computing PQ

Two non-overlapping predictions against one ground truth segment have IoUs whose sum is at most 1, so at most one of them can pass 0.5. The authors use this to prove that each ground truth segment has at most one such partner, and the reverse holds too. Any reasonable matching strategy then gives the same pairs, so no complex matching problem has to be solved.

With the pairs fixed, each class splits into true positives, false positives and false negatives. PQ divides the summed IoU of the true positive pairs by the number of true positives plus half the false positives and half the false negatives. \\\[ \\mathrm{PQ} = \\frac{\\sum\_{(p,g)\\in TP} \\mathrm{IoU}(p,g)}{\|TP\| + \\tfrac{1}{2}\|FP\| + \\tfrac{1}{2}\|FN\|} \\\] The authors compute PQ per class and then average over classes, and every segment counts equally regardless of its area.

Multiplying and dividing by the number of true positives splits PQ into segmentation quality times recognition quality. \\\[ \\mathrm{PQ} = \\mathrm{SQ} \\times \\mathrm{RQ} \\\] SQ is the mean IoU of matched segments, and RQ is an F1 score. The two factors aren't independent, because SQ is measured only over matched segments.

Predicted pixels that fall on void ground truth are removed before IoU is computed, and unmatched predictions mostly lying in void regions don't count as false positives. Group regions are ignored during matching, and unmatched predictions that mostly fall inside a same-class group don't count as false positives either.

## Is the 0.5 threshold reasonable?

To test the cutoff, the authors drop it and match by maximum weighted bipartite matching, which maximizes the summed IoU. Under that matching, less than 16% of matches have IoU below 0.5, so a looser threshold should change little.

PQ at thresholds of 0.25 and 0.5 differs only slightly, while moving from 0.5 to 0.75 changes PQ more. The authors add that many matches at lower IoU are false matches. So they keep 0.5, because its matching is unique and simple to obtain.

## Tuning the SQ and RQ balance with alpha

The authors generalize the RQ F1 score with a parameter alpha that sets the penalty on errors. \\\[ \\mathrm{RQ}\_\\alpha = \\frac{\|TP\|}{\|TP\| + \\alpha\|FP\| + \\alpha\|FN\|} \\\] The default alpha is 0.5, which gives the usual F1 form.

Lowering alpha reduces the penalty on unmatched segments, so RQ rises while SQ stays the same. Because PQ is SQ times RQ, a smaller alpha shifts how much segmentation and recognition errors count in the final score. The authors suggest that a second parameter could weigh false positives against false negatives, but they don't report that experiment.

## What human annotators reach

The authors use doubly annotated images: 30 for Cityscapes, 64 for ADE20k and 46 for Vistas. One annotation serves as ground truth and the other as prediction, and PQ is symmetric in the two. Cityscapes and Vistas were labeled by different annotators, while one annotator relabeled the ADE20k images after six months.

Human PQ is 69.7 on Cityscapes, 67.1 on ADE20k and 57.5 on Vistas. The authors read these as annotator agreement rather than an upper bound on human consistency. They also note that class counts, annotated pixel shares and scene complexity differ across datasets, so the numbers shouldn't be compared directly.

On Cityscapes, PQ for stuff is 71.3 and PQ for things is 67.4. The two groups are close on Cityscapes and ADE20k, while the gap on Vistas is a bit larger. Per-class PQ spreads fairly evenly across stuff and thing classes, which the authors take as a sign the metric doesn't favor one group.

Scale matters most: on Cityscapes, RQ is 51.5 for small objects and 94.1 for large ones. The authors suggest annotators often have trouble finding small objects, though a small object that is found is segmented relatively well.

## How simple machine baselines compare

The baseline takes the outputs of leading instance and semantic systems and combines them with a heuristic. Instance predictions first go through an NMS-like pass, where each segment in confidence order loses pixels already claimed, and it is dropped if too little remains. In the merged output, thing segments win at overlapping pixels.

On Cityscapes, Mask R-CNN with COCO pretraining reaches AP 36.4 and thing PQ 79.4. Without COCO pretraining, the same system scores AP 31.5 and thing PQ 78.7, so AP and PQ move together here. On ADE20k, G-RMI has a mean IoU of 30.6 but stuff PQ of 19.3, compared to 32.3 and 27.4 for CASIA IV AJD. The authors trace this gap to G-RMI producing many small patches of classes absent from the image, which hurts PQ far more than mean IoU.

On Cityscapes, stuff PQ is 66.6 for the separate predictions and 66.4 after merging, while thing PQ stays at 54.0. Because overlaps go to things, merging leaves thing PQ unchanged and costs stuff a little.

On Cityscapes, human PQ is 69.6 and the machine panoptic baseline reaches 61.2. On ADE20k, human RQ is 78.6 and machine RQ is 43.2, while human SQ is 85.7 and machine SQ is 74.4. So the gap is widest in recognition, and the authors read this as classification being the main challenge for current methods. These comparisons use different test images and average over different classes, so they are only approximate.

## Limits of the evidence

Human consistency measured this way is an agreement level between annotators, not an upper bound on achievable performance. The human sample is small, with 30, 64 and 46 doubly annotated images, so the authors use bootstrapping with 5th and 95th percentile ranges. Human and machine PQ use different test images and omit some classes.

The machine side is one heuristic, which the authors call a likely suboptimal baseline. The authors also say their baselines are very strong, so simpler baselines may be fairer for future papers. Experiments cover Cityscapes, ADE20k and Mapillary Vistas, and COCO is left for future work. The threshold and alpha checks are reported on the human data, so their behavior on machine outputs isn't shown.

## Paper info

- **Authors**: Alexander Kirillov, Kaiming He, Ross Girshick, Carsten Rother, Piotr Dollár
- **Venue**: arXiv · Preprint
- **First published**: 2018-1-3
- **Added**: 2026-11-13
- **Updated**: 2019-4-10
- **Version**: v3
- **arXiv**: 1801.00868
- **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/1801.00868v3) · [PDF ↗](https://arxiv.org/pdf/1801.00868v3)

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

Alexander Kirillov, Kaiming He, Ross Girshick, Carsten Rother, Piotr Dollár (2018). Panoptic Segmentation. arXiv:1801.00868v3. https://arxiv.org/abs/1801.00868v3

**BibTeX**

```
@misc{kirillov2018panoptic,
  title = {{Panoptic Segmentation}},
  author = {Alexander Kirillov and Kaiming He and Ross Girshick and Carsten Rother and Piotr Dollár},
  year = {2018},
  eprint = {1801.00868},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.00868v3}
}
```

## Other paper commentary

- [Fast Underwater Image Enhancement for Improved Visual Perception](https://refivu.com/en/papers/3952933f-2406-4db3-9d2c-43621581b5b2-fast-underwater-image-enhancement-for-improved-visual.md)
- [Kindling the Darkness: A Practical Low-light Image Enhancer](https://refivu.com/en/papers/e0950d09-0e10-4409-aac5-8ad757e499cc-kindling-the-darkness-a-practical-low-light-image.md)
- [Deep Generative Image Models using a Laplacian Pyramid of Adversarial Networks](https://refivu.com/en/papers/bb403729-1f3c-4c78-a4d7-1f9c9ea6cd8f-deep-generative-image-models-using-a-laplacian-pyramid.md)
- [Wider or Deeper: Revisiting the ResNet Model for Visual Recognition](https://refivu.com/en/papers/92402cc1-8a47-44e2-ab4e-68cd6d212e9b-wider-or-deeper-revisiting-the-resnet-model-for.md)
- [Moment Matching for Multi-Source Domain Adaptation](https://refivu.com/en/papers/8dd0a99c-d46a-4b5e-bfd0-6d72f38da2fc-moment-matching-for-multi-source-domain-adaptation.md)
- [Variational image compression with a scale hyperprior](https://refivu.com/en/papers/862ebff4-6ece-4ccf-a0cf-aa1b89192db4-variational-image-compression-with-a-scale-hyperprior.md)
- [Heterogeneous Graph Transformer](https://refivu.com/en/papers/f71bb06f-968c-4006-81b4-63b69f07a087-heterogeneous-graph-transformer.md)
- [Zero-Shot Learning -- A Comprehensive Evaluation of the Good, the Bad and the Ugly](https://refivu.com/en/papers/b2424a9a-08ad-4ff8-86b0-d8e0b3d11aaf-zero-shot-learning-a-comprehensive-evaluation-of-the.md)
- [Deep Convolutional Networks on Graph-Structured Data](https://refivu.com/en/papers/b94a76bd-69b6-41d9-9dc2-a50ec07493aa-deep-convolutional-networks-on-graph-structured-data.md)
- [$π\_{0.5}$: a Vision-Language-Action Model with Open-World Generalization](https://refivu.com/en/papers/754e7c9a-2cc7-4f07-8b66-7ff8cff6a4c6-0-5-a-vision-language-action-model-with.md)

## Terms in this paper

- [Semantic segmentation](https://refivu.com/en/terms/00dfce7ec404-semantic-segmentation)
- [Cityscapes](https://refivu.com/en/terms/1067bb006500-cityscapes)
- [Mask R-CNN](https://refivu.com/en/terms/6da881f24c0c-mask-r-cnn)
- [Average Precision](https://refivu.com/en/terms/1764eaa249a6-average-precision)
- [ADE20K](https://refivu.com/en/terms/5adea765479c-ade20k)
- [instance segmentation](https://refivu.com/en/terms/c62f5b6c52fb-instance-segmentation)
- [mean IoU](https://refivu.com/en/terms/5fcf149d794a-mean-iou)
- [Intersection over Union (IoU)](https://refivu.com/en/terms/fd2d9ae89f7a-intersection-over-union-iou)
- [panoptic segmentation](https://refivu.com/en/terms/0fdb08320aa0-panoptic-segmentation)
- [PSPNet](https://refivu.com/en/terms/4b8472ef213d-pspnet)
- [Theorem 1](https://refivu.com/en/terms/bef18c102f5e-theorem-1)
- [Mapillary Vistas](https://refivu.com/en/terms/3bbe7487e044-mapillary-vistas)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/dd0aa8a4-d18c-432a-aa71-a94345749b15-panoptic-segmentation)
