TL;DR
This paper demonstrates that shifting from per-pixel classification to mask-level recognition significantly improves a model's ability to detect out-of-distribution (OOD) objects in complex scenes. By ensembling anomaly scores across predicted masks (a method called EAM), the authors achieve new state-of-the-art results in outlier-aware semantic and panoptic segmentation.
What Problem Does This Paper Address?
Standard deep learning models for semantic segmentation are typically "closed-set," meaning they are trained to categorize every pixel into a fixed set of known classes. However, in "in the wild" applications like autonomous driving, models frequently encounter objects they haven't seen before—outliers or OOD samples.
Traditional approaches treat this as a per-pixel classification problem. This has two major drawbacks:
- Independence Assumption: It ignores the fact that neighboring pixels are highly correlated (they usually belong to the same object).
- Semantic Borders: Per-pixel models often produce high uncertainty at the borders between two known objects, leading to frequent false-positive anomaly detections.
Methods
The authors build upon Mask2Former, an architecture that decouples localization from recognition. Instead of classifying pixels, the model predicts a set of binary masks and a single class label for each mask.
The core contribution is a new scoring function for anomalies:
- EAM (Ensemble over Anomaly scores of Mask-wide predictions): The model calculates an anomaly score for each predicted mask. These mask-level scores are then redistributed back to the pixels based on the mask assignment weights. This allows the model to aggregate evidence across entire regions rather than making isolated pixel-level guesses.
Additionally, the authors propose a simple but effective way to use negative supervision. They paste objects from unrelated datasets (like ADE20K) into training images and label them as the "void" class. This teaches the masks to "steer clear" of unknown content without requiring complex new loss functions.
Datasets
The approach was evaluated on several rigorous benchmarks for outlier detection:
- SMIYC (Segment Me If You Can): Features real-world anomalies in diverse environments, split into AnomalyTrack (large objects) and ObstacleTrack (small road hazards).
- Fishyscapes: A standard benchmark for urban driving anomalies, including the Static and LostAndFound tracks.
- MS COCO: Adapted for outlier-aware panoptic segmentation by relabeling 20% of "thing" classes as unknown during training.
- Training Data: Models were primarily trained on Cityscapes and Mapillary Vistas, using ADE20K for negative samples.
Key Insights and Ideas
- Implicit Aggregation: Mask-level recognition succeeds because it naturally respects object boundaries. By classifying a whole mask, the model uses the collective evidence of all pixels in that region, which is statistically much more powerful than per-pixel evidence.
- Reducing Border Noise: Standard ensembling methods (AEM) often flag semantic borders as anomalous because pixel assignments are split between two masks. EAM avoids this by ensembling the anomaly scores themselves; if both adjacent masks are confident in their respective (different) classes, the EAM score remains low.
- Mask Abundance: The authors found that using a large number of masks (e.g., $N=100$) significantly improves OOD performance, as it gives the model more flexibility to capture and then reject complex outlier shapes.
Key Results
The proposed M2F-EAM model set new state-of-the-art (SOTA) records across multiple benchmarks:
- SMIYC: Achieved an Average Precision (AP) of 93.8% on AnomalyTrack and 92.9% on ObstacleTrack, significantly outperforming previous methods like DenseHybrid and SynBoost.
- Fishyscapes: Reached 93.6% AP on FS Static and 63.5% AP on FS LostAndFound.
- Panoptic Segmentation: On the modified MS COCO benchmark, the model outperformed the previous SOTA (EOPSN) in detecting unknown classes while maintaining higher accuracy on known classes.
Limitations and Future Work
The primary limitation is that the model may still produce high-confidence false negatives if an outlier object closely resembles a known class (e.g., a rare animal that looks like a dog). While negative training data helps, it cannot cover every possible real-world variation.
Future research directions include:
- Learning with more sophisticated synthetic negatives.
- Modeling the probabilistic density of mask-wide descriptors to better define the "boundary" of known classes.
Summary updated