Skip to main content
QUICK REVIEW

[Paper Review] On Verbalized Confidence Scores for LLMs

Daniel Yang, Yao-Hung Hubert Tsai|arXiv (Cornell University)|Dec 19, 2024
Library Science and Information SystemsComputer Science5 citations
TL;DR

The paper analyzes verbalized confidence scores as a prompt- and model-agnostic method for uncertainty quantification in LLMs, showing reliability hinges on prompting strategy and model size, with best results from combining methods for large models.

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 .

Motivation & Objective

  • Define and quantify uncertainty in LLM outputs focusing on the verbalized confidence score as the output uncertainty measure.
  • Assess how dataset difficulty, model capacity, and prompting methods affect reliability of verbalized confidence scores.
  • Provide practical guidance on prompt design to improve calibration for tiny and large LLMs.
  • Offer reproducible evaluation code and benchmarks for verbalized uncertainty in LLM responses.

Proposed method

  • Partition uncertainty into input, model, and output components to focus on output uncertainty of correctness.
  • Define reliability metrics: calibration (ECE), informativeness (distinct scores, variance), and meaningfulness (dataset-level distribution via KL divergence).
  • Evaluate verbalized confidence scores across 10 datasets, 11 LLMs, and 17 prompt methods.
  • Use a standardized prompt template and parse responses for answer and confidence score, with parsing and filtering to handle format variability.
  • Compare prompt methods and formulations (basic, advanced, combo) for tiny vs. large LLMs to assess calibration gains.
  • Analyze results with respect to model size, dataset difficulty, and prompt design to identify best practices.
(a) for LLM-based chat systems
(a) for LLM-based chat systems

Experimental results

Research questions

  • RQ1How reliable are verbalized confidence scores as a measure of uncertainty across different datasets and models?
  • RQ2How do prompt design choices affect the calibration, informativeness, and meaningfulness of verbalized confidence scores?
  • RQ3Do larger models benefit more from complex prompt methods in improving calibration of verbalized confidence scores?
  • RQ4What combination of prompt techniques yields the best calibration for large LLMs, and is the effect different for tiny LLMs?
  • RQ5To what extent do verbalized confidence scores reflect underlying correctness across diverse tasks?

Key findings

  • Calibration of verbalized confidence scores improves with model size, with large models achieving around 0.1 ECE for models with at least 70B parameters.
  • Tiny LLMs benefit from simple prompt methods, with probscore formulations offering noticeable calibration gains.
  • Large LLMs benefit from combining multiple prompt methods (probscore with advanced descriptions and few-shot prompting), achieving stronger calibration than simple prompts.
  • Overall, the best-performing large-model method (combo) yields about a 7% average deviation from empirical accuracy across evaluated large LLMs.
  • Gemma tiny model (2B) showed particularly poor calibration and weak dependence between confidence and accuracy.
  • Prompt design strongly mediates calibration, and vanilla prompts outperform more complex setups for some models, challenging the notion that complexity always helps.
  • The study provides a reusable evaluation codebase and emphasizes that verbalized confidence scores are promising for practical uncertainty quantification when prompts are well-tuned.
(b) for LLM agents
(b) for LLM agents

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.