Deep Deterministic Uncertainty for Semantic Segmentation

Jishnu Mukhoti, Joost van Amersfoort, Philip H. S. Torr, Yarin GalarXiv 2021

Introduction

Deep learning models are increasingly deployed in high-stakes, safety-critical domains such as autonomous driving and medical imaging. In these applications, predictive accuracy alone is insufficient; models must also provide reliable uncertainty quantification to signal when they are likely to fail.

Uncertainty is typically categorized into two types: Aleatoric (inherent noise in the data, such as motion blur) and Epistemic (model ignorance due to lack of similar training data, often called Out-of-Distribution or OoD). While methods like Deep Ensembles and MC Dropout are popular for estimating these uncertainties, they are computationally prohibitive for real-time semantic segmentation, where a prediction is required for every pixel. This paper extends Deep Deterministic Uncertainty (DDU) to semantic segmentation, offering a single-pass framework that is both accurate and efficient.

Methodology

The DDU framework for segmentation relies on analyzing the model's internal "feature space"—the representation generated just before the final classification layer.

The DDU pipeline: An input image passes through a feature extractor to a clustered feature space, producing separate aleatoric and epistemic uncertainty maps in a single pass.

Core Components

  • Inductive Biases: To prevent "feature collapse"—where unknown data is erroneously mapped into known categories—the model is trained with a bi-Lipschitz constraint (implemented via Spectral Normalization). This ensures that distinct inputs remain distinct in the feature space.
  • Gaussian Discriminant Analysis (GDA): Post-training, the authors fit a GDA to the feature space, calculating a mean and covariance matrix for each class.
  • Spatial Invariance of Features: A major contribution of this work is the observation that feature representations for a specific class are remarkably consistent regardless of their spatial location in an image. This allows the use of a single set of class statistics for the entire image, drastically reducing memory overhead.
  • Disentangled Uncertainty: Epistemic uncertainty is derived from feature space density (proximity to known class clusters), while aleatoric uncertainty is measured by the entropy of the final softmax output.

Experimental Setup

The researchers evaluated DDU using the Pascal VOC 2012 benchmark, utilizing a DeepLab-v3+ architecture with a ResNet-101 backbone. Training was augmented with the Semantic Boundaries Dataset (SBD) to ensure robust feature representations.

Key Results and Insights

DDU achieves uncertainty quantification "for free" during a standard inference pass, making it significantly faster than multi-pass alternatives. Specifically, DDU is approximately 6x faster than MC Dropout (5 passes) and 3x faster than a 3-model Deep Ensemble, with a runtime (~264ms) nearly identical to a standard model without uncertainty estimation.

Calibration metrics comparing DDU against baselines. DDU (brown line) consistently shows superior performance in $p(accurate|certain)$ and $PAVPU$ across uncertainty percentiles.

Crucially, DDU provides these speed gains without sacrificing performance, maintaining a Mean Intersection over Union (mIoU) of ~78.5%, comparable to ensembles. As shown in the calibration plots above, DDU outperforms baselines on specialized metrics like $p(accurate|certain)$ and the Predictive Area Versus Patch Uncertainty (PAVPU), indicating that its confidence scores are more reliable indicators of actual accuracy.

Conclusion and Future Work

DDU represents a significant step toward real-time, reliable uncertainty for dense prediction tasks. By leveraging feature-space density and spatial invariance, it avoids the computational bottlenecks of ensembles. Future research may focus on scaling GDA to datasets with hundreds of classes (e.g., ADE20K) and testing the framework against more extreme, real-world Out-of-Distribution scenarios to further validate its epistemic uncertainty claims.

Summary updated

BibTeX
@misc{mukhoti2021deep,
  author = {Jishnu Mukhoti and Joost van Amersfoort and Philip H. S. Torr and Yarin Gal},
  title = {{Deep Deterministic Uncertainty for Semantic Segmentation}},
  year = {2021},
  eprint = {2111.00079},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.00079},
}
Figure