TL;DR
Conformal prediction (CP) provides rigorous mathematical guarantees that a model's prediction set contains the true label, but it often suffers from ranking instability due to noisy, single-score realizations. This paper introduces an Empirical Bayes framework that uses $r$-values to turn score variability into an informative signal. By accounting for both a candidate's average score and its uncertainty, this method significantly shrinks prediction sets and improves ranking stability while preserving the original coverage guarantees.
What Problem Does This Paper Address?
Conformal prediction is a popular wrapper for modern deep learning models because it delivers distribution-free coverage guarantees—meaning it outputs a set of labels guaranteed to contain the correct answer with a user-specified probability (e.g., 95%). However, standard CP relies on a single score realization from a model.
If several candidate labels have similar scores, small noise-driven fluctuations can drastically alter their order. A weak, high-variance candidate might sneak into the conformal set simply because a specific prompt phrasing or posterior sample made it look temporarily strong. While some methods try to mitigate this by averaging multiple score realizations ($CP_{\text{avg}}$), averaging completely discards the variance information. The authors argue that score variability shouldn't be smoothed away; instead, it should be embraced as a valuable signal to distinguish stable, trustworthy predictions from noise-driven flukes.
Methods
The authors introduce Empirical Bayes Conformal Prediction ($CP_{r\text{-value}}$). Instead of using raw model scores or simple averages as the nonconformity score, they compute an $r$-value for each candidate. Originally proposed in statistical literature for large-scale inference, the $r$-value in this context measures the posterior probability that a candidate's latent, true score belongs to the top-ranked group, factoring in both its mean score and its uncertainty.
The paper provides two ways to estimate these $r$-values:
- Parametric ($Normal-Normal$ model): Assumes Gaussian fluctuations around a latent score. This yields a closed-form expression that explicitly demonstrates how score magnitude and variability trade off to penalize unstable candidates.
- Non-parametric (Posterior-sampling): An assumption-free Monte Carlo estimator. It simply counts how consistently a candidate appears in the top $k$ ranks across multiple perturbed samples. This is ideal for bounded probabilities or discrete scores common in LLMs and VLMs.
To practically generate the necessary score variability without the prohibitive cost of retraining large models, the authors use two distinct pipelines:
- For Vision Models: They freeze the backbone and train lightweight adapters using the Weighted Bayesian Bootstrap (WBB) framework to efficiently sample approximate posterior model parameters.
- For Vision-Language (VLMs) and Language Models (LLMs): They use prompt paraphrasing (via GPT-4) to generate diverse but semantically equivalent variations of the input text, exposing the model's sensitivity to prompt formatting.
Datasets
The framework was evaluated across a diverse suite of standard vision, VLM, and LLM benchmarks:
- Image Classification: ImageNet evaluated on ViT-Large, ViT-Base, ResNet-50, and ResNet-18.
- Vision-Language Benchmarks: CIFAR-10, CIFAR-100, ImageNet, ImageNet-A, ImageNet-R, and EuroSAT evaluated using CLIP (Base-Patch16), SigLIP2, and MobileCLIP2.
- Language Model Tasks: MMLU (close-ended multiple choice) using LLaMA 3B, Mistral, Phi 3.5, and Qwen 7B; TruthfulQA (open-ended response evaluation) using LLaMA 3B and GPT-4o as a judge.
Key Insights and Ideas
- Inconsistency as a Feature, Not a Bug: Instead of treating model inconsistency across prompts or parameter samples as a weakness, $CP_{r\text{-value}}$ repurposes it as a second-order signal for conformal efficiency.
- Asymptotic Rejection of High Variance: The authors mathematically prove that under standard CP, a false candidate with infinite variance has a $50\%$ chance of being included in the prediction set. Under $CP_{r\text{-value}}$, that inclusion probability drops to $0\%$.
- Graceful Degradation: When score variability vanishes or becomes uninformative ($\sigma^2 \to 0$), the threshold function mathematically reduces to standard point-estimate ranking. This means the method safely reverts to standard CP behavior when there is no uncertainty to exploit, acting as a built-in safety check.
Key Results
- Smaller Prediction Sets: On the ImageNet dataset using CLIP, $CP_{r\text{-value}}$ reduced the average conformal set size to 5.7, compared to 10.1 for standard CP and 6.9 for $CP_{\text{avg}}$, all while maintaining the target 95% coverage.
- Gains Shrink as Models Improve: Testing across the MobileCLIP2 and SigLIP2 families revealed that less accurate models benefit the most from $CP_{r\text{-value}}$ (up to 33.5% set size reduction). As models become highly accurate and stable, the gains naturally decrease (down to ~4%), validating the theory that the method adapts to the informativeness of the variance.
- Breaking Ties in LLMs: For open-ended text generation on TruthfulQA, where evaluator models often output heavily tied integer scores (e.g., multiple answers getting a perfect 10.0), the $r$-value successfully broke ties by evaluating which answers were scored stably across paraphrased questions.
Limitations and Future Work
- Quality of Variability Estimates: The efficiency of $CP_{r\text{-value}}$ hinges entirely on how well the sampled perturbations capture true epistemic uncertainty. If the prompt paraphrases or adapters produce uninformative noise, the method provides little to no benefit over standard CP.
- Adapter Accuracy Trade-off: While training lightweight WBB adapters is computationally efficient, it introduces a slight drop in raw model accuracy (around 1–1.5% for ViT models).
- Limited Action Spaces: For tasks with very few candidate options (like MMLU's 4-choice multiple-choice questions), the absolute reductions in set size are modest because there is very little ranking headroom to optimize.
Summary updated