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

查询级不确定性在大语言模型中

Query-Level Uncertainty in Large Language Models

Imperial College London(伦敦帝国学院);Hasso Plattner Institute / University of Potsdam(霍普夫纳研究所/波茨坦大学);Telecom Paris, Institut Polytechnique de Paris(电信巴黎学院,巴黎理工学院);Soda, Inria Saclay(Soda,法国国家信息与自动化技术研究院萨克利实验室)

Lihu Chen, Gerard de Melo, Fabian M. Suchanek, Gaël Varoquaux

AI总结:

本研究提出了一种无需训练的内部置信度方法,用于检测大语言模型的知识边界,通过查询级不确定性提高回答质量并降低计算成本。

摘要:

对于大型语言模型(LLMs)来说,了解其知识边界的至关重要,区分其能够自信回答的查询与那些超出其能力范围的查询。这种意识使模型能够执行自适应推理,例如调用检索增强生成(RAG),进行缓慢和深入的思考,或在适当的时候避免回答。这些机制是开发高效且可信的AI的关键。在本工作中,我们提出了一种通过查询级不确定性检测知识边界的 方法,该方法在生成任何令牌之前估计模型是否能够回答给定的查询,从而避免生成成本。为此,我们提出了一种新的、无需训练的方法,称为内部置信度,它利用跨层和令牌的自我评估来提供不确定性的可靠信号。在事实性问答和数学推理任务上的实证研究显示,我们的内部置信度在置信度质量方面优于几种基线方法,同时计算成本更低。此外,我们展示了其在自适应推理设置中的优势,表明对于RAG和模型级联来说,它在减少推理成本的同时保持了整体性能。

英文摘要:

It is important for Large Language Models (LLMs) to be aware of the boundary of their knowledge, distinguishing queries they can confidently answer from those that lie beyond their capabilities. Such awareness enables models to perform adaptive inference, such as invoking retrieval-augmented generation (RAG), engaging in slow and deep thinking, or abstaining from answering when appropriate. These mechanisms are key to developing efficient and trustworthy AI. In this work, we propose a method to detect knowledge boundaries via Query-Level Uncertainty, which estimates if a model is capable of answering a given query before generating any tokens, thus avoiding the generation cost. To this end, we propose a novel, training-free method called Internal Confidence, which leverages self-evaluations across layers and tokens to provide a reliable signal of uncertainty. Empirical studies on both factual question answering and mathematical reasoning tasks demonstrate that our Internal Confidence outperforms several baselines in quality of confidence while being computationally cheaper. Furthermore, we demonstrate its benefits in adaptive inference settings, showing that for RAG and model cascading it reduces inference costs while preserving overall performance.

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

↑