Conditional Coverage Diagnostics for Conformal Prediction

Sacha Braun, David Holzmüller, Michael I. Jordan, Francis R. Bach · DOI

Introduction

Conformal prediction (CP) provides a powerful framework for generating prediction sets with rigorous "average" accuracy guarantees. However, in high-stakes domains such as medicine or autonomous driving, marginal guarantees are often insufficient. A model might be 95% accurate on average but fail significantly for specific subgroups. This paper introduces ERT (Excess Risk of the Target coverage), a novel diagnostic tool that reframes coverage evaluation as a supervised classification task to detect these local reliability failures.

The Challenge of Conditional Coverage

While CP ensures that a prediction set contains the true outcome with a high probability (e.g., $1-\alpha = 0.90$) across the entire population, it does not guarantee this for any specific input $X$. This is the problem of conditional coverage. Detecting local deviations is difficult because existing metrics often require large datasets to achieve statistical significance or struggle in high-dimensional feature spaces.

The ERT Metric: Coverage as Classification

The core innovation of this work is treating coverage evaluation as a supervised learning problem. For any test point, we observe a binary indicator: whether the true value fell within the prediction set (1) or not (0). Under perfect conditional coverage, the probability of this indicator being 1 should always equal the target level $1-\alpha$, regardless of the input features.

The authors train a diagnostic classifier $h(X)$ to predict this binary indicator. If $h(X)$ can predict coverage better than a simple constant baseline of $1-\alpha$, a violation of conditional coverage is detected. The ERT metric is defined as the "Excess Risk" of this classifier over the baseline, measured using proper scoring rules like the Brier score or log-loss.

Comparison of conformal sets (top) and their corresponding conditional coverage diagnostics (bottom). The diagnostic classifier $h(X)$ (blue dash-dot) effectively tracks the true conditional coverage (black solid line), revealing local deviations from the target $1-\alpha$ (orange dashed line).

Experimental Evaluation

The authors benchmarked ERT across synthetic data, tabular regression (e.g., Diamonds, Superconductivity), and image classification (MNIST, CIFAR-10). They also released covmetrics, an open-source Python package for these diagnostics.

Key findings include:

  • Superior Detection: ERT identifies coverage failures in scenarios where traditional metrics like CovGap or Size-stratified coverage (SSC) fail to show significant deviations.
  • Classifier Efficiency: LightGBM proved to be an excellent default diagnostic classifier, balancing speed and sensitivity. Tabular foundation models like TabICLv1.1 provided even higher detection power.
  • Method Ranking: The analysis showed that while some CP methods like "MVCS" prioritize small prediction sets, they often do so at the cost of local reliability. In contrast, methods like "C-PCP" generally achieved better conditional coverage.

Key Insights

  • Diagnostic Power: Modern machine learning classifiers can "learn" complex patterns of miscoverage that human-defined groups or simple geometric scans miss.
  • Sample Efficiency: ERT provides reliable diagnostics with smaller test sets compared to traditional grouping-based methods.
  • Conservative Lower Bound: ERT acts as a lower bound on the true coverage gap. A high ERT value confirms a coverage problem, while a low value indicates either a reliable model or a diagnostic classifier that is not yet strong enough to find existing flaws.

Conclusion

ERT provides a powerful, model-based approach to diagnosing the reliability of conformal prediction systems. By leveraging the strengths of modern classifiers, it offers a more nuanced and sample-efficient way to ensure that predictive models are trustworthy not just on average, but for every individual. Future work may explore using these diagnostic classifiers as real-time proxies to adaptively correct coverage failures.

Summary updated

BibTeX
@inproceedings{braun2026conditional,
  author = {Sacha Braun and David Holzmüller and Michael I. Jordan and Francis R. Bach},
  title = {{Conditional Coverage Diagnostics for Conformal Prediction}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=vaApZm6MKM},
}
Figure