Conditional Factuality Controlled LLMs with Generalization Certificates via Conformal Sampling

Kai Ye, Qing-Tao Pan, Shuo Li
3/1/2026
1 citation

No official code found. Best implementation: FlynnYe/CFC-LLMs (1 star, last commit 2026-06-18).

Abstract

Large language models (LLMs) need reliable test-time control of hallucinations. Existing conformal methods for LLMs typically provide only \emph{marginal} guarantees and rely on a single global threshold, which can under-cover hard prompts, over-cover easy ones, and produce oversized prediction sets.

Show full abstract

We propose \emph{Conditional Factuality Control} (CFC), a post-hoc conformal framework that returns \emph{set-valued} outputs with \emph{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 \emph{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(\sqrt{\log(1/\delta)/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.

View on arXivView PDF

Code Implementations(1)

FlynnYe/CFC-LLMsCommunity65%

Official code for "Conditional Factuality Controlled LLMs with Generalization Certificates via Conformal Sampling" (CVPR 2026).

10Mar 22, 20265 months ago

Similar Papers

Cite this paper

@article{ye2026conditional,
  title  = {Conditional Factuality Controlled LLMs with Generalization Certificates via Conformal Sampling},
  author = {Kai Ye and Qing-Tao Pan and Shuo Li},
  year   = {2026},
  eprint = {2603.27403},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2603.27403},
  journal = {Computer Vision and Pattern Recognition}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.27403.svg)](https://codeofpaper.com/paper/2603.27403)

Discussion