Introduction
Deep Learning models for Semantic Image Segmentation (SIS) are often deployed as "black boxes." While these models generate softmax scores that resemble probabilities, they are frequently poorly calibrated, exhibiting overconfidence even in erroneous predictions. This lack of reliability is a significant hurdle in safety-critical domains such as autonomous driving and medical imaging.
This paper introduces a model-agnostic, computationally lightweight method to wrap any pre-trained semantic segmentation model with statistical guarantees. By utilizing Conformal Risk Control (CRC), the authors generate "multi-labeled masks" that are guaranteed to contain the ground-truth pixel labels at a user-defined confidence level, providing a mathematically grounded framework for uncertainty quantification (UQ) without requiring model retraining.
Methodology: Quantifying Uncertainty
The proposed framework leverages Conformal Prediction (CP) and its generalization, Conformal Risk Control (CRC), to transform point predictions into set-valued predictions.
- Multi-labeled Masks: Instead of a single class per pixel, the model produces a set of possible classes. The size of this set reflects the model's uncertainty: certain regions yield a single label, while ambiguous regions result in larger sets.
- Least Ambiguous Classifiers (LAC): The method employs a thresholding approach where a pixel $ij$ is assigned all classes $k$ whose softmax score exceeds $1 - \lambda$.
- Calibration: The optimal threshold $\hat{\lambda}$ is determined using a small, held-out calibration dataset. CRC ensures that the expected risk—defined as the probability of the true label being excluded from the predicted set—remains below a user-specified level $\alpha$.
- Varisco Heatmaps: To visualize this uncertainty, the authors introduce "Visual Assessment of Risk Control" (varisco) heatmaps. These maps color pixels based on the number of activated classes in the prediction set, effectively distinguishing between aleatoric uncertainty (noise at boundaries) and epistemic uncertainty (lack of model knowledge).
Experimental Evaluation
The method was evaluated across three diverse benchmark datasets using state-of-the-art architectures:
- Cityscapes: Urban street scenes (19 classes) using PSPNet.
- ADE20K: Complex general scenes (150 classes) using SegFormer.
- LoveDA: Aerial remote sensing (7 classes) using PSPNet.
Key Insights: The Impact of Thresholding
A primary advantage of this approach is its statistical validity. Unlike standard softmax outputs, these uncertainty sets offer frequentist guarantees: if the risk $\alpha$ is set to 1%, the true label will be present in the predicted set at least 99% of the time on average.
Furthermore, the "Activation Ratio" (AR)—the average number of labels per pixel—serves as a powerful diagnostic metric. A high AR indicates that the underlying model requires many labels to meet confidence requirements, signaling poor performance on specific data distributions.
Results and Discussion
The empirical results demonstrate that the method is both reliable and efficient. Across all tested datasets, the measured empirical risk closely tracked the target $\alpha$. For instance, on Cityscapes with a target risk of 0.01, the empirical risk was 0.011 (±0.014). Calibration is extremely fast, involving a simple binary search for the threshold $\lambda$, making it suitable for post-hoc integration into existing pipelines.
By fixing the risk level $\alpha$, researchers can directly compare model performance: the model producing a "cooler" heatmap (a lower Activation Ratio) is objectively more certain and better calibrated.
Limitations and Future Work
While the current method provides robust marginal guarantees (averaging risk across the dataset), it does not yet offer conditional guarantees for specific images or classes (e.g., ensuring equal risk for pedestrians versus road surfaces). Future research will explore extending this framework to panoptic segmentation and addressing the real-time constraints of video sequences, where maintaining theoretical guarantees across temporal frames remains a challenge.
Summary updated