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

充分挖掘 LLM 内部状态以增强知识边界感知

Towards Fully Exploiting LLM Internal States to Enhance Knowledge Boundary Perception

CAS Key Lab of Network Data Science and Technology, ICT, CAS(中国科学院信息科技研究院网络数据科学与技术重点实验室);State Key Laboratory of AI Safety(人工智能安全国家重点实验室);University of Chinese Academy of Sciences(中国科学院大学)

Shiyu Ni, Keping Bi, Jiafeng Guo, Lulu Yu, Baolong Bi, Xueqi Cheng

AI总结:

本文提出利用 LLMs 内部状态增强知识边界感知,并引入基于置信度一致性的校准方法 $C^3$,通过问题重构显著提升了模型识别知识差距的能力,有效优化效率并控制输出风险。

摘要:

大型语言模型(LLMs)在各类任务中表现出色,但往往难以准确衡量自身的知识边界,导致产生自信却错误的回答。本文从效率和风险角度探讨利用 LLMs 的内部状态来增强其对知识边界的感知。我们研究 LLMs 能否在生成回答前利用内部状态评估自身置信度,从而节省计算资源。我们在 Natural Questions、HotpotQA 和 MMLU 等数据集上的实验表明,LLMs 展现出显著的生成前感知能力,该能力在生成后得到进一步优化,且感知差距在不同条件下保持稳定。为降低关键领域的风险,我们引入了基于置信度一致性的校准方法($C^3$),通过问题重构来评估置信度一致性。$C^3$ 显著提升了 LLMs 识别自身知识差距的能力,在 NQ 上将未知感知率提高了 5.6%,在 HotpotQA 上提高了 4.9%。研究结果表明,生成前置信度估计可优化效率,而 $C^3$ 能有效控制输出风险,提升了 LLMs 在实际应用中的可靠性。

英文摘要:

Large language models (LLMs) exhibit impressive performance across diverse tasks but often struggle to accurately gauge their knowledge boundaries, leading to confident yet incorrect responses. This paper explores leveraging LLMs' internal states to enhance their perception of knowledge boundaries from efficiency and risk perspectives. We investigate whether LLMs can estimate their confidence using internal states before response generation, potentially saving computational resources. Our experiments on datasets like Natural Questions, HotpotQA, and MMLU reveal that LLMs demonstrate significant pre-generation perception, which is further refined post-generation, with perception gaps remaining stable across varying conditions. To mitigate risks in critical domains, we introduce Confidence Consistency-based Calibration ($C^3$), which assesses confidence consistency through question reformulation. $C^3$ significantly improves LLMs' ability to recognize their knowledge gaps, enhancing the unknown perception rate by 5.6% on NQ and 4.9% on HotpotQA. Our findings suggest that pre-generation confidence estimation can optimize efficiency, while $C^3$ effectively controls output risks, advancing the reliability of LLMs in practical applications.

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

↑