Is the Prediction Set Size Well-Calibrated? A Closer Look at Uncertainty in Conformal Prediction

Ziquan Liu, Zhaohan Zhang, Feiyu Chen, Yan Yan, Ioannis Patras, Shaogang Gong, Antoni B. ChanTMLR 2026

TL;DR

Conformal prediction (CP) wraps a model's guesses into a prediction set guaranteed to contain the true answer with high probability (say, 90%), and practitioners routinely treat the prediction set size (PSS) as a measure of uncertainty. This paper asks a deceptively simple question: when a model outputs a smaller set, is it actually more accurate? The authors show that in modern deep classifiers, the answer is often "not really"—and they introduce CP-Aware Calibration (CPAC), a bi-level optimization method that aligns set size with accuracy without sacrificing the coverage guarantee.

What Problem Does This Paper Address?

In standard classification, we rely on point prediction: a model outputs a single label and a confidence score. We know how to calibrate that confidence score (e.g., if a model is 80% confident, it should be right 80% of the time), but a single guess offers no guarantee that the true label is actually covered.

Conformal prediction flips this around. It outputs a set of plausible labels $\mathcal{S}$ with a mathematical guarantee that the true label is inside $\mathcal{S}$ at least $1-\alpha$ of the time (e.g., 90%). Intuitively, a small set means the model is confident, and a large set means it's uncertain.

Figure 1: (a) and (b) compare CP and point prediction in coverage and calibration. (c) Two key contributions: CP’s calibration target in multinomial sampling and CP-aware calibration.

But there's a catch: coverage is not calibration. Just because $\mathcal{S}$ contains the truth 90% of the time doesn't mean that a set of size 2 corresponds to higher accuracy than a set of size 10. Measuring and fixing this gap is tricky for three reasons:

  1. CP outputs a set, not a single label, so there's no immediate "accuracy" to measure.
  2. Unlike confidence calibration—where the ideal target is a simple identity line $f(c) = c$—the relationship between set size and accuracy isn't linear.
  3. Any fix must preserve CP's $(1-\alpha)$ coverage guarantee.

Methods

To bridge the gap between prediction sets and accuracy, the authors introduce three key ideas:

  • From Sets to Accuracy via Multinomial Sampling: To evaluate a prediction set $\mathcal{S}_i$, they sample a single label from $\mathcal{S}_i$ using its normalized predictive probabilities raised to an inverse temperature $t \in [0, \infty)$. At $t=0$, this is uniform random sampling; as $t \to \infty$, it becomes standard Top-1 prediction.
  • A Power-Law Calibration Target: If you sample uniformly from a set of size $k$, your expected accuracy is $1/k$. Generalizing this—and backing it up with a theoretical analysis assuming Dirichlet-distributed probabilities—the authors propose a power-law target curve $f_\tau(k) = 1/k^\tau$, where $\tau \in [0, 1]$ accounts for non-uniform sampling. They measure calibration error using Standard CP-ECE (weighted by how often each set size occurs) and Uniform CP-ECE (unweighted across all set sizes).
  • CP-Aware Calibration (CPAC): Standard conformalization (here, Adaptive Prediction Sets, or APS) uses Platt scaling to maximize likelihood on a calibration set before computing the $(1-\alpha)$ quantile. CPAC replaces this with a bi-level optimization step: it learns a post-processing transformation $(W, b)$ on the logits (tested as a scalar, diagonal, or full matrix) to minimize the gap between sampled accuracy and $f_\tau(|\mathcal{S}_i|)$, plus a cross-entropy term, subject to the lower-level quantile constraint.

Datasets

The authors evaluate their framework across vision and language tasks, including both clean and corrupted test conditions:

  • CIFAR-100: Used with ResNet50 to study the effects of pre-training vs. random initialization and dataset subsampling.
  • ImageNet-1k: Used with ViT-Large, ViT-Base, and ResNet-101 under clean conditions and three types of corruptions (Gaussian noise, Gaussian blur, and random pixel dropout).
  • Topic Classification: A text classification benchmark evaluated with GPT-2 under clean conditions, embedding Gaussian noise, and synthetic typos ("Typo mix").

Key Insights and Ideas

  • More data and pre-training don't automatically calibrate CP: On CIFAR-100, pre-trained ResNet50 models achieved higher accuracy than randomly initialized ones, yet had worse Standard CP-ECE. Similarly, training with more data (higher subsampling ratios) often increased Standard CP-ECE.
  • The accuracy–calibration trade-off in sampling: As the sampling temperature decreases (moving from uniform sampling $\to$ multinomial $\to$ Top-1), overall accuracy climbs, but the calibration of the prediction set size gets noticeably worse.
Figure 3: Sampling accuracy versus prediction set size (PSS) on three datasets. As the temperature in multinomial sampling decreases (uniform⇒multinomial⇒Top-1), accuracy increases but the calibration of PSS worsens. The shaded area shows the standard deviation over five seeds.
  • Simpler is better: Across experiments, the simplest parameterization—CPAC-scalar (a single learned scalar)—consistently outperformed diagonal and full-matrix parameterizations. You don't need extra model capacity to calibrate set sizes.

Key Results

CPAC consistently improved PSS calibration across architectures, corruptions, and modalities without hurting Top-1 accuracy or breaking the ~90% coverage guarantee:

  • ImageNet-1k (ViT-Large & ViT-Base): Across clean and 9 corrupted conditions, CPAC significantly reduced both Standard and Uniform CP-ECE compared to standard Platt Scaling (PS). On clean ViT-Large, CPAC-scalar cut Uniform CP-ECE from 6.63% to 2.88% and Standard CP-ECE from 8.41% to 6.52%, while keeping accuracy at 81.97%, coverage at 90.28%, and even shrinking average set size from 5.71 to 2.48.
  • Topic Classification (GPT-2): Across 13 matched conditions (clean, noise, typos), CPAC significantly outperformed PS. On clean data, CPAC-scalar reduced Standard CP-ECE from 9.16% to 4.63% and Uniform CP-ECE from 7.78% to 4.13%.

Limitations and Future Work

The authors note that while CPAC's bi-level optimization works well in practice across vision and language models, its convergence and generalization properties are only validated empirically. Providing a formal theoretical analysis of this bi-level optimization is left for future work.

Summary updated

BibTeX
@article{liu2026is,
  author = {Ziquan Liu and Zhaohan Zhang and Feiyu Chen and Yan Yan and Ioannis Patras and Shaogang Gong and Antoni B. Chan},
  title = {{Is the Prediction Set Size Well-Calibrated? A Closer Look at Uncertainty in Conformal Prediction}},
  journal = {Accepted by TMLR},
  year = {2026},
  url = {https://openreview.net/forum?id=lv4gVtbve3},
}
Figure