Trusting Semantic Segmentation Networks

Samik Some, Vinay P. NamboodiriarXiv 2024 · DOI

Abstract

Semantic segmentation is critical for safety-sensitive applications like autonomous driving, yet models inevitably fail. This paper investigates methods to predict these failures at test time without ground truth labels. By evaluating uncertainty metrics across CNN and Transformer architectures, the research demonstrates that simple measures like entropy can effectively identify misclassifications with high recall, providing a viable "trust score" for real-world deployment.

Introduction

Semantic segmentation—the pixel-level classification of images—is a foundational technology for autonomous systems and medical imaging. Despite significant advances in accuracy, modern models remain "black boxes" that can fail unpredictably. In high-stakes environments, simply providing a prediction is insufficient; systems must also communicate their confidence. The primary challenge lies in identifying errors during deployment when ground truth labels are unavailable. This study addresses this gap by analyzing failure patterns and evaluating whether internal model information can reliably predict misclassifications.

Methodology

The researchers treated segmentation models as black boxes, evaluating several uncertainty-based metrics for their correlation with actual errors.

Uncertainty Metrics

  • Softmax-derived Metrics: These include Variation Ratio (1 minus the maximum class probability) and Probability Margin (the difference between the two highest class probabilities).
  • Entropy: A measure of disorder in the predicted probability distribution, indicating a lack of confidence.
  • Ensemble-based Techniques: Methods to generate multiple predictions to assess consistency, such as Monte Carlo (MC) Dropout, Noise Injection (adding Gaussian noise to inputs), and Multi-scale Scaling.
  • Advanced Statistical Metrics: Evaluation of Variance and BALD (Bayesian Active Learning by Disagreement).

Dynamic Thresholding

To convert continuous uncertainty scores into actionable binary "trust" signals, the authors proposed dynamic thresholding strategies. These strategies account for the high variability of uncertainty scales across different models and scenes.

Datasets

The study utilized three distinct datasets: Cityscapes (urban street scenes), Dark Zurich (nighttime scenes for domain shift testing), and ADE20K (complex scenes with 150 classes).

Analysis of Uncertainty and Failure Modes

A key finding of the research is that model failures are not random. Misclassifications typically cluster around object boundaries or in regions of high visual ambiguity.

Visual comparison of input images and corresponding uncertainty maps across different scenes.

Interestingly, while Transformer-based architectures (e.g., SegFormer) generally outperform CNNs (e.g., DRN), their failure modes are remarkably similar. Both architectures struggle in the same spatial regions, and their errors are captured effectively by the same uncertainty metrics. Furthermore, simple metrics like entropy often performed as well as more computationally intensive ensemble methods.

Results

The evaluation yielded several significant results:

  • High Error Correlation: On the Cityscapes dataset, the Area Under the Receiver Operating Characteristic (AUROC) for error detection using entropy exceeded 0.93 for CNNs and 0.92 for Transformers.
  • Superior Recall: Using a "largest difference" thresholding strategy, the authors achieved error recall rates as high as 96.89% on Cityscapes, successfully flagging nearly all model mistakes.
  • Robustness: Uncertainty metrics remained effective indicators of misclassification even under increased input noise and significant domain shifts, such as the transition from day to night in the Dark Zurich dataset.

Conclusion and Future Work

This research demonstrates that it is possible to identify the vast majority of semantic segmentation errors at test time using simple uncertainty metrics. While high recall is achievable—a priority for safety-critical systems—precision remains a challenge. The current systems often flag correctly classified pixels as uncertain, which could lead to "alert fatigue." Future research should focus on more sophisticated, potentially learned, dynamic thresholding methods to better balance precision and recall, moving closer to truly trustworthy autonomous systems.

Summary updated

BibTeX
@misc{some2024trusting,
  author = {Samik Some and Vinay P. Namboodiri},
  title = {{Trusting Semantic Segmentation Networks}},
  year = {2024},
  eprint = {2406.14201},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.14201},
}
Figure