arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.14737cs.CL
收藏

关于大型语言模型(LLMs)的言语化置信度分数

On Verbalized Confidence Scores for LLMs

ETH Zurich(苏黎世联邦理工学院)

Daniel Yang, Yao-Hung Hubert Tsai, Makoto Yamada

AI总结:

本文研究大型语言模型的不确定性量化,提出让LLM以置信度分数言语化表达不确定性,通过基准测试发现其可靠性依赖于提示方法,证实了该方法未来作为通用不确定性量化手段的潜力。

摘要:

大型语言模型(LLMs)的兴起及其与日常生活的紧密整合,使得致力于其可信赖性变得至关重要。对LLMs进行不确定性量化(uncertainty quantification)可以建立人类对其回复的信任,同时也允许LLM智能体基于彼此的不确定性做出更明智的决策。为了估计回复中的不确定性,通常使用内部token logits、特定任务的代理模型或对多个回复进行采样。本工作专注于要求LLM本身将其不确定性以置信度分数的形式言语化,作为其输出token的一部分,这是一种有前景的、与提示和模型无关且开销较低的不确定性量化方法。使用广泛的基准测试,我们评估了言语化置信度分数在不同数据集、模型和提示方法下的可靠性。我们的结果显示,这些分数的可靠性在很大程度上取决于如何询问模型,但也表明使用某些提示方法可以提取出校准良好的置信度分数。我们认为,言语化置信度分数在未来可以成为一种简单但有效且通用的不确定性量化方法。我们的代码可在 https://github.com/danielyxyang/llm-verbalized-uq 获取。

英文摘要:

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 .

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑