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

LLM的不确定性估计与量化:一种简单的监督方法

Uncertainty Estimation and Quantification for LLMs: A Simple Supervised Approach

University of North Carolina(北卡罗来纳大学);Tsinghua University(清华大学);HKUST(GZ)(香港科技大学(广州));Imperial College London(伦敦帝国学院)

Linyu Liu, Yu Pan, Xiaocheng Li, Guanting Chen

AI总结:

本文提出一种利用隐藏激活和带标签数据的监督方法,用于LLM不确定性估计,并证明其能提升校准性能且适用于黑盒、灰盒和白盒场景。

摘要:

本文研究大语言模型(LLMs)的不确定性估计与校准问题。我们首先形式化了不确定性估计问题,这是现有文献中相关但尚未被充分探索的领域。随后,我们提出一种监督方法,利用带标签数据集来估计LLMs响应中的不确定性。基于该形式化,我们阐述了LLM的不确定性估计与标准机器学习模型不确定性估计之间的区别,并解释了为什么LLM的隐藏神经元可能包含不确定性信息。我们设计的方法展示了利用隐藏激活来增强跨多种任务不确定性估计的优势,并在分布外设置中表现出稳健的可迁移性。我们将不确定性估计任务与不确定性校准任务区分开来,并表明更好的不确定性估计能够带来更好的校准性能。此外,我们的方法易于实现,并且能够适应不同级别的模型可访问性,包括黑盒、灰盒和白盒。

英文摘要:

In this paper, we study the problem of uncertainty estimation and calibration for LLMs. We begin by formulating the uncertainty estimation problem, a relevant yet underexplored area in existing literature. We then propose a supervised approach that leverages labeled datasets to estimate the uncertainty in LLMs' responses. Based on the formulation, we illustrate the difference between the uncertainty estimation for LLMs and that for standard ML models and explain why the hidden neurons of the LLMs may contain uncertainty information. Our designed approach demonstrates the benefits of utilizing hidden activations to enhance uncertainty estimation across various tasks and shows robust transferability in out-of-distribution settings. We distinguish the uncertainty estimation task from the uncertainty calibration task and show that better uncertainty estimation leads to better calibration performance. Furthermore, our method is easy to implement and adaptable to different levels of model accessibility including black box, grey box, and white box.

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

↑