TL;DR
Standard conformal prediction methods provide rigorous factuality guarantees for Large Language Models (LLMs) on average, but they apply a "one-size-fits-all" threshold that fails at the individual prompt or category level. This paper introduces an adaptive conformal prediction framework that dynamically adjusts uncertainty thresholds using prompt embeddings and quantile regression. The result is an approach that maintains strict mathematical guarantees while significantly improving factuality calibration across diverse and heterogeneous topics.
What Problem Does This Paper Address?
When LLMs generate long-form text or answer multiple-choice questions, they are notoriously prone to hallucinations. To mitigate this, researchers use conformal prediction (CP)—a framework that provides statistical guarantees on error rates by filtering out low-confidence claims or generating a subset of likely answers.
However, existing conformal procedures for LLMs lack adaptivity. They calculate a single global threshold across an entire calibration dataset and apply it uniformly to every test prompt. If your dataset contains a mix of easy prompts (e.g., writing a biography of a famous person) and hard prompts (e.g., explaining a niche scientific invention), a global threshold causes severe miscalibration. It will be overly conservative on hard topics (filtering out too many valid claims) and too lax on easy ones (letting hallucinations slip through).
This paper tackles the challenge of achieving conditional coverage—ensuring that the statistical safety guarantees hold true not just on average, but for specific types of prompts and topics.
Methods
The authors propose Adaptive Conformal Factuality, extending score-transformation techniques typically used in regression to the text generation domain.
The pipeline works as follows:
- Claim Decomposition & Scoring: For long-form generation, the LLM's response is broken down into atomic, verifiable claims. Each claim receives an uncertainty score $s(c)$ based on white-box model probabilities (e.g., Claim Conditioned Probability).
- Split Calibration: The calibration data is split into two distinct sets ($D_{cal1}$ and $D_{cal2}$).
- Learning Prompt Difficulty ($D_{cal1}$): The authors extract prompt embeddings using a pre-trained sentence encoder and reduce their dimensionality via PCA. They train a conditional quantile estimator—a simple two-layer Multi-Layer Perceptron (MLP) using pinball loss—to predict the $(1-\alpha)$-quantile of the uncertainty score based entirely on the prompt embedding. This acts as a local difficulty proxy.
- Global Rescaling ($D_{cal2}$): Uncertainty scores are normalized (multiplicatively rescaled) by dividing them by the predicted local quantile. A single, calibrated global threshold is then computed on these transformed, flattened scores.
- Test-Time Filtering: At test time, claims are filtered dynamically using the prompt-specific adjusted threshold.
The authors also demonstrate that this framework seamlessly adapts to multiple-choice question answering (MCQA) by utilizing the Least Ambiguous Classifier (LAC) score as the base nonconformity metric.
Datasets
The method was evaluated using three white-box models: Mistral-7B-Instruct-v0.2, Llama-3.1-8B-Instruct, and Gemma-3-12B-Instruct across two primary tasks:
- Long-form QA: An expanded version of the benchmark by Shelmanov et al. (2025), consisting of 300 samples per category across 8 distinct domains (Biographies, Cities, Movies, Inventions, Books, Artworks, Landmarks, and Events). Factuality labels were generated using GPT-4o.
- Multiple-Choice QA: 16 categories selected from the popular MMLU dataset (e.g., Marketing, Accounting, Professional Medicine, Clinical Knowledge), ensuring at least 100 questions per category.
Key Insights and Ideas
- Marginal Coverage is Deceptive: A method can boast a perfect 80% success rate on average while actually delivering 95% accuracy on easy topics and a disastrous 40% on hard ones.
- Embeddings Encode Difficulty: One of the most elegant findings is that standard text embeddings contain sufficient semantic context for a lightweight MLP to accurately predict how much an LLM will struggle with a given topic.
- Multiplicative Normalization Works: Rescaling uncertainty scores by a conditional quantile successfully flattens the variance across heterogeneous categories, allowing a single global threshold to act fairly across all domains.
Key Results
The adaptive approach consistently outperformed standard global thresholding (Conformal Factuality) by aligning empirical coverage closely with target coverage across individual categories.
As shown in the long-form QA results, the standard method exhibits severe over-coverage for complex topics like "Inventions" and under-coverage for "Persons". The adaptive method tightly hugs the ideal diagonal line:
A similar trend was observed in the Multiple-Choice QA setting across MMLU categories, where the adaptive method corrected the global baseline's tendency to over-cover "Marketing" and under-cover "Accounting":
Furthermore, Dolan-Moré performance profiles demonstrated that the adaptive method consistently achieved lower absolute calibration errors across a significantly larger fraction of test problems and random seeds compared to the baseline.
Limitations and Future Work
- White-Box Dependency: The method relies on claim-level uncertainty scores derived from token probabilities, meaning it cannot be applied out-of-the-box to black-box APIs like OpenAI's GPT-4 or Anthropic's Claude without access to log-probabilities.
- Sample Efficiency: Training the conditional quantile estimator requires splitting the calibration set, which demands more data than standard conformal prediction.
- Future Directions: The authors suggest extending this adaptive framework to broader, open-ended generation tasks, exploring more sophisticated input representations, and strengthening the underlying theoretical conditional guarantees.
Summary updated