Simultaneous Semantic Segmentation and Outlier Detection in Presence of Domain Shift

Petra Bevandic, Ivan Kreso, Marin Orsic, Sinisa Segvic

Abstract

Recent success on realistic road driving datasets has increased interest in exploring robust performance in real-world applications. One of the major unsolved problems is to identify image content which can not be reliably recognized with a given inference engine. We therefore study approaches to recover a dense outlier map alongside the primary task with a single forward pass, by relying on shared convolutional features. We consider semantic segmentation as the primary task and perform extensive validation on WildDash val (inliers), LSUN val (outliers), and pasted objects from Pascal VOC 2007 (outliers). We achieve the best validation performance by training to discriminate inliers from pasted ImageNet-1k content, even though ImageNet-1k contains many road-driving pixels, and, at least nominally, fails to account for the full diversity of the visual world. The proposed two-head model performs comparably to the C-way multi-class model trained to predict uniform distribution in outliers, while outperforming several other validated approaches. We evaluate our best two models on the WildDash test dataset and set a new state of the art on the WildDash benchmark.

Introduction

Most computer vision models operate under a "closed-world" assumption, presuming that every pixel in an image belongs to one of a few pre-defined categories such as "car," "road," or "pedestrian." In the context of autonomous driving, this assumption is inherently dangerous. When a model trained only on standard urban environments encounters unexpected hazards—such as a fallen tree, a crashed vehicle, or an animal—it may confidently but incorrectly classify those pixels into a known category.

This research addresses the challenge of Open-Set Recognition. The objective is to develop a system capable of labeling known classes while simultaneously generating a "dense outlier map" to identify regions that fall outside its training distribution. Crucially, this must be achieved efficiently in a single forward pass without compromising the accuracy of the primary segmentation task.

Proposed Architecture

The researchers propose a multi-task convolutional model designed for simultaneous segmentation and outlier detection. The system utilizes a shared convolutional backbone, such as DenseNet-169, to extract dense features. From this shared representation, the model branches into two distinct heads:

  1. The Segmentation Head: This component performs standard C-way classification across predefined categories (e.g., the 19 Cityscapes classes).
  2. The Outlier Head (OD): A binary classifier that produces a probability map indicating whether a pixel is an "inlier" (known class) or an "outlier" (unknown content).
Detailed architecture of the multi-task convolutional model.

This two-head approach (referred to as LDN_BIN) allows the outlier detection task to be optimized without "polluting" the weights of the segmentation head, thereby preserving baseline accuracy while adding a critical safety layer.

Training with Noisy Negatives

A key innovation in this work is the use of ImageNet-1k as a source of "noisy negatives" to teach the model what an outlier looks like. Despite ImageNet containing some road-related pixels, its vast diversity makes it an excellent proxy for the "unknown" world.

The researchers employed a "pasting" augmentation technique, where small patches of ImageNet images (containing diverse objects like mushrooms or sailboats) are randomly overlaid onto road-driving images. This forces the model to learn the sharp boundaries between known road scenes and unknown objects. This method was compared against other strategies, including Outlier Exposure (OE)—training a single head to predict a uniform distribution when encountering outliers—and the C+1 approach, which adds a dedicated "extra" class for outliers.

Experimental Setup and Datasets

To simulate real-world domain shifts, the study utilized a diverse array of datasets:

  • Inlier Training: Cityscapes and Mapillary Vistas (large-scale street-level imagery).
  • Outlier Training: ImageNet-1k (source for noisy negatives).
  • Validation: WildDash val (inliers), LSUN (entirely outlier images), and Pascal VOC 2007 (objects pasted into driving scenes).
  • Benchmark: WildDash test, specifically designed to test model robustness against hazards like blur, distortion, and uncommon objects.

Results and SOTA Comparison

The proposed models achieved a new state-of-the-art (SOTA) on the WildDash benchmark. The best-performing model, LDN_OE, reached a Meta Avg mIoU of 42.7, significantly outperforming previous leading submissions such as MapillaryAI (38.9).

Benchmark results on WildDash showing the proposed models achieving state-of-the-art performance.

In outlier detection tests on the LSUN dataset, the models achieved nearly 99% Average Precision (AP). Qualitative analysis showed the model successfully flagged "foreign" objects—such as forklifts and even the ego-vehicle's hood—as outliers, which standard models typically misclassify. Furthermore, the models demonstrated an ability to detect "abstract" outliers, such as digital noise or text overlays, despite these hazards not being present in the training set.

Conclusion and Future Work

While setting a new benchmark for robust segmentation, the authors identified several areas for future improvement. The models currently struggle with small outliers (as indicated by iIoU metrics), likely due to training on half-resolution images. Additionally, the model occasionally exhibits position bias, confusing road and sky in extreme cases due to learned spatial priors.

An interesting observation was the frequent flagging of windshield wipers as outliers; because wipers were labeled as "void" in training data, the model correctly identified them as something that does not belong to the standard road classes. The authors conclude that the community requires larger, more diverse negative test sets to fully vet these models for safety-critical autonomous applications.

Summary updated

BibTeX
@inproceedings{bevandic2019simultaneous,
  author = {Petra Bevandic and Ivan Kreso and Marin Orsic and Sinisa Segvic},
  title = {{Simultaneous Semantic Segmentation and Outlier Detection in Presence of Domain Shift}},
  booktitle = {GCPR},
  year = {2019},
  url = {https://openreview.net/forum?id=1JyBXdlcvy},
}
Figure