Abstract
Conformal inference, cross-validation+, and the jackknife+ are hold-out methods that can be combined with virtually any machine learning algorithm to construct prediction sets with guaranteed marginal coverage. In this paper, we develop specialized versions of these techniques for categorical and unordered response labels that, in addition to providing marginal coverage, are also fully adaptive to complex data distributions, in the sense that they perform favorably in terms of approximate conditional coverage compared to alternative methods. The heart of our contribution is a novel conformity score, which we explicitly demonstrate to be powerful and intuitive for classification problems, but whose underlying principle is potentially far more general. Experiments on synthetic and real data demonstrate the practical value of our theoretical guarantees, as well as the statistical advantages of the proposed methods over the existing alternatives.
Introduction
In high-stakes classification tasks, such as medical diagnosis or autonomous driving, a single point estimate is often insufficient. Instead, practitioners require a prediction set that contains the true label with a high degree of confidence. To be truly reliable, these sets must satisfy two criteria: marginal coverage (the true label is included at a target rate, e.g., 90%, on average) and conditional coverage (the guarantee holds for every specific input). While standard conformal prediction methods excel at marginal coverage, they often fail to adapt to the varying difficulty of individual examples, leading to unreliable performance on "hard" cases. This paper introduces a framework for generating prediction sets that are both statistically valid and adaptive to the local complexity of the data.
Methodology
The core of the proposed approach is a novel generalized inverse quantile conformity score. This score leverages the cumulative distribution of estimated class probabilities. By sorting classes from most to least likely and calculating the cumulative sum, the method determines a threshold $\tau$ required to include the true label. This approach captures the inherent difficulty of an instance: if the top classes have low cumulative probability, the instance is difficult, and the resulting prediction set should be larger.
The authors integrate this score into three primary calibration frameworks:
- Split-Conformal (SC): A computationally efficient method using a hold-out set for calibration.
- CV+ and Jackknife+: Data-efficient approaches that use cross-validation-like techniques, particularly beneficial for smaller datasets.
Importantly, these methods are model-agnostic, meaning they can be applied to any underlying classifier (e.g., Neural Networks, Random Forests, SVMs) without requiring the classifier itself to be perfectly calibrated.
Experimental Results
The proposed methods were evaluated against existing alternatives like Homogeneous Conformal Classification (HCC) and Conformal Quantile Classification (CQC) using synthetic and real-world datasets, including MNIST, CIFAR-10, and the Mice Protein Expression dataset.
Validity and Adaptivity
A key finding is that while all methods maintain the target 90% marginal coverage, the proposed methods (SC, CV+, JK+) demonstrate significantly better conditional coverage. In scenarios with varying data difficulty (heteroscedasticity), the proposed methods adapt the set size to maintain reliability across all "slices" of the data.
As shown in Figure 1, the proposed methods (SC, CV+, JK+) strictly adhere to the 0.90 marginal coverage line. However, in the conditional coverage plots (bottom row), these methods maintain significantly higher coverage levels compared to baselines like CQC and HCC, which drop significantly in more difficult data slices.
Robustness Across Models
The framework's effectiveness is consistent across different "black-box" architectures. Whether using Neural Networks (NNet), Random Forests (RFC), or Support Vector Classifiers (SVC), the generalized inverse quantile score provides robust performance even when the underlying model's probability estimates are imperfect.
Figure 5 illustrates that the adaptivity of the prediction sets—growing for ambiguous inputs and shrinking for clear ones—is a consistent property of the proposed score, regardless of the specific machine learning algorithm used for the initial classification.
Conclusion
This work provides a rigorous yet practical framework for classification with valid and adaptive coverage. By focusing on cumulative probability distributions, the proposed methods approximate the behavior of an "Oracle" that knows the true data distribution. While the current theory assumes data exchangeability, future work may extend these principles to non-exchangeable settings like time-series data or more complex output spaces beyond simple classification.
Summary updated