Abstract
Most dense recognition approaches bring a separate decision in each particular pixel. These approaches deliver competitive performance in usual closed-set setups. However, important applications in the wild typically require strong performance in presence of outliers. We show that this demanding setup greatly benefits from mask-level predictions, even in the case of non-finetuned baseline models. Moreover, we propose an alternative formulation of dense recognition uncertainty that effectively reduces false positive responses at semantic borders. The proposed formulation produces a further improvement over a very strong baseline and sets the new state of the art in outlier-aware semantic segmentation with and without training on negative data. Our contributions also lead to performance improvement in a recent panoptic setup. In-depth experiments confirm that our approach succeeds due to implicit aggregation of pixel-level cues into mask-level predictions.
Introduction
In the "closed-set" world of standard benchmarks, AI models only need to classify pixels into a fixed set of categories. However, in real-world scenarios like autonomous driving, models frequently encounter Out-of-Distribution (OOD) objects—such as a stray dog or fallen cargo—that do not fit into their training taxonomy. Traditional "per-pixel" segmentation models treat every pixel as an independent decision, which often leads to poor localization and "false positive" anomaly detections at the edges of known objects. This paper demonstrates that shifting to mask-level recognition significantly boosts a model's ability to detect these outliers.
Methodology
The researchers leverage the Mask2Former architecture, which decouples region localization from recognition. Instead of classifying individual pixels, the model generates a set of binary masks and assigns a single class probability to each.
A key technical contribution is the Ensemble over Anomaly scores of Mask-wide predictions (EAM). This novel uncertainty formulation calculates an anomaly score for a pixel by aggregating evidence from all masks that claim that pixel. By relying on mask-level consensus rather than isolated pixel data, the model becomes robust to noise and produces fewer false alarms at object boundaries. Additionally, the authors utilize auxiliary "negative" data by labeling it as a "void" class during training, teaching the model to steer clear of unknown regions without complex new loss functions.
Evaluation and Results
The approach was evaluated on several demanding benchmarks designed for scene understanding in the wild, including SMIYC (Segment Me If You Can), Fishyscapes, and Road Anomaly. It was also tested on a recent panoptic setup using MS COCO, where 20% of "thing" classes were treated as unknown.
The proposed M2F-EAM model achieved state-of-the-art results across the board:
- SMIYC Anomaly Track: Reached an Average Precision (AP) of 93.8%.
- Fishyscapes Static: Delivered an AP of 96.0% with a near-perfect False Positive Rate (FPR95) of 0.3%.
- Panoptic Segmentation: Outperformed previous benchmarks in detecting unknown "things" while maintaining high accuracy for known categories.
Discussion and Key Insights
The success of this approach is attributed to implicit aggregation. Because a mask covers an entire region, the model is forced to make a consensus decision, preventing the "speckle" noise common in per-pixel OOD detection. Furthermore, EAM effectively solves the boundary problem; by using mask-wide uncertainty, it correctly identifies that a pixel at a boundary is part of a known object's edge rather than a new anomaly.
A current limitation is that the model may still produce false positives if an outlier closely resembles a known class (e.g., a bear appearing similar to a dog in feature space). Future work may involve integrating synthetic negatives or exploring probabilistic density modeling at the mask level to further sharpen decision boundaries.
Conclusion
Shifting from per-pixel classification to mask-level recognition provides a powerful advantage for outlier-aware segmentation. By aggregating pixel-level cues into semantic masks and employing the EAM uncertainty formulation, the proposed method sets a new standard for robust scene understanding in complex, real-world environments.
Summary updated