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

无条件真实性:学习大语言模型的无条件不确定性

Unconditional Truthfulness: Learning Unconditional Uncertainty of Large Language Models

MBZUAI;Skoltech(斯克利切夫斯基因工大学);AIRI;ETH Zürich(苏黎世联邦理工学院);The University of Melbourne(墨尔本大学);FRC CSC RAS(俄罗斯科学院计算技术研究所)

Artem Vazhentsev, Ekaterina Fadeeva, Rui Xing, Gleb Kuzmin, Ivan Lazichny, Alexander Panchenko, Preslav Nakov, Timothy Baldwin, Maxim Panov, Artem Shelmanov

AI总结:

本文提出通过学习注意力特征来解决大语言模型生成过程中不确定性评分的难题,通过两阶段训练方法提升了选择性生成的效果,优于其他无监督和监督方法。

摘要:

不确定性量化(UQ)已成为检测大语言模型(LLMs)幻觉和低质量输出的有希望方法。然而,由于自回归LLM生成步骤的条件依赖性,获得适当的不确定性评分变得复杂,因为难以显式建模。本文提出从基于注意力的特征中学习这种依赖性。具体而言,我们训练了一个回归模型,利用LLM注意力图、当前生成步骤的概率以及从先前生成标记中递归计算的不确定性评分。为了纳入递归特征,我们还建议了两阶段的训练过程。我们在十个数据集和三个LLMs上的实验评估表明,所提出的方法在选择性生成中效果显著,优于其他无监督和监督方法。

英文摘要:

Uncertainty quantification (UQ) has emerged as a promising approach for detecting hallucinations and low-quality output of Large Language Models (LLMs). However, obtaining proper uncertainty scores is complicated by the conditional dependency between the generation steps of an autoregressive LLM because it is hard to model it explicitly. Here, we propose to learn this dependency from attention-based features. In particular, we train a regression model that leverages LLM attention maps, probabilities on the current generation step, and recurrently computed uncertainty scores from previously generated tokens. To incorporate the recurrent features, we also suggest a two-staged training procedure. Our experimental evaluation on ten datasets and three LLMs shows that the proposed method is highly effective for selective generation, achieving substantial improvements over rivaling unsupervised and supervised approaches.

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

↑