Introduction
In high-stakes domains such as medical diagnosis or autonomous driving, understanding the uncertainty of machine learning models is as critical as their accuracy. Conformal Prediction (CP) has emerged as a robust framework for providing such uncertainty estimates. Unlike standard point predictions, CP generates a set of possible labels that is guaranteed to contain the true label with a user-specified probability (e.g., 90%). However, standard CP only guarantees marginal coverage—meaning the guarantee holds on average across the entire dataset. This can lead to significant "under-coverage" for specific difficult subgroups, a problem known as a lack of conditional coverage.
The Problem: Marginal vs. Conditional Coverage
A model with 90% marginal coverage might be 100% accurate on easy, common examples but 0% accurate on rare or difficult ones. In a clinical setting, this could mean the model is highly reliable for one demographic but consistently fails for another, while still meeting its overall statistical target. While achieving exact conditional coverage in a distribution-free manner is mathematically impossible for finite samples, this paper proposes a method to achieve approximate conditional coverage by identifying and conditioning on the variables most associated with model failure.
Methods: Conditioning on Trust Scores
The authors identify that miscoverage—where the true label falls outside the predicted set—is strongly correlated with two factors: the model's Confidence and the Rank of the true class in the model's output distribution. Since the true Rank is unknown at test time, the authors introduce the Trust Score as a proxy.
The Trust Score is a nonparametric statistic measuring the ratio between the distance from a test point to the nearest class different from the predicted one, and the distance to the nearest point of the same class. A high Trust Score indicates the prediction is well-supported by its neighbors in the feature space, while a low score suggests the point is an outlier or near a decision boundary.
The proposed algorithm adapts a conditional conformal prediction framework that fits a quantile regression over a function class. Instead of conditioning on the entire high-dimensional input, the authors condition on a two-dimensional summary variable $V = \{\text{Confidence, Trust Score}\}$. They use a polynomial function class to capture the complex interactions between these variables, allowing the prediction sets to adapt dynamically to the perceived "trustworthiness" of each instance.
Experimental Evaluation
The method was evaluated across several large-scale benchmarks:
- Standard & Long-Tailed Datasets: ImageNet and Places365, along with their "Long-Tailed" (LT) versions where class imbalance makes conditional coverage particularly challenging.
- Clinical Fairness: The Fitzpatrick 17k dataset, containing skin condition images categorized by skin type (1–6). This served as a test for whether improving conditional coverage based on data geometry could improve fairness across demographic subgroups without requiring explicit subgroup labels during calibration.
Key Results and Insights
The primary metric for success was the Coverage Gap (CovGap), which measures the average deviation from the target coverage across different data bins.
- Enhanced Reliability: On the challenging Places365-LT dataset, the proposed method reduced the CovGap from 5.55 to 1.72, demonstrating significantly more consistent performance across the data distribution.
- Trust Score as an Oracle Proxy: As shown in Figure 1, the Trust Score effectively mimics the behavior of the "True Rank" variable, acting as a reliable indicator of when a model is likely to be overconfident yet incorrect.
- Implicit Fairness: On the Fitzpatrick 17k dataset, the method improved "worst-group coverage" (0.87 vs 0.86 for standard CP) and reduced the skin-type-conditional gap. This suggests that conditioning on geometric properties like Trust Scores can automatically protect minority subgroups.
- Efficiency: The results demonstrate that conditioning on a well-chosen 2D summary (Confidence and Trust) captures most of the benefits of conditional coverage without the computational burden of conditioning on the full feature space.
Conclusion
By targeting the structured patterns of model miscoverage, this work provides a practical path toward more reliable and equitable AI. While calculating Trust Scores introduces some computational overhead due to nearest-neighbor searches, the resulting improvements in conditional coverage—especially for "hard" cases and minority groups—make it a compelling approach for safety-critical applications. Future work may explore more scalable function classes, such as neural networks, to further refine the conditioning process.
Summary updated