Abstract
While conformal predictors reap the benefits of rigorous statistical guarantees on their error frequency, the size of their corresponding prediction sets is critical to their practical utility. Unfortunately, there is currently a lack of finite-sample analysis and guarantees for their prediction set sizes. To address this shortfall, we theoretically quantify the expected size of the prediction sets under the split conformal prediction framework. As this precise formulation cannot usually be calculated directly, we further derive point estimates and high-probability interval bounds that can be empirically computed, providing a practical method for characterizing the expected set size. We corroborate the efficacy of our results with experiments on real-world datasets for both regression and classification problems.
Introduction
Conformal prediction (CP) has become a cornerstone of reliable machine learning by providing ironclad guarantees on error rates. However, coverage guarantees alone do not ensure utility; a model that achieves 95% coverage by predicting the entire label space is technically correct but practically useless. The size of the prediction set is the ultimate measure of a model's efficiency: smaller sets provide more precise, actionable information.
Historically, estimating these set sizes required "Monte Carlo" averaging—running the entire prediction pipeline hundreds or thousands of times on different data splits. This process is computationally expensive and data-intensive. This paper provides the first finite-sample theoretical quantification of expected set sizes, introducing data-efficient methods to estimate size and uncertainty without exhaustive simulations.
Theoretical Framework: The Multiplicative Factor
The authors bridge the gap between theory and practice by mathematically quantifying the expected size of sets within the Split Conformal Prediction framework. The core innovation is the introduction of a "multiplicative factor" ($\#_R(r)$). This factor acts as a translator, converting the probability measure from the abstract space of non-conformity scores (which measure how "unusual" a data point appears to the model) back into the physical size of the label space, such as the width of a regression interval or the number of classes in a classification set.
By demonstrating that the probability of a label being included in a set can be modeled using a Binomial distribution, the researchers show that expected size can be derived from the cumulative distribution of non-conformity scores. This reveals that the number of calibration points ($n$) has a complex relationship with set size, influencing both the number of trials and the success probability in the underlying model.
Practical Estimators
Because the exact theoretical formulation is often difficult to compute directly, the paper proposes two practical estimation settings:
- Known Factor: For standard loss functions (like $l_1$ regression), the multiplicative factor is a known constant. The authors utilize the Dvoretzky–Kiefer–Wolfowitz (DKW) inequality to provide high-probability confidence intervals for the set size.
- Unknown Factor: For complex models where the factor depends on the data distribution (such as Quantile Regression), they propose a Nested Monte Carlo approach. This allows for robust estimation using a single, fixed dataset, significantly reducing the data overhead.
Experimental Results
The proposed approach was validated across 20 real-world UCI datasets spanning regression (e.g., Abalone, AirFoil) and classification (e.g., Adult, BankMarketing) using various methods like Conformalized Quantile Regression (CQR) and Least Ambiguous Classifiers (LAC).
Key findings from the empirical evaluation include:
- High Accuracy: The proposed point estimates were nearly identical to the "ground truth" Monte Carlo averages but required significantly fewer data points to compute.
- Reliable Intervals: The theoretical confidence intervals successfully bounded the true expected size in almost all experimental trials, providing a reliable "safety net" for practitioners.
- Predictable Efficiency: The results confirm that efficiency can be predicted directly from the distribution of scores on a single calibration set, rather than through repetitive retraining.
Conclusion and Future Work
This research demonstrates that prediction set size is not just a byproduct of conformal prediction but a predictable metric that can be quantified with finite samples. The framework even extends to conditional expected size, allowing practitioners to provide feature-specific size estimates to users.
While the current work assumes independent and identically distributed (I.I.D.) data, future directions include extending this analysis to non-exchangeable data settings (such as covariate shift) and exploring how these size estimates can be used to optimize models during training to produce the most compact valid sets possible.
Summary updated