Discriminative out-of-distribution detection for semantic segmentation

Petra Bevandic, Ivan Kreso, Marin Orsic, Sinisa SegvicarXiv 2018

Semantic segmentation models for autonomous driving typically operate under a "closed-world" assumption, where every pixel must be mapped to a predefined set of classes. This paper addresses the critical safety challenge of encountering "Out-of-Distribution" (OOD) objects—such as fallen trees or animals—that were never seen during training.

The Uncertainty Dilemma

A major hurdle in OOD detection is distinguishing between aleatoric uncertainty (noise from blurry boundaries or lighting) and epistemic uncertainty (the model's lack of knowledge). Standard approaches, such as the "max-softmax" method, often fail because they flag every object border as OOD, creating significant false-positive noise.

Qualitative comparison of OOD detection methods. The proposed discriminative approach (right columns) successfully isolates unknown objects while remaining "calm" on standard road boundaries compared to baseline uncertainty maps (second column).

Methodology: The Discriminative Approach

Rather than relying on the primary segmentation model's internal confidence, the authors propose a dedicated discriminative OOD model. This model is trained as a binary classifier to distinguish between In-Distribution (ID) data and the rest of the visual world.

  • Proxy for the Unknown: The authors utilize the ILSVRC (ImageNet) dataset as a proxy for the OOD class. Despite some class overlap, ImageNet provides a sufficiently diverse representation of the "visual world" to train an effective "bouncer" model.
  • Architecture: The system uses a DenseNet-121 backbone trained on street scene datasets (Cityscapes and Mapillary Vistas) as ID and ImageNet as OOD.
  • Boundary Refinement: To improve pixel-level precision, the researchers developed a technique of pasting ImageNet objects onto driving scenes, forcing the model to learn sharp boundaries between known environments and unknown intruders.

Experimental Results

The proposed discriminative model significantly outperformed baselines on the WildDash benchmark, which is specifically designed to test driving models against OOD scenarios. While max-softmax baselines achieved only 10-19% Average Precision (AP), the proposed model reached up to 89.23% AP in specific configurations.

Visualizations confirm that the model successfully decouples boundary noise from genuine unknown objects. While standard models show high uncertainty on every road line and building edge, the discriminative model remains inactive until it encounters truly foreign objects, such as animals or indoor furniture placed on a road.

Conclusion and Future Work

By treating OOD detection as a separate discriminative task and using ImageNet as a world proxy, this approach provides a robust mechanism for identifying unknown hazards in autonomous driving. Future work aims to address class overlap between ID and OOD datasets and extend the framework to video data to ensure temporal consistency in detection.

Summary updated

BibTeX
@misc{bevandic2018discriminative,
  author = {Petra Bevandic and Ivan Kreso and Marin Orsic and Sinisa Segvic},
  title = {{Discriminative out-of-distribution detection for semantic segmentation}},
  year = {2018},
  eprint = {1808.07703},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.07703},
}
Figure