Skip to main content
QUICK REVIEW

[论文解读] On Verbalized Confidence Scores for LLMs

Daniel Yang, Yao-Hung Hubert Tsai|arXiv (Cornell University)|Dec 19, 2024
Library Science and Information SystemsComputer Science被引用 5
一句话总结

本文将口述的置信度分数作为一种与提示与模型无关的LLMs不确定性量化方法进行分析,结果表明可靠性取决于提示策略与模型规模,结合多种方法在大模型上获得最佳结果。

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 .

研究动机与目标

  • 以口头化置信度分数作为输出不确定性度量,定义并量化LLM输出中的不确定性。
  • 评估数据集难度、模型容量和提示方法如何影响口头化置信度分数的可靠性。
  • 为微型和大型LLM的标定改进提供提示设计的实用指南。
  • 提供可复现的评估代码和基准,用于LLM回应中的口头化不确定性。

提出的方法

  • 将不确定性划分为输入、模型和输出分量,以聚焦于正确性输出的不确定性。
  • 定义可靠性度量:标定(ECE)、信息量(不同分数、方差)以及意义性(通过KL散度的数据集层级分布)。
  • 在10个数据集、11个LLM和17种提示方法上评估口头化置信度分数。
  • 使用标准化的提示模板并解析回答和置信度分数,对格式变体进行解析与过滤以处理变异性。
  • 比较提示方法和表述(basic、advanced、combo)在微型与大型LLM上的标定增益。
  • 基于模型规模、数据集难度和提示设计分析结果,以识别最佳实践。
(a) for LLM-based chat systems
(a) for LLM-based chat systems

实验结果

研究问题

  • RQ1在不同数据集和模型上,口头化置信度分数作为不确定性度量的可靠性如何?
  • RQ2提示设计选择如何影响口头化置信度分数的标定、信息量和意义性?
  • RQ3更大的模型在改进口头化置信度分数的标定方面是否更能从复杂提示方法中受益?
  • RQ4哪种提示技术的组合在大型LLM上能获得最佳标定,对微型LLM是否影响不同?
  • RQ5在不同任务中,口头化置信度分数在多大程度上反映基础正确性?

主要发现

  • 口头化置信度分数的标定随着模型规模的增加而提升,对于至少有70B参数的模型,达到大约0.1 ECE。
  • 微型LLM受益于简单提示方法,probscore 形式提供显著的标定提升。
  • 大型LLM通过结合多种提示方法(probscore 与高级描述及少样本提示)受益,标定优于简单提示。
  • 总体而言,表现最佳的大模型方法(combo)在评估的大型LLMs上,平均偏离经验准确率约7%。
  • Gemma tiny 模型(2B)显示出特别差的标定以及置信度与准确性的弱相关性。
  • 提示设计强烈中介标定,且在某些模型上朴素提示优于更复杂的设置,这对“复杂性总是有帮助”的观念提出挑战。
  • 该研究提供了可复用的评估代码库,并强调在提示调优良好时,口头化置信度分数是实际不确定性量化的有前景的方法。
(b) for LLM agents
(b) for LLM agents

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。