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

通过自精炼增强的知识检索缓解大型语言模型中的幻觉

Mitigating Hallucinations in Large Language Models via Self-Refinement-Enhanced Knowledge Retrieval

Imperial College London(帝国理工学院);Huawei(华为)

Mengjia Niu, Hao Li, Jie Shi, Hamed Haddadi, Fan Mo

AI总结:

提出 Re-KGR,通过 token 与层级概率归因定位高幻觉风险内容并精炼相关知识三元组,以更少检索提升医疗 LLM 回答真实性。

摘要:

大型语言模型(LLM)已在多个领域展现出卓越能力,但其易产生幻觉的问题给医疗等关键领域的部署带来了重大挑战。为解决这一问题,从知识图谱(KG)中检索相关事实被认为是一种有前景的方法。现有的 KG 增强方法往往资源消耗较大,需要针对每个事实型问题进行多轮检索和验证,这阻碍了其在现实场景中的应用。在本研究中,我们提出自精炼增强知识图谱检索(Self-Refinement-Enhanced Knowledge Graph Retrieval,Re-KGR),以在医疗领域用更少的检索工作量增强 LLM 回答的事实性。我们的方法利用不同 token 以及模型各层之间下一 token 预测概率分布的归因,优先识别具有较高幻觉可能性的 token,并通过精炼与这些 token 相关的知识三元组来减少验证轮次。此外,我们在后处理阶段利用检索到的知识纠正不准确内容,从而提高生成回答的真实性。在一个医疗数据集上的实验结果表明,该方法能够在多种基础模型上提升 LLM 的事实能力,真实性得分最高即为证明。

英文摘要:

Large language models (LLMs) have demonstrated remarkable capabilities across various domains, although their susceptibility to hallucination poses significant challenges for their deployment in critical areas such as healthcare. To address this issue, retrieving relevant facts from knowledge graphs (KGs) is considered a promising method. Existing KG-augmented approaches tend to be resource-intensive, requiring multiple rounds of retrieval and verification for each factoid, which impedes their application in real-world scenarios. In this study, we propose Self-Refinement-Enhanced Knowledge Graph Retrieval (Re-KGR) to augment the factuality of LLMs' responses with less retrieval efforts in the medical field. Our approach leverages the attribution of next-token predictive probability distributions across different tokens, and various model layers to primarily identify tokens with a high potential for hallucination, reducing verification rounds by refining knowledge triples associated with these tokens. Moreover, we rectify inaccurate content using retrieved knowledge in the post-processing stage, which improves the truthfulness of generated responses. Experimental results on a medical dataset demonstrate that our approach can enhance the factual capability of LLMs across various foundational models as evidenced by the highest scores on truthfulness.

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

↑