Conformal Prediction with Large Language Models for Multi-Choice Question Answering

Bhawesh Kumar, Charlie Lu, Gauri Gupta, Anil Palepu, David Bellamy +2 more
5/28/2023
cs.CLcs.LGstat.ML

No official code found. Best implementation: bhaweshiitk/ConformalLLM (69 stars, MIT, last commit 2024-06-21).

Abstract

As large language models continue to be widely developed, robust uncertainty quantification techniques will become crucial for their safe deployment in high-stakes scenarios. In this work, we explore how conformal prediction can be used to provide uncertainty quantification in language models for the specific task of multiple-choice question-answering. We find that the uncertainty estimates from conformal prediction are tightly correlated with prediction accuracy. This observation can be useful for downstream applications such as selective classification and filtering out low-quality predictions. We also investigate the exchangeability assumption required by conformal prediction to out-of-subject questions, which may be a more realistic scenario for many practical applications. Our work contributes towards more trustworthy and reliable usage of large language models in safety-critical situations, where robust guarantees of error rate are required.

View on arXivView PDF

Code Implementations(1)

MIT

Extending Conformal Prediction to LLMs

696Python, Jupyter NotebookMay 12, 20232 years agoMIT

Similar Papers

Cite this paper

@article{kumar2023conformal,
  title  = {Conformal Prediction with Large Language Models for Multi-Choice Question Answering},
  author = {Bhawesh Kumar and Charlie Lu and Gauri Gupta and Anil Palepu and David Bellamy and Ramesh Raskar and Andrew Beam},
  year   = {2023},
  eprint = {2305.18404},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.18404v3}
}

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

Discussion