SoftPQ: Robust Instance Segmentation Evaluation via Soft Matching and Tunable Thresholds
Ranit Karmakar, Simon F. Nørrelykke
TL;DR
SoftPQ addresses brittleness in segmentation evaluation by introducing soft matching with tunable thresholds and a sublinear penalty, enabling a continuous score that differentiates near-misses from major errors. It generalizes PQ and recovers the original PQ when $h=l=0.5$, providing backward compatibility. Controlled experiments show smoother, more interpretable responses to perturbations and greater robustness to over- and under-segmentation, as well as favorable real-world performance (e.g., on Cellpose outputs). This yields actionable feedback for model development and benchmarking across diverse domains, supporting safer and more effective iterative refinement of segmentation models.
Abstract
Segmentation evaluation metrics traditionally rely on binary decision logic: predictions are either correct or incorrect, based on rigid IoU thresholds. Detection--based metrics such as F1 and mAP determine correctness at the object level using fixed overlap cutoffs, while overlap--based metrics like Intersection over Union (IoU) and Dice operate at the pixel level, often overlooking instance--level structure. Panoptic Quality (PQ) attempts to unify detection and segmentation assessment, but it remains dependent on hard-threshold matching--treating predictions below the threshold as entirely incorrect. This binary framing obscures important distinctions between qualitatively different errors and fails to reward gradual model improvements. We propose SoftPQ, a flexible and interpretable instance segmentation metric that redefines evaluation as a graded continuum rather than a binary classification. SoftPQ introduces tunable upper and lower IoU thresholds to define a partial matching region and applies a sublinear penalty function to ambiguous or fragmented predictions. These extensions allow SoftPQ to exhibit smoother score behavior, greater robustness to structural segmentation errors, and more informative feedback for model development and evaluation. Through controlled perturbation experiments, we show that SoftPQ captures meaningful differences in segmentation quality that existing metrics overlook, making it a practical and principled alternative for both benchmarking and iterative model refinement.
