arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.20279cs.CL
收藏

LUQ:面向大语言模型的长文本不确定性量化

LUQ: Long-text Uncertainty Quantification for LLMs

University of Cambridge(剑桥大学);Amazon Alexa(亚马逊Alexa)

Caiqi Zhang, Fangyu Liu, Marco Basaldella, Nigel Collier

AI总结:

针对现有不确定性量化方法难以适配长文本生成的问题,本研究提出专门面向长文本的LUQ系列采样式UQ方法及集成变体,在事实性得分相关性上优于基线,且集成方法可显著提升LLM回复事实性。

摘要:

大语言模型(LLM)已在各类自然语言处理(NLP)任务中展现出卓越能力,但也容易生成非事实性内容。不确定性量化(UQ)对于加深我们对模型生成结果置信度的理解至关重要,进而有助于减少非事实性输出。现有UQ研究主要针对短文本生成场景,这类场景的输出通常是简短的、有词数限制的回复,但现实应用往往需要长得多的回复。本研究首先指出现有UQ方法在处理长文本生成时的局限性,随后提出\textsc{Luq}及其两个变体,这是一系列专门针对长文本设计的、基于采样的新型UQ方法。研究结果表明,\textsc{Luq}在与模型事实性得分的相关性上优于现有基线方法(在Gemini Pro上观测到的负相关系数为-0.85)。为进一步提升LLM回复的事实性,我们提出\textsc{Luq-Ensemble}方法,该方法集成多个模型的回复并选择不确定性最低的回复,相比最优的单独立LLM,该集成方法大幅提升了回复的事实性。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable capability in a variety of NLP tasks. However, LLMs are also prone to generate nonfactual content. Uncertainty Quantification (UQ) is pivotal in enhancing our understanding of a model's confidence on its generation, thereby aiding in the mitigation of nonfactual outputs. Existing research on UQ predominantly targets short text generation, typically yielding brief, word-limited responses. However, real-world applications frequently necessitate much longer responses. Our study first highlights the limitations of current UQ methods in handling long text generation. We then introduce \textsc{Luq} and its two variations, a series of novel sampling-based UQ approaches specifically designed for long text. Our findings reveal that \textsc{Luq} outperforms existing baseline methods in correlating with the model's factuality scores (negative coefficient of -0.85 observed for Gemini Pro). To further improve the factuality of LLM responses, we propose \textsc{Luq-Ensemble}, a method that ensembles responses from multiple models and selects the response with the lowest uncertainty. The ensembling method greatly improves the response factuality upon the best standalone LLM.

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

↑