Multi-Scale Foreground-Background Confidence for Out-of-Distribution Segmentation

Samuel Marschall, Kira Maag · DOI

Introduction

Standard semantic segmentation models in autonomous driving are typically trained on a fixed set of classes, such as cars, pedestrians, and roads. However, real-world environments frequently present "out-of-distribution" (OOD) objects—stray animals, debris, or unusual vehicles—that were never seen during training. When faced with these anomalies, traditional models often fail by confidently misclassifying them into known categories, posing a significant safety risk. This paper proposes a novel framework that shifts the focus from measuring model uncertainty to evaluating class-agnostic foreground-background confidence across multiple scales.

Methodology

The proposed approach utilizes a dual-branch architecture to generate a robust OOD score map.

Multi-Scale Foreground-Background (FB) Branch

The core innovation lies in using class-agnostic models (such as FOUND or CutLER) that are trained to distinguish any object from its background without identifying its specific class. To ensure the system can detect objects of varying sizes—from small road debris to large animals—the input image is "sliced" into grids of different patch sizes.

Overview of the multi-scale foreground-background segmentation pipeline.

As shown in the architecture diagram, confidence scores from these multiple scales are aggregated to form a comprehensive OOD map. This multi-scale approach ensures that the model remains sensitive to both fine-grained details and large-scale structures.

Semantic Uncertainty Branch

To further refine the detection, the system optionally incorporates a standard semantic segmentation model (e.g., DeepLabv3+). This branch extracts entropy maps (representing model confusion) and road probability maps. The final OOD segmentation is achieved by fusing the multi-scale FB confidence with these semantic uncertainty measures, effectively highlighting regions where an object is likely present but the primary classifier is uncertain.

Experimental Evaluation

The method was rigorously tested on three major autonomous driving OOD benchmarks: LostAndFound, RoadAnomaly21, and RoadObstacle21. These datasets present unique challenges, including small obstacles, "weird" objects like rubber ducks, and adverse weather conditions like snow.

Key Results

The multi-scale FB approach demonstrated a substantial performance improvement over traditional uncertainty-based baselines:

  • Detection Accuracy: On RoadAnomaly21 and RoadObstacle21, the method achieved an AuPRC (Area under Precision-Recall Curve) of approximately 81%, outperforming standard methods like Maximum Softmax by over 44 percentage points.
  • Reliability: The False Positive Rate (FPR95) was significantly reduced, reaching as low as 2.0% on some benchmarks, which is critical for minimizing unnecessary emergency braking in self-driving systems.
Qualitative OOD detection results across LostAndFound, RoadAnomaly21, and RoadObstacle21 datasets.

As illustrated in the qualitative results, the model successfully identifies diverse anomalies, including elephants on rural roads and small objects in complex urban scenes, even in the presence of snow.

Discussion and Limitations

While the multi-scale approach offers superior detection capabilities, it introduces additional computational overhead due to the processing of multiple image slices and dual branches. Furthermore, the system's performance is inherently tied to the quality of the underlying foreground-background model. Future research may focus on optimizing inference speed and developing more sophisticated weighting schemes for different scales to better handle complex backgrounds.

Conclusion

By moving beyond simple uncertainty metrics and leveraging multi-scale, class-agnostic object discovery, this work provides a more reliable path for OOD detection in safety-critical applications. The significant gains on established benchmarks suggest that multi-scale foreground-background confidence is a powerful tool for making autonomous systems more robust to the unpredictability of the real world.

Summary updated

BibTeX
@inproceedings{marschall2025multi,
  author = {Samuel Marschall and Kira Maag},
  title = {{Multi-Scale Foreground-Background Confidence for Out-of-Distribution Segmentation}},
  booktitle = {Visigrapp (2): Visapp},
  year = {2025},
  doi = {10.5220/0013241800003912},
}
Figure