Reliability in Semantic Segmentation: Are we on the Right Track?

Pau de Jorge, Riccardo Volpi, Philip H. S. Torr, Grégory Rogez · DOI

Abstract

While modern semantic segmentation architectures like Transformers and ConvNeXts demonstrate superior robustness to environmental changes compared to traditional ResNet baselines, this study reveals a critical disconnect: improved accuracy under domain shift does not translate to better reliability. Models remain significantly overconfident, with calibration errors increasing up to 40x under severe shifts. We evaluate various architectures across multiple dimensions of reliability and demonstrate that Local Temperature Scaling (LTS) can significantly mitigate this overconfidence.

Introduction

In safety-critical applications like autonomous driving, a model must be more than just accurate; it must be reliable. A reliable model is robust to new environments and provides trustworthy uncertainty estimates—it should "know what it doesn't know." While the computer vision community has transitioned from CNNs to Transformers, most reliability research has focused on simple image classification. This paper investigates whether state-of-the-art (SOTA) segmentation models are improving in reliability or simply becoming more powerful, overconfident "black boxes."

Methodology

We conduct a comprehensive stress test of modern architectures, including ConvNeXt, SETR, SegFormer, and Segmenter, comparing them against traditional ResNet-based models. The evaluation spans four dimensions:

  1. Robustness: mIoU stability under domain shift.
  2. Calibration: Alignment between predicted probability and actual accuracy (Expected Calibration Error, or ECE).
  3. Misclassification Detection: Ability to identify internal errors.
  4. Out-of-Distribution (OOD) Detection: Ability to identify novel objects (e.g., unseen vehicle types).

To simulate real-world transitions, we utilize Cityscapes (CS) as the in-domain training set, the Indian Driving Dataset (IDD) for geographical shift, and the Adverse Conditions Dataset (ACDC) for severe environmental shifts (fog, rain, snow, night).

The Robustness-Reliability Gap

Our analysis reveals a striking trend: while modern models are significantly more robust to domain shifts than older baselines, their calibration does not follow suit. As models move from the benign Cityscapes environment to the challenging ACDC dataset, the calibration error (ECE) for all models increases by approximately 40x, even as they maintain relatively high mIoU.

Relative mIoU and calibration error under increasing domain shift.

This gap suggests that while SOTA models generalize better in terms of feature recognition, they remain dangerously overconfident in their predictions when faced with unfamiliar conditions.

OOD Detection and the "No Free Lunch" Theorem

Interestingly, we found an inverse correlation between model performance and OOD detection capability. The smallest, least robust model (ResNet-18) outperformed SOTA models in identifying out-of-distribution samples. This suggests that more powerful feature extractors may "overfit" to the known world, forcing novel data into existing categories rather than flagging them as unknown.

Mitigating Overconfidence with Local Temperature Scaling

Simple global calibration techniques, such as standard Temperature Scaling, often fail under domain shift. We explore Local Temperature Scaling (LTS), which employs a secondary network to predict a content-aware "temperature map" for per-pixel calibration.

Impact of Local Temperature Scaling (LTS) variants on Expected Calibration Error (ECE) across models and datasets.

As shown in the experimental results, LTS (particularly when trained on diverse data) significantly reduces ECE across all architectures, especially in the severe domain shifts of IDD and ACDC. This content-aware approach allows models to dampen their confidence in complex or unfamiliar regions of an image, improving the Prediction Rejection Ratio (PRR) and overall safety.

Conclusion

This study serves as a wake-up call for the computer vision community. While we are on the right track regarding predictive performance and robustness, uncertainty estimation remains a critical weakness in SOTA segmentation models. Future work must prioritize the development of more sophisticated, content-aware calibration methods to ensure these powerful models can be safely deployed in the wild.

Summary updated

BibTeX
@inproceedings{jorge2023reliability,
  author = {Pau de Jorge and Riccardo Volpi and Philip H. S. Torr and Grégory Rogez},
  title = {{Reliability in Semantic Segmentation: Are we on the Right Track?}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.00693},
}
Figure