ConU: Conformal Uncertainty in Large Language Models with Correctness Coverage Guarantees

Zhiyuan Wang, Jinhao Duan, Lu Cheng, Yue Zhang, Qingni Wang +4 more
6/29/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: Zhiyuan-GG/Conformal-Uncertainty-Criterion (8 stars, last commit 2025-07-11).

Abstract

Uncertainty quantification (UQ) in natural language generation (NLG) tasks remains an open challenge, exacerbated by the closed-source nature of the latest large language models (LLMs). This study investigates applying conformal prediction (CP), which can transform any heuristic uncertainty notion into rigorous prediction sets, to black-box LLMs in open-ended NLG tasks. We introduce a novel uncertainty measure based on self-consistency theory, and then develop a conformal uncertainty criterion by integrating the uncertainty condition aligned with correctness into the CP algorithm. Empirical evaluations indicate that our uncertainty measure outperforms prior state-of-the-art methods. Furthermore, we achieve strict control over the correctness coverage rate utilizing 7 popular LLMs on 4 free-form NLG datasets, spanning general-purpose and medical scenarios. Additionally, the calibrated prediction sets with small size further highlights the efficiency of our method in providing trustworthy guarantees for practical open-ended NLG applications.

View on arXivView PDF

Code Implementations(1)

[EMNLP 2024] ConU: Conformal Uncertainty in Large Language Models with Correctness Coverage Guarantees

81PythonSep 28, 20241 years ago

Similar Papers

Cite this paper

@article{wang2024conu,
  title  = {ConU: Conformal Uncertainty in Large Language Models with Correctness Coverage Guarantees},
  author = {Zhiyuan Wang and Jinhao Duan and Lu Cheng and Yue Zhang and Qingni Wang and Xiaoshuang Shi and Kaidi Xu and Hengtao Shen and Xiaofeng Zhu},
  year   = {2024},
  eprint = {2407.00499},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.00499v3}
}

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/2407.00499.svg)](https://codeofpaper.com/paper/2407.00499)

Discussion