Enhancing Image-Conditional Coverage in Segmentation: Adaptive Thresholding via Differentiable Miscoverage Loss

Rui Luo, Jie Bao, Xiaoyi Su, Wen Jung Li, Suqun CaoICLR 2026

Introduction: The Coverage Gap in Conformal Prediction

In high-stakes fields like medical imaging or autonomous driving, knowing how much to trust a model's prediction is just as important as the prediction itself. Conformal Prediction is a popular framework for uncertainty quantification because it provides mathematical guarantees: for a chosen error rate $\alpha$, the model produces a "prediction set" guaranteed to contain the ground truth with a probability of $1-\alpha$.

However, standard Conformal Risk Control (CRC) typically provides marginal guarantees. This means if you set $\alpha=0.1$, the model will be right 90% of the time on average across the entire dataset. The critical flaw in clinical or safety-critical settings is that an "average" guarantee isn't enough. A model might be 100% accurate on "easy" images but only 50% accurate on "hard" ones. You need to know that the specific scan in front of you is reliably covered.

This discrepancy is known as the coverage gap. The relationship between a classification threshold and the resulting coverage is non-continuous and varies wildly from image to image, making it notoriously difficult to optimize directly. To address this, researchers have introduced COAT (Conditional Optimization for Adaptive Thresholding), a framework that learns image-specific thresholds to ensure every individual image meets safety-critical uncertainty requirements.

Methodology: From Global to Adaptive Thresholds

To move from a single global threshold to image-adaptive thresholds, the authors propose two novel approaches:

  1. AT (Adaptive Thresholding): A supervised baseline approach. The authors pre-calculate the "perfect" threshold for every image in a training set using numerical search. They then train a secondary neural network (like a ResNet-50) to look at an image and its probability map, predicting that optimal threshold using a standard Mean Squared Error (MSE) loss.
  2. COAT (Conditional Optimization for Adaptive Thresholding): The flagship, end-to-end differentiable method. Instead of regressing toward pre-calculated values, COAT directly optimizes for coverage. Because the standard True Positive Rate (TPR) relies on a hard threshold (which lacks a usable gradient for backpropagation), COAT employs a soft sigmoid approximation. This allows the model to directly minimize the difference between the predicted coverage and the target coverage level ($1-\alpha$).
Overview of the proposed AT and COAT pipeline, illustrating the transition from semantic segmentation to threshold prediction and final calibration.

Crucially, both methods feature a final calibration step. After the adaptive thresholds are predicted, a small global correction ($t'$) is calculated on a held-out calibration set. This two-stage reliability ensures that even if the neural network's threshold predictor isn't perfect, the final system still maintains rigorous theoretical marginal guarantees. The network learns to be adaptive (reducing the coverage gap), while classical conformal calibration ensures statistical validity.

Datasets and Key Insights

The researchers evaluated their approach across three diverse segmentation tasks using several base architectures (UNet, DeepLab v3+, PSPNet, and SINet):

  • Polyp Dataset: Endoscopic images for clinical diagnostics.
  • Skin Lesion Dataset: The HAM10000 dataset for dermatology.
  • Fire Dataset: Real-world flame segmentation for emergency response.
  • Cityscapes: Used to demonstrate an extension of the method to multi-target urban scene understanding.

A key insight from the paper is the concept of the "uncertainty budget." A single global threshold inevitably leads to "over-coverage" on easy images (producing prediction sets that are too large and conservative) and "under-coverage" on difficult ones (missing critical regions). Adaptive thresholding dynamically balances this budget. By making the miscoverage metric differentiable via the soft TPR approximation, the authors successfully transformed a complex statistical calibration problem into a standard deep learning optimization task.

Key Results

Across all datasets and models, COAT consistently achieved the smallest coverage gap. For example, on the Polyp dataset with a target error rate of $\alpha=0.1$, COAT reduced the coverage gap from 0.145 (standard CRC) to 0.106.

Qualitative comparison on the Polyp dataset showing that COAT maintains a stable False Negative Rate (FNR) across different images, whereas standard CRC fluctuates significantly.

Qualitative results clearly demonstrate that COAT maintains a much more stable False Negative Rate (FNR) across vastly different images. In contrast, standard CRC fluctuates significantly, failing to provide reliable image-level guarantees. Furthermore, when extended to the Cityscapes dataset, COAT successfully outperformed class-wise CRC in controlling the coverage gap for specific categories like "Road," "Person," and "Car."

Limitations and Future Work

While COAT represents a significant step forward for trustworthy segmentation, the authors note a few areas for future improvement:

  • Data Requirements: Training the threshold predictor requires a substantial amount of labeled data, meaning the method may struggle in "few-shot" learning scenarios.
  • Computational Overhead: Currently, the multi-class version requires training a separate COAT model for each class. Developing a "joint loss function" for simultaneous multi-class thresholding is a primary future direction.
  • Risk Metrics: This research primarily focuses on controlling the False Negative Rate (FNR). Extending the differentiable loss framework to handle other risks, such as the False Discovery Rate (FDR), remains an open challenge for the community.

Summary updated

BibTeX
@inproceedings{luo2026enhancing,
  author = {Rui Luo and Jie Bao and Xiaoyi Su and Wen Jung Li and Suqun Cao},
  title = {{Enhancing Image-Conditional Coverage in Segmentation: Adaptive Thresholding via Differentiable Miscoverage Loss}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=Gd2AiWes1J},
}
Figure