Generalization and Informativeness of Conformal Prediction

Matteo Zecchin, Sangwoo Park, Osvaldo Simeone, Fredrik Hellström

Abstract

Conformal Prediction (CP) provides a framework for generating prediction sets with rigorous coverage guarantees. However, the practical utility of these sets depends on their "informativeness"—the tightness of the prediction region. This paper establishes a formal theoretical link between a machine learning model's generalization performance and the expected size of its CP sets. By deriving a new upper bound on set size using PAC-Bayes theory, the authors demonstrate that better generalization directly translates into more informative uncertainty estimates.

Introduction

In safety-critical domains such as autonomous driving and medical diagnostics, understanding model uncertainty is as vital as the prediction itself. Conformal Prediction (CP) has emerged as a leading framework for uncertainty quantification because it offers a distribution-free, finite-sample guarantee: for a chosen error rate $\alpha$, the resulting prediction set is guaranteed to contain the true label with a probability of at least $1-\alpha$.

Despite this guarantee of reliability, CP faces a significant usability challenge regarding informativeness. A model can satisfy the coverage requirement by simply outputting the entire label space, a result that is mathematically sound but practically useless. Until now, the relationship between a model's ability to learn from data (generalization) and the resulting size of its uncertainty sets has remained largely intuitive. This research provides a rigorous mathematical connection, proving that the "tightness" of a model's uncertainty is fundamentally limited by its generalization error.

Theoretical Framework: Bridging Generalization and CP

The authors focus on Inductive Conformal Prediction, where data is partitioned into a training set (to build the base predictor) and a calibration set (to determine the quantile for the prediction sets).

The Innovation: Theorem 1

The core contribution of the paper is the derivation of a theoretical upper bound for the expected size of CP prediction sets. Unlike previous analyses that treated the base predictor as a black box, this framework incorporates the generalization error of the predictor directly into the bound.

To achieve this, the authors utilize a "corrected empirical training cumulative distribution function (c.d.f.)" to bridge the gap between performance on training data and performance on unseen test data. By integrating PAC-Bayes generalization theory, the framework accounts for both the complexity of the learning algorithm and the volume of available training data.

Experimental Validation

The theoretical insights were validated across two distinct tasks using standard benchmarks:

  1. Multi-class Classification (MNIST): Evaluating how training set size affects the number of labels included in the prediction set.
  2. Regression (California Housing): Measuring the width of the predicted intervals for property value estimation.

Key Findings

  • The "Plateau" Effect: The research demonstrates that as the amount of calibration data ($n_{cal}$) increases, the size of the prediction set converges exponentially fast toward a "floor" value. Crucially, this floor is not determined by the calibration process, but by the base model's generalization performance.
  • Training vs. Calibration Trade-off: There is a fundamental interplay in data allocation. While more calibration data helps the model reach its potential informativeness faster, more training data is required to lower the "floor" itself. This provides a mathematical justification for the common practice of allocating the majority of data to training rather than calibration.
  • Reliability vs. Efficiency: While CP guarantees reliability regardless of model quality, "poor" models are penalized with massive, uninformative sets. Conversely, models that generalize well are "rewarded" with tight, useful prediction regions.

Results and Discussion

In the MNIST experiments, for a fixed reliability level (e.g., 90%), models trained on larger datasets ($n_{tr}=500$) produced significantly smaller prediction sets than those trained on smaller sets ($n_{tr}=100$). As calibration data increased, the empirical set sizes converged to the theoretical limits predicted by the authors' bound, following an exponential decay curve.

Similar trends were observed in the California Housing regression task. The normalized expected set size decreased as the training set size increased, confirming that better generalization leads to higher informativeness across different modalities. The empirical results consistently mirrored the "elbow" shapes predicted by the theoretical bounds, where set size drops sharply before hitting the generalization-limited floor.

Conclusion and Future Work

This paper transforms the intuitive link between model quality and uncertainty into a formal mathematical relationship. It proves that informativeness in Conformal Prediction is a direct consequence of generalization.

While the current bounds can become "vacuous" if a model's accuracy is extremely low, they open the door for a new paradigm of model optimization. Future work may involve designing training algorithms that specifically minimize these CP bounds. Rather than simply minimizing standard loss, models could be trained to maximize their own informativeness, leading to a new generation of "CP-optimized" models that are inherently more useful for high-stakes decision-making.

Summary updated

BibTeX
@inproceedings{zecchin2024generalization,
  author = {Matteo Zecchin and Sangwoo Park and Osvaldo Simeone and Fredrik Hellström},
  title = {{Generalization and Informativeness of Conformal Prediction}},
  booktitle = {ISIT},
  year = {2024},
  doi = {10.1109/isit57864.2024.10619313},
}
Figure