On Verbalized Confidence Scores for LLMs

Daniel Yang, Yao-Hung Hubert Tsai, Makoto Yamada
12/19/2024
cs.CL

Official code: danielyxyang/llm-verbalized-uq (12 stars, MIT, last commit 2024-12-20).

Abstract

The rise of large language models (LLMs) and their tight integration into our daily life make it essential to dedicate efforts towards their trustworthiness. Uncertainty quantification for LLMs can establish more human trust into their responses, but also allows LLM agents to make more informed decisions based on each other's uncertainty. To estimate the uncertainty in a response, internal token logits, task-specific proxy models, or sampling of multiple responses are commonly used. This work focuses on asking the LLM itself to verbalize its uncertainty with a confidence score as part of its output tokens, which is a promising way for prompt- and model-agnostic uncertainty quantification with low overhead. Using an extensive benchmark, we assess the reliability of verbalized confidence scores with respect to different datasets, models, and prompt methods. Our results reveal that the reliability of these scores strongly depends on how the model is asked, but also that it is possible to extract well-calibrated confidence scores with certain prompt methods. We argue that verbalized confidence scores can become a simple but effective and versatile uncertainty quantification method in the future. Our code is available at https://github.com/danielyxyang/llm-verbalized-uq .

View on arXivView PDF

Code Implementations(1)

MIT

Code for "On Verbalized Confidence Scores for LLMs"

124Python, Jupyter NotebookDec 19, 20241 years agoMIT

Similar Papers

Cite this paper

@article{yang2024verbalized,
  title  = {On Verbalized Confidence Scores for LLMs},
  author = {Daniel Yang and Yao-Hung Hubert Tsai and Makoto Yamada},
  year   = {2024},
  eprint = {2412.14737},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.14737v1}
}

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

Discussion