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

Samuel Marschall, Kira Maag

TL;DR

Standard semantic segmentation models often fail when they encounter "unknown" objects not seen during training. This paper proposes a novel approach using class-agnostic foreground-background models at multiple scales to identify these out-of-distribution (OOD) objects, significantly outperforming existing uncertainty-based baselines on critical autonomous driving benchmarks.

What Problem Does This Paper Address?

Deep neural networks for semantic segmentation are typically trained on a "closed set" of classes (e.g., car, person, road). When these models encounter an object they weren't trained on—like a stray animal or a lost cargo box on a highway—they often confidently misclassify it as a known category. In safety-critical applications like autonomous driving, this "Out-of-Distribution" (OOD) failure can be catastrophic.

The challenge is detecting these anomalies without needing to retrain the model on every possible object in the world. Current methods often rely on measuring the "uncertainty" of the primary segmentation model, but these measures can be unreliable if the model is overconfident in its wrong prediction.

Methods

The authors introduce a two-branch approach that focuses on confidence rather than just uncertainty:

  1. Multi-Scale Foreground-Background (FB) Branch: Instead of asking "What is this object?", the authors use models (like FOUND or CutLER) that ask "Is there an object here?" These FB models are class-agnostic. To handle objects of different sizes, the authors "slice" the input image into grids of varying patch sizes (from a single full image up to 1024 small patches). They aggregate the per-pixel confidence scores from these different scales into a single OOD score map.
  2. Semantic Uncertainty Branch (Optional): They also extract uncertainty information from a standard semantic segmentation model (DeepLabv3+). They specifically look at entropy (how "confused" the model is) and road probability (since OOD objects in driving scenes usually appear on the road).

The final OOD segmentation map is created by multiplying the multi-scale FB confidence map with the semantic uncertainty map. This fusion ensures that the system flags areas where an object is likely present but the primary classifier is uncertain.

Datasets

The method was evaluated on three challenging OOD benchmarks specifically designed for autonomous driving:

  • LostAndFound (test-NoKnown): Focuses on small obstacles on German roads.
  • RoadAnomaly21: Features unique, "weird" objects (like a giant rubber duck or a tank) in various environments.
  • RoadObstacle21: Contains real-world obstacles in diverse conditions like snow or highways.

Key Insights and Ideas

  • Class-Agnosticism is a Feature, Not a Bug: By using models trained for general foreground-background discovery (often via self-supervised learning on ImageNet), the system bypasses the "closed-world" limitation of standard segmentation.
  • Scale Matters: A single patch size might miss a tiny brick or a massive truck. Aggregating confidence across multiple scales (from 16 to 1024 patches) allows the model to "see" anomalies of any size.
  • Contextual Refinement: The authors found that semantic uncertainty helps most when the scene looks like the training data (e.g., standard city streets). However, the FB branch is the "heavy lifter" when the environment itself is unusual (e.g., snowy roads).

Key Results

The proposed method showed a massive performance leap over traditional baselines:

  • Superior Detection: On the RoadAnomaly21 and RoadObstacle21 datasets, the method achieved an AuPRC (Area under Precision-Recall Curve) of ~81%, representing an increase of more than 44 percentage points over standard uncertainty methods like Maximum Softmax or MC Dropout.
  • Lower False Alarms: The False Positive Rate at 95% True Positive Rate (FPR95) was significantly lower (9.9% and 2.0% for the two datasets, respectively), which is vital for preventing "phantom braking" in autonomous vehicles.
  • Benchmark Leader: The method outperformed the gradient-based PGN method, which was previously a top performer on the SegmentMeIfYouCan benchmark.

Limitations and Future Work

  • Computational Cost: Running multiple scales and two separate branches increases inference time. While the authors note that CutLER is more expensive than FOUND, the multi-patch approach still adds overhead.
  • FB Model Dependency: The system's success is tied to the quality of the underlying foreground-background model. If the FB model fails to distinguish an object from a complex background, the OOD detection will fail.
  • Future Directions: The authors suggest exploring non-uniform weightings for different scales and investigating how to better handle cases where the background itself is highly complex or out-of-distribution.

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