Conformal Language Modeling via Posterior Sampling
Nicolas Emmenegger, Theo X. Olausson, Armando Solar-Lezama, Chara Podimata
NeurIPS page · OpenReview · Open on the map
Category: LLM Agents, Evals & Benchmarks › LLM Uncertainty Quantification · Type: new method · Keywords: conformal prediction, language model hallucination, posterior sampling, risk control, text generation
Summary
Conformal Language Modeling via Posterior Sampling introduces a calibration procedure that samples from approximated LLM posteriors conditioned on high-scoring regions to control hallucinations while improving downstream utility.
Explained to a 5-year-old
Big computer programs called language models sometimes make up facts that aren't true. To help them be more honest, researchers created a new way to choose only the parts that are likely correct. This new method makes sure the made-up facts are rare while still letting the program write interesting stories. It works especially well when the program writes about people's lives or solves math problems. As a result, the stories and answers are more useful and trustworthy.
Explained to a 5-year-old, longer
Big computer programs called language models are designed to write sentences like a person would. Sometimes these programs write things that are not true, which we call "hallucinations." Having false information is a problem because it can confuse people who read the text. Some scientists tried to fix this by checking the written text after it was made and removing the false parts. But this fixing step can make the story sound weird or not make sense. The new idea in this paper is to choose the right words before writing the whole sentence. It does this by looking at a special region of the model's predictions that is likely to be correct. The researchers created a method to find this region and make sure it works well. This way, the model can write stories that are both interesting and mostly true. They tested it on writing about people's lives and solving math problems. The results show that the new method keeps the same safety guarantees as before. At the same time, the stories and solutions are more helpful and reliable.
For a technical reader
The paper introduces Conformal Language Modeling via Posterior Sampling, which integrates calibration directly into the sampling process of large language models. Instead of generating text and then filtering out hallucinations, the approach conditions sampling on a high-scoring region that has been calibrated to meet a target risk level. This calibration procedure is designed for sequential generation, ensuring that each step respects the statistical guarantees while preserving coherence. Empirical evaluations on biography generation and mathematical problem solving show that the method maintains the same coverage guarantees as prior work but yields more useful and consistent outputs. The result is a more reliable text generation pipeline that can be deployed in applications where factual accuracy and utility are critical.
Problem
Large language models often generate hallucinated content, and existing post-hoc methods that filter samples can produce incoherent or unlikely outputs and cannot improve response quality. This leaves a gap in methods that both control hallucination risk and enhance the usefulness of generated text.
Method
The approach samples from approximations to an LLM posterior conditioned on a calibrated high-scoring region, using a calibration procedure designed for conditional sequential generation to achieve target risk control. This integrates calibration with generation rather than post-processing samples.
Results
The approach achieves the same statistical risk control as prior work while providing higher downstream utility on biography generation and mathematical problem solving.
Contributions
It introduces a calibration procedure for conditional sequential generation that integrates risk control with sampling, enabling more coherent and useful text generation while preserving theoretical guarantees.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction