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

大型语言模型能否表达其不确定性?对LLM中置信度引导方法的实证评估

Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMs

National University of Singapore(新加坡国立大学);École Polytechnique Fédérale de Lausanne(洛桑联邦理工学院);The Hong Kong University of Science and Technology(香港科技大学)

Miao Xiong, Zhiyuan Hu, Xinyang Lu, Yifei Li, Jie Fu, Junxian He, Bryan Hooi

AI总结:

本研究提出一个系统框架,通过提示策略、采样方法和聚合技术,在黑盒LLM中引导置信度,并在多个数据集和模型上评估,发现LLM过度自信,但所提策略可缓解,且与白盒方法差距小。

摘要:

赋予大型语言模型准确表达其答案置信度的能力,对于可信赖的决策至关重要。以往的置信度引导方法主要依赖于对内部模型信息的白盒访问或模型微调,这些方法已不太适用于LLM,尤其是闭源的商业API。这导致了对探索黑盒方法进行LLM不确定性估计这一未开发领域的日益增长的需求。为了更好地分解问题,我们定义了一个系统性的框架,包含三个组成部分:用于引导口头化置信度的提示策略、用于生成多个响应的采样方法,以及用于计算一致性的聚合技术。随后,我们在两个关键任务——置信度校准和失败预测——上,对五种类型的数据集(如常识和算术推理)以及五种广泛使用的LLM(包括GPT-4和LLaMA 2 Chat)进行了这些方法的基准测试。我们的分析揭示了几个关键见解:1) LLM在口头化其置信度时,倾向于过度自信,可能模仿人类表达置信度的模式。2) 随着模型能力的扩展,校准和失败预测的性能均有所提升。3) 采用我们提出的策略,如受人类启发的提示、多个响应之间的一致性以及更好的聚合策略,可以从不同角度帮助缓解这种过度自信。4) 与白盒方法的比较表明,虽然白盒方法表现更好,但差距很小,例如AUROC从0.522到0.605。尽管取得了这些进展,但没有一种技术能持续优于其他技术,且所有调查的方法在具有挑战性的任务(如需要专业知识)中表现不佳,这表明仍有显著的改进空间。我们相信这项研究可以作为一个强有力的基线,并为在黑盒LLM中引导置信度提供见解。

英文摘要:

Empowering large language models to accurately express confidence in their answers is essential for trustworthy decision-making. Previous confidence elicitation methods, which primarily rely on white-box access to internal model information or model fine-tuning, have become less suitable for LLMs, especially closed-source commercial APIs. This leads to a growing need to explore the untapped area of black-box approaches for LLM uncertainty estimation. To better break down the problem, we define a systematic framework with three components: prompting strategies for eliciting verbalized confidence, sampling methods for generating multiple responses, and aggregation techniques for computing consistency. We then benchmark these methods on two key tasks-confidence calibration and failure prediction-across five types of datasets (e.g., commonsense and arithmetic reasoning) and five widely-used LLMs including GPT-4 and LLaMA 2 Chat. Our analysis uncovers several key insights: 1) LLMs, when verbalizing their confidence, tend to be overconfident, potentially imitating human patterns of expressing confidence. 2) As model capability scales up, both calibration and failure prediction performance improve. 3) Employing our proposed strategies, such as human-inspired prompts, consistency among multiple responses, and better aggregation strategies can help mitigate this overconfidence from various perspectives. 4) Comparisons with white-box methods indicate that while white-box methods perform better, the gap is narrow, e.g., 0.522 to 0.605 in AUROC. Despite these advancements, none of these techniques consistently outperform others, and all investigated methods struggle in challenging tasks, such as those requiring professional knowledge, indicating significant scope for improvement. We believe this study can serve as a strong baseline and provide insights for eliciting confidence in black-box LLMs.

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

↑