arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.14749cs.CLcs.LG
收藏

不确定性蒸馏:教语言模型表达语义信心

Uncertainty Distillation: Teaching Language Models to Express Semantic Confidence

Department of Computer Science(计算机科学系);Johns Hopkins University(约翰霍普金斯大学)

Sophia Hager, David Mueller, Kevin Duh, Nicholas Andrews

AI总结:

本文提出不确定性蒸馏方法,通过微调使语言模型能准确表达语义信心,提升不确定性量化效果。

摘要:

随着大型语言模型(LLMs)被越来越多地用于事实性问答,LLMs具备表达其答案正确性可能性的能力变得越来越重要。为了使这些不确定性表达有意义,它们应反映在所表达的信心水平上的错误率。然而,当被提示表达信心时,当前LLMs的错误率与它们所传达的信心不一致,凸显了不确定性量化方法的必要性。许多先前的方法计算词汇不确定性,估计模型对其生成的特定字符串的自信程度。在某些情况下,然而,估计语义不确定性可能更有用,即模型对答案的自信程度,无论其如何表达。我们提出了一种简单的程序,即不确定性蒸馏,以教LLM表达校准的语义信心。利用预留数据将初始不确定性估计映射到有意义的概率,我们创建了带有表达概率的示例,用于监督微调。我们发现,我们的方法产生的表达信心与观察到的错误率相关性良好,即使与强大的基线方法相比,这些基线方法在推理时间上可能慢了二十多倍。此外,我们还证明了我们的方法可以应用于允许基于API的微调的黑盒模型,从而产生比任何基线方法都更有效和更高效的不确定性估计。

英文摘要:

As large language models (LLMs) are increasingly used for factual question-answering, it becomes more important for LLMs to have the capability to communicate the likelihood that their answer is correct. For these verbalized expressions of uncertainty to be meaningful, they should reflect the error rates at the expressed level of confidence. However, when prompted to express confidence, the error rates of current LLMs are inconsistent with their communicated confidences, highlighting the need for uncertainty quantification methods. Many prior methods calculate lexical uncertainty, estimating a model's confidence in the specific string it generated. In some cases, however, it may be more useful to estimate semantic uncertainty, or the model's confidence in the answer regardless of how it is verbalized. We propose a simple procedure, uncertainty distillation, to teach an LLM to verbalize calibrated semantic confidences. Using held-out data to map initial uncertainty estimates to meaningful probabilities, we create examples annotated with verbalized probabilities for supervised fine-tuning. We find that our method yields verbalized confidences that correlate well with observed error rates, even when compared to strong baselines, some of which are more than twenty times slower at inference time. Additionally, we demonstrate that our method can be applied to black-box models that allow API-based fine-tuning, resulting in estimates of uncertainty that are both more effective and more efficient than any of our baselines.

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

↑