Abstract
Instance segmentation evaluation currently relies on metrics like mean Average Precision (mAP), which are often criticized for being "jittery" and insensitive to incremental improvements in mask quality. This paper introduces SortedAP, a novel evaluation metric designed to provide a smoother, more reliable measure of model performance. By employing the Hungarian algorithm for optimal matching and calculating the area under the precision curve across all possible overlap thresholds, SortedAP achieves superior sensitivity and continuity compared to traditional quantized metrics.
Introduction
In the field of instance segmentation, the goal is twofold: identifying the presence of objects (detection) and accurately delineating their boundaries (segmentation). For years, the industry standard for evaluating these tasks has been mean Average Precision (mAP). However, mAP suffers from several inherent "blind spots" that can hinder the development of high-precision models.
The primary issue lies in the Threshold Dilemma. Standard mAP typically checks if a predicted mask overlaps with the ground truth at specific, discrete intervals (e.g., 50%, 55%, ..., 95% IoU). This quantization means that if a mask’s quality improves from 51% to 54% overlap, the mAP score remains unchanged. Conversely, a minor drop from 51% to 49% can cause an abrupt crash in the score. This lack of continuity makes it difficult for researchers to track fine-grained progress during model optimization.
The SortedAP Framework
To address these limitations, the authors propose SortedAP, which introduces two major innovations to the evaluation pipeline:
1. Globally Optimal Matching
Standard mAP implementations often use a "greedy" matching strategy, which typically requires a minimum Intersection over Union (IoU) of 0.5 to ensure a one-to-one mapping between predictions and ground truths. SortedAP replaces this with the Hungarian Algorithm, which finds the globally optimal one-to-one matching. This mathematical shift allows the metric to consider matches even with very low overlap (IoU < 0.5) without compromising the logical integrity of the metric.
2. Continuous Integration of Precision
Instead of sampling precision at fixed IoU intervals, SortedAP treats the evaluation as a continuous problem. It identifies the exact IoU values where each matched object would "fail" if the threshold were raised. By sorting these IoU values as "turning points" where the Average Precision score drops, the final SortedAP score is calculated as the integral (the area under the curve) of the AP score across the entire IoU domain from 0 to 1. In this sense, SortedAP can be viewed as the "true" version of the curve that mAP only roughly approximates via Riemann sums.
Experimental Validation
The researchers validated SortedAP using two primary bioimage datasets characterized by high instance density and complex overlaps: the CVPPP (Leaf Segmentation Challenge) and the CervicalCell Dataset.
Beyond standard benchmarks, the authors utilized simulated degradations to test the metrics' robustness. By taking perfect ground truth data and systematically introducing noise, eroding pixels, or adding false positives, they could observe how different metrics reacted to gradual model failure.
Key Insights and Results
The experiments revealed several critical advantages of SortedAP:
- Monotonicity and Smoothness: In "Pixel Removal" and "Object Erosion" tests, SortedAP was the only metric that decreased linearly and smoothly. In contrast, mAP and Panoptic Quality (PQ) exhibited "staircase" patterns or sudden cliffs, failing to reflect gradual quality loss.
- Robust Penalty for False Positives: In tests involving incremental false positives, SortedAP correctly penalized every additional error. Other metrics, such as Symmetric Best Dice (SBD), were found to hit a plateau, failing to reflect increasing error rates once a certain threshold was reached.
- High Resolution: SortedAP can distinguish between two models that mAP might rate as identical simply because their performance differences fall between the standard 0.05 IoU step sizes.
Discussion and Limitations
While SortedAP is mathematically superior in its sensitivity and continuity, it does come with a higher computational cost due to the use of the Hungarian algorithm. However, the authors note that this overhead is generally negligible compared to the time required for model training.
A larger hurdle is the entrenchment of the computer vision community in COCO-style mAP. To encourage adoption, the authors have provided a toolkit, emphasizing that an ideal metric should be sensitive (every error counts), continuous (small changes cause small adjustments), and equal (all objects matter regardless of size). SortedAP is designed to meet all three criteria, providing a more granular lens for the next generation of instance segmentation research.
Conclusion
SortedAP rethinks the foundations of instance segmentation evaluation. By moving away from arbitrary thresholds and toward a continuous, integral-based approach, it offers a metric that is both more informative for researchers and more reflective of true model quality. As the field moves toward higher precision requirements, especially in medical and biological imaging, metrics like SortedAP will be essential for accurately measuring progress.
Summary updated