Large language models (LLMs) are prone to generating factually incorrect outputs. Recent work has applied conformal prediction to provide uncertainty estimates and statistical guarantees for the factuality of LLM generations. However, existing approaches are typically not prompt-adaptive, limiting their ability to capture input-dependent variability. As a result, they may filter out too few items (leading to over-coverage) or too many (under-coverage) for a given task or prompt. We propose an adaptive conformal prediction approach that extends conformal score transformation methods to LLMs, with applications to long-form generation and multiple-choice question answering. This enables prompt-dependent calibration, retaining marginal coverage guarantees while improving conditional coverage. In addition, the approach naturally supports selective prediction, allowing unreliable claims or answer choices to be filtered out in downstream applications. We evaluate our approach on multiple white-box models across diverse domains and show that it significantly outperforms existing baselines in terms of conditional coverage.
Figures & tables
Figure 1: Long-form QA target vs. empirical coverage for (a) Conformal Factuality and (b) Adaptive Conformal (ours). The conformal procedure is calibrated jointly on two categories (“Inventions” and “Persons”). While both methods achieve the target coverage marginally, only the adaptive approach closely approximates conditional coverage.
Figure 2: Multi-choice QA experimental results: target vs. empirical coverage for (a) Conformal Factuality and (b) Adaptive Conformal method (ours). Results are shown for two prompt categories, with coverage reported for each category individually as well as jointly. The conformal threshold is calibrated jointly across both categories.
Claim Scoring Method
Mistral 7B
Llama3 8B
Gemma3 12B
Random Baseline
0.189
0.166
0.138
Maximum Probability
0.273
0.281
0.180
Perplexity
0.255
0.257
0.162
Max Token Entropy
0.313
0.324
0.189
Pointwise Mutual Information
0.189
0.158
0.136
Claim Conditioned Probability
0.360
0.367
0.238
Table 1: PR-AUC for long-form QA claim scoring functions on Mistral 7B, Llama3 8B and Gemma3 12B. Higher is better, best method per column is colored.
Coverage
% Removed
Category
Original
Adaptive
Original
Adaptive
inventions
84.59 ± 2.98
82.47 ± 4.26
87.71 ± 0.47
83.33 ± 3.30
persons
81.37 ± 2.87
78.97 ± 5.88
82.41 ± 1.02
81.12 ± 5.43
artworks
77.39 ± 3.46
79.29 ± 3.22
90.12 ± 0.53
82.40 ± 2.23
books
82.02 ± 3.33
81.23 ± 4.03
84.83 ± 0.76
81.47 ± 3.87
cities
78.31 ± 3.37
79.08 ± 4.63
82.11 ± 0.89
80.47 ± 4.32
Table 2: Mistral 7B results (mean ± std over seeds) at α=0.20 . Coverage target is 0.80 . Adaptive conformal prediction improves category-wise coverage alignment while typically reducing the fraction of removed items.
Figure 3: Dolan-Moré profiles for calibration error for (a) Mistral 7B, (b) Llama3 8B. Problems are defined by (category, seed, α ) with α∈{0.5,0.55,…,0.8} , 20 seeds and 16 categories. Calibration error is defined as ∣empirical coverage−(1−α)∣ , normalized per problem. The x-axis ( δ ) is plotted on a logarithmic scale. Curves show the fraction of problems within a factor δ of the best (higher is better).
Coverage
% Removed
Category
Original
Adaptive
Original
Adaptive
inventions
85.12 ± 2.69
80.33 ± 4.93
88.18 ± 0.92
81.52 ± 3.44
persons
73.91 ± 2.32
79.82 ± 3.62
79.45 ± 0.73
81.80 ± 4.02
artworks
68.00 ± 4.98
76.90 ± 5.02
80.99 ± 0.89
81.04 ± 3.87
books
85.73 ± 3.75
82.20 ± 3.60
83.82 ± 1.30
80.66 ± 3.50
cities
86.35 ± 2.04
77.21 ± 4.10
86.54 ± 0.47
80.79 ± 3.61
Table 3: Gemma-3 12B results (mean ± std over seeds) at α=0.20 with target coverage 0.80 .
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Coverage
% Removed
Category
Original
Adaptive
Original
Adaptive
inventions
85.66 ± 3.38
81.81 ± 3.86
87.56 ± 1.35
82.25 ± 3.14
persons
78.59 ± 3.75
81.29 ± 4.84
86.87 ± 1.31
84.35 ± 3.24
artworks
79.90 ± 4.25
80.44 ± 4.03
88.39 ± 1.13
83.83 ± 3.75
books
78.07 ± 5.93
78.51 ± 4.16
78.18 ± 1.12
78.98 ± 2.95
cities
82.98 ± 6.15
77.65 ± 3.64
85.01 ± 1.00
81.89 ± 2.30
Appendix
Table 4: LLaMA-3.1 8B results (mean ± std over seeds) at α=0.20 with target coverage 0.80 .
Figure 4: Multi-choice QA target vs. empirical coverage for (a) Conformal Factuality and (b) Our adaptive conformal method. The conformal procedure is calibrated on all 16 categories. While both methods achieve the target coverage marginally, only the adaptive approach closely approximates conditional coverage.
Figure 5: T-SNE visualization of PCA clustering of long-form QA prompts.
Category
Size
Marketing
259
Professional Accounting
313
College Computer Science
111
Formal Logic
140
High School Computer Science
109
Computer Security
111
Appendix
Table 5: Category indices and corresponding dataset sizes.
Large language models (LLMs) need reliable test-time control of hallucinations. Existing conformal methods for LLMs typically provide only marginal guarantees and rely on a single global threshold, which can under-cover hard prompts, over-cover easy ones, and produce oversized prediction sets. We propose Conditional Factuality Control (CFC), a post-hoc conformal framework that returns set-valued outputs with conditional coverage guarantees. CFC defines a continuous, feature-conditional acceptance threshold through augmented quantile regression on a latent ``success'' score, and deploys it through a fixed-point threshold rule at inference time. Theoretically, we show that CFC satisfies a conditional coverage guarantee under exchangeability and analyze its efficiency, proving that, under mild assumptions on the score distributions, the conditional rule is strictly more sample-efficient than marginal conformal prediction at the same target coverage. We further derive a PAC-style variant, CFC-PAC, which shrinks the nominal risk level based on a stability bound, yielding a finite-sample certificate that the conditional miscoverage deviates from the target by at most O(log(1/δ)/N). Empirically, on synthetic data, real-world reasoning and QA benchmarks, and a Flickr8k VLM setting, CFC and CFC-PAC consistently attain near-target coverage across difficulty groups while using smaller prediction sets than CP and non-CP baselines.
Conformal prediction (CP) is a distribution-free framework for uncertainty quantification that has recently been adapted to large language models (LLMs), providing prediction sets with finite-sample coverage guarantees under exchangeability. Yet for LLMs, nonconformity scores are often induced by an inference pipeline, not just a fixed model, making them depend not only on the data distribution but also on configurable factors such as the prompt template, decoding parameters, and deployment setting. Since such configurations are routinely modified in practice but rarely treated as a source of shift, their impact on CP validity remains poorly understood. We call this configuration shift and study it systematically along three axes: prompt template, decoding temperature, and weight quantization. In a broad empirical study spanning 9 LLMs, 4 datasets, and 4 nonconformity scores, we find that configuration shift consistently erodes CP validity, often driving empirical coverage below the target. By contrast, efficiency is largely preserved: valid prediction sets remain close in size to the i.i.d. baseline. We derive coverage lower bounds that attribute this loss to a discrepancy between calibration and test score distributions, and use their finite-sample plug-in versions as empirical diagnostics of shift severity. We further show that these findings lead to practical mitigations: bound-inspired recalibration is effective with limited test examples, while fragility-aware calibration ensembling recovers much of the lost coverage without test data.
Yuqicheng Zhu, Jialin Yu, Lin Li +7
University of Stuttgart · Robert Bosch GmbH · University of Oxford +4
Large language models are increasingly deployed in settings where reliability matters, yet output-level uncertainty signals such as token probabilities, entropy, and self-consistency can become brittle under calibration--deployment mismatch. Conformal prediction provides finite-sample validity under exchangeability, but its practical usefulness depends on the quality of the nonconformity score. We propose a conformal framework for LLM question answering that uses internal representations rather than output-facing statistics: specifically, we introduce Layer-Wise Information (LI) scores, which measure how conditioning on the input reshapes predictive entropy across model depth, and use them as nonconformity scores within a standard split conformal pipeline. Across closed-ended and open-domain QA benchmarks, with the clearest gains under cross-domain shift, our method achieves a better validity--efficiency trade-off than strong text-level baselines while maintaining competitive in-domain reliability at the same nominal risk level. These results suggest that internal representations can provide more informative conformal scores when surface-level uncertainty is unstable under distribution shift.
Yanli Wang, Peng Kuang, Xiaoyu Han +2
Imperial College London · Zhejiang University · University of Illinois Urbana-Champaign +1