Abstract
Conformal prediction (CP) provides a rigorous framework for uncertainty quantification, offering finite-sample validity guarantees under the assumption of data exchangeability. However, a significant challenge arises when researchers attempt to select the "best" model from a candidate pool to minimize the width of prediction sets. Using the same hold-out data for both model selection and calibration introduces selection bias, leading to intervals that under-cover the true values. While sample splitting is a common remedy, it is statistically inefficient in data-constrained settings. This paper introduces ModSel-CP and ModSel-CP-LOO, two novel methods that achieve valid conformal prediction after data-dependent model selection without the need for additional sample splitting. These methods maintain finite-sample validity and demonstrate asymptotic optimality in interval width.
Introduction
In many machine learning applications, we are presented with a family of pretrained models and a limited hold-out dataset. The goal is to construct a prediction set that is as narrow as possible while maintaining a target coverage level (e.g., 90%). The standard approach to conformal prediction relies on a calibration set to determine a quantile threshold. However, if we use that same calibration set to select the model that yields the smallest intervals, we violate the symmetry required for CP validity. This "selection bias" results in over-optimistic, narrow intervals that fail to meet the coverage guarantee.
To avoid this, practitioners often resort to sample splitting—partitioning the hold-out data into a selection set and a calibration set. Unfortunately, this reduces the number of samples available for both tasks, often resulting in wider, less useful intervals. This paper proposes a way to have the "best of both worlds": using the entire hold-out set for both selection and calibration while preserving rigorous statistical guarantees.
Methodology
The core innovation of this work lies in restoring symmetry to the selection process. The authors propose two primary algorithms:
1. ModSel-CP
ModSel-CP leverages the principles of Full Conformal Prediction by incorporating the hypothesized test point $(X_{n+1}, y)$ into the model selection process. For every potential label $y$, the algorithm determines which model $\hat{\lambda}(y)$ would have been chosen as the "best" if that $y$ were the ground truth. By making the model selection dependent on the test point in the same way it depends on the calibration data, the method eliminates selection bias. While checking every possible $y$ for continuous variables might seem computationally daunting, the authors provide an efficient implementation (Theorem 3.2) that reduces the search to a manageable union of intervals.
2. ModSel-CP-LOO
The Leave-One-Out (LOO) variant selects the model for each point by examining all other points in the dataset. This cross-validation-style approach also restores the necessary symmetry for distribution-free, finite-sample validity. While theoretically robust, the authors note that ModSel-CP is generally simpler to implement and more computationally efficient.
Theoretical and Empirical Results
Asymptotic Optimality
The authors prove that as the sample size $n$ increases, the width of the intervals produced by ModSel-CP converges to the width of the best possible model within the candidate class. This optimality holds provided the model class complexity (measured via Rademacher complexity) is well-behaved.
Performance on Synthetic and Real-World Data
The proposed methods were tested against several baselines, including a naive approach (YK-baseline) and a sample-splitting approach (YK-split).
- Coverage Reliability: In synthetic regression tasks with high-dimensional features ($d=300$), the naive baseline failed to maintain coverage as the number of candidate models increased. In contrast, both ModSel-CP and ModSel-CP-LOO consistently hit the 90% target.
- Efficiency: Compared to sample splitting, the proposed methods yielded significantly narrower intervals, demonstrating the advantage of using the full dataset for calibration.
- Protein Structure Dataset: On a real-world dataset from the UCI repository ($N=45,730$), ModSel-CP achieved 89.91% coverage with an average width of 14.18. The naive baseline under-covered (88.10%), while the conservative adjusted baseline produced much wider, less informative intervals (width of 19.76).
Discussion and Limitations
While ModSel-CP provides a powerful tool for model selection in uncertainty quantification, it is not without constraints. The methods rely on the assumption of exchangeability; extending these techniques to handle distribution shifts or time-series data remains a frontier for future research. Additionally, for extremely complex or high-dimensional model families, the continuity terms in the theoretical bounds may require larger sample sizes to reach optimal efficiency.
In conclusion, ModSel-CP offers a computationally efficient and statistically rigorous path for selecting optimal models in conformal prediction, ensuring that researchers do not have to sacrifice interval precision for coverage validity.
Summary updated