Star Panoptic Quality: Selectively Evaluating Split and Merged Instances
Authors: Erik Großkopf, Paula Tamara Buzduga, Hendrik Möller, Florian Kofler
Organizations: Hertie Institute for AI in Brain Health, University of Tübingen, Tübingen, Germany · Department of Neuroradiology, TUM University Hospital, Munich, Germany · Chair for AI in Healthcare and Medicine, Technical University of Munich (TUM), Munich, Germany · AI for Image-Guided Diagnosis and Therapy, TUM School of Medicine and Health, Technical University of Munich, Munich, Germany · Department of Quantitative Biomedicine, University of Zurich, Zurich, Switzerland · Helmholtz AI, Helmholtz Munich, Neuherberg, Germany
Detecting individual instances is crucial for many segmentation problems. However, expert instance annotations are often unavailable, so instances are approximated heuristically (e.g., as connected components of semantic maps), which can merge touching objects or split fragmented ones. Even when expert annotations exist, expert disagreement or structural delineation biases can yield split or merged reference instances, corresponding to over- or under-segmentation, respectively. Panoptic Quality (PQ) and related metrics capture both segmentation and detection quality while weighting all instances equally, regardless of size. Yet when the references are biased, these metrics can neither detect split or merged instances nor distinguish valid from invalid overor under-segmentation. We present Star Panoptic Quality (StarPQ), a novel evaluation ramework, which closes this gap in two steps: First, we construct a so-called star forest in the bipartite graph whose clean, merge, and split stars isolate different failure modes. Second, we calculate the final metric by individually weighting each failure mode, allowing practitioners to account for instance delineation biases. Across various experiments, we demonstrate that StarPQ not only enables targeted penalization or eniency towards specific failure modes, but also serves as a diagnostic tool to reveal their prevalence.
Figures & tables
Figure 1: For a given image 1(a) , we show its semantic map 1(b) and instance map 1(c) . In many segmentation datasets, instance maps do not exist. Hence, practitioners resort to recovering instance maps from semantic maps, e.g., via connected components 1(d) , a process that is error-prone. In this example, mutually occluding elephants in the left herd merge into a single instance (purple), while partial occlusion by the tree wrongfully splits the right elephant into two instances (blue and green). Thus, not a single elephant is recovered correctly.
Figure 2: For the given reference (blue) and prediction (yellow) maps 2(a) , we show the bipartite overlap graph 2(b) with edges corresponding to overlapping pairs of reference and prediction instances and IoU as edge weight (predictions are offset horizontally for readability of edges). Panoptic Quality’s matching 2(c) selects all edges with IoU>0.5 , yielding a one-to-one assignment, whereas StarPQ’s star forest construction 2(d) permits assignment of many predictions to one reference (split star, top), one prediction to one reference (clean star, center), and many references to one prediction (merge star, bottom). The reference instance s is the center of a split star with two leaf prediction instances. The prediction instance m is the center of a merge star with two leaf reference instances.
Figure 3: Overlapping reference (blue) and prediction (yellow) maps (left) and candidate graph C (right) of the example in Fig. 2 . An arrow l→c is drawn wherever the intersection over leaf is greater than 0.5 and is labeled with that value. The top component is a chain ending in a mutual pair, the middle component is a mutual pair, and the bottom component is already a star, with two leaves on the left pointing to one center on the right.
Figure 4: Response of IoU, PQ, and StarPQ (threshold τ=0 ) to increasing overlap. Left: Initial configuration, in which the predictions (yellow) do not overlap the references (blue). The bottom prediction circle and the top reference circle are fragmented into three instances. The arrow indicates the horizontal offset applied to the predictions, which is the x-axis of both plots. Middle: Global IoU, PQ, and StarPQ as a function of this offset. PQ rises in a single step when the middle circles exceed the 0.5 IoU matching threshold. StarPQ shows this step earlier ( ∼ 70px), as well as additional steps where fragments of the split segments satisfy the leaf criterion. Right: Recognition Quality of PQ and StarPQ as a function of the offset. When predictions and references overlap at the end of the shift, PQ’s RQ reports 0.2, since 2 out of 10 segments are matched. In contrast, StarPQ’s RQ reports a perfect score when λsplit=λmerge=0 , because all segments are matched (one merge, one clean, and one split star). StarPQ’s SQ curve is invariant to the configuration of λsplit or λmerge .
Figure 5: Examples of classes where CC recovered most of the instances cleanly (clock, microwave, and baseball glove) and where the fewest instances could be recovered 1:1 (skis, sheep, and donut). The first row shows images, the second row instance maps recovered by CC, and the third row instance maps recovered by CC + watershed. Isolated instances can often be cleanly recovered, whereas mutually occluding or touching instances, such as herd animals or donuts, are merged by CC. Watershed can additionally separate compact, disk-like shapes such as donuts.
(a) Connected components (CC)
Instances %
StarPQ
Class
Clean
Split
Merge
(1,0)
(0,1)
PQ
clock
98.9
0.4
0.7
99.1
99.8
98.7
microwave
98.1
1.9
0.0
99.1
100.0
99.0
baseball glove
97.3
0.7
2.0
99.7
99.3
98.5
skis
24.9
73.0
0.0
62.7
97.6
42.8
Table 1: Instance approximation of COCO panoptic val2017 thing classes by (a) connected components and (b) connected components, split by a distance-transform watershed. Clean, split, and merge: percentage of the reference instances recovered one-to-one, over-segmented, or absorbed into a merge. The remaining reference instances are unmatched. StarPQ at (λsplit,λmerge) as labeled, and all ×100 . Rows: the 3 classes with the highest and the lowest clean percentage in (a), sorted in descending order, in the same order in (b). Touching or mutually occluding instances of classes like sheep or donuts are systematically merged by CC. When such a CC map serves as the reference, a model that correctly separates these instances produces splits, which the configuration lenient towards oversegmentation (λsplit=0,λmerge=1) forgives.
Figure 6: Illustrative example of MRI metastases annotations of the same slice by three experts (a)–(c) and a majority vote (d) , acting as the reference, in which a pixel is labeled if at least two of the three experts labeled it. The majority vote coincides with the instance delineation of expert 1. Expert 2 splits the top instance (s) into two instances, and expert 3 merges the two bottom instances ( m1 and m2 ) into one.
PQ
StarPQ ( λ=1 )
StarPQ (instance λ )
Score
RQ
Score
RQ
Score
RQ
(a) Expert 1
91.1
100.0
91.1
100.0
91.1
100.0
(b) Expert 2
67.9
72.7
83.8
90.9
92.2
100.0
(c) Expert 3
74.1
88.9
82.8
88.9
93.1
100.0
Table 2: Scores of each expert in Fig. 6 against the majority vote. Expert 1 scores a perfect RQ across all configurations. PQ’s RQ and StarPQ’s RQ with λ=1 penalize both the split of expert 2 and the merge of expert 3. We construct the star forest for each expert annotation map against the majority vote and use the detected splits and merges to model leniency via λsplit and λmerge at an instance level for StarPQ, here with λsplit=0 for s and λmerge=0 for m1 and m2 . The instance-level configuration (instance λ ) lets each expert score a perfect RQ.
Instances %
StarPQ
Model
Clean
Split
Merge
(1,0)
(0,1)
PQ
M2F Swin-L
70.2
1.6
5.1
65.0
64.8
62.6
M2F Swin-B
66.2
1.8
5.3
62.0
61.9
59.6
MF Swin-B
64.8
2.6
4.7
57.9
58.1
55.4
FPN RN-50
49.2
0.9
4.0
50.1
49.8
48.3
Table 3: Models on the 80 thing classes of COCO panoptic val2017, sorted by PQ from high to low. M2F: Mask2Former; MF: MaskFormer; FPN: Panoptic FPN; RN-50: ResNet-50; Swin-B and Swin-L: Swin base and large. Clean, split and merge: percentage of the reference instances recovered One-to-One, over-segmented, or absorbed into a merge. StarPQ at (λsplit,λmerge) as labeled and all ×100 . Every column is the mean over the classes.
Instances %
StarPQ
Model
Clean
Split
Merge
(1,0)
(0,1)
PQ
M2F Swin-L
62.1
0.5
9.2
61.3
59.9
58.2
M2F Swin-B
62.1
0.6
9.0
60.6
59.3
57.6
M2F Swin-S
59.8
0.9
9.9
59.2
57.9
55.7
M2F Swin-T
60.5
0.7
8.6
58.3
57.1
55.1
Table 4: Models on the 8 thing classes of Cityscapes panoptic val, sorted by PQ from high to low. M2F: Mask2Former; Swin-T, Swin-S, Swin-B and Swin-L: Swin tiny, small, base and large. Clean, split and merge: percentage of the reference instances recovered One-to-One, over-segmented, or absorbed into a merge. StarPQ at (λsplit,λmerge) as labeled and all ×100 . Every column is the mean over the classes.