COPU: Conformal Prediction for Uncertainty Quantification in Natural Language Generation

Sean Wang, Yicheng Jiang, Yuxin Tang, Lu Cheng, Hanjie Chen
2/18/2025
cs.CL

No confident code implementation found for this paper.

Abstract

Uncertainty Quantification (UQ) for Natural Language Generation (NLG) is crucial for assessing the performance of Large Language Models (LLMs), as it reveals confidence in predictions, identifies failure modes, and gauges output reliability. Conformal Prediction (CP), a model-agnostic method that generates prediction sets with a specified error rate, has been adopted for UQ in classification tasks, where the size of the prediction set indicates the model's uncertainty.

Show full abstract

However, when adapting CP to NLG, the sampling-based method for generating candidate outputs cannot guarantee the inclusion of the ground truth, limiting its applicability across a wide range of error rates. To address this, we propose \ourmethod, a method that explicitly adds the ground truth to the candidate outputs and uses logit scores to measure nonconformity. Our experiments with six LLMs on four NLG tasks show that \ourmethod outperforms baseline methods in calibrating error rates and empirical cover rates, offering accurate UQ across a wide range of user-specified error rates.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2025copu,
  title  = {COPU: Conformal Prediction for Uncertainty Quantification in Natural Language Generation},
  author = {Sean Wang and Yicheng Jiang and Yuxin Tang and Lu Cheng and Hanjie Chen},
  year   = {2025},
  eprint = {2502.12601},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12601v3}
}

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

Discussion