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

用知识图谱提示大型语言模型以处理涉及长尾事实的问答

Prompting Large Language Models with Knowledge Graphs for Question Answering Involving Long-tail Facts

School of Informatics, University of Edinburgh(爱丁堡大学信息学院);Huawei Edinburgh Research Centre, CSI(华为爱丁堡研究中心)

Wenyu Huang, Guancheng Zhou, Mirella Lapata, Pavlos Vougiouklis, Sebastien Montella, Jeff Z. Pan

AI总结:

针对 LLM 缺乏长尾事实知识的问题,本文构建 LTGen 基准,比较文本段落与 KG 三元组提示,证明 KG 提示通常更优,联合使用可显著减少幻觉。

摘要:

尽管大型语言模型(LLM)能够有效执行各种 NLP 任务,但它们仍难以处理需要大量真实世界知识的任务,尤其是在面对长尾事实(与长尾实体相关的事实)时。这一局限凸显了以非参数化知识补充 LLM 的必要性。为解决该问题,我们分析了不同类型非参数化知识的效果,包括文本段落和知识图谱(KG)。由于 LLM 很可能已经见过大多数事实问答数据集,为便于分析,我们提出了一种全自动流程,用于构建一个回答其中问题需要长尾事实知识的基准。借助该流程,我们推出了 LTGen 基准。我们使用所提出的基准,在不同知识设置下评估最先进的 LLM。实验表明,仅凭 LLM 很难回答这些问题,尤其是在长尾程度较高或需要丰富知识时。尽管如此,当使用非参数化知识提示相同模型时,其性能显著提升。我们观察到,在大多数情况下,用 KG 三元组提示 LLM 优于使用最先进检索器的基于段落的提示。此外,虽然同时用 KG 三元组和文档提示 LLM 并不能持续提高知识覆盖率,但它可以显著减少生成内容中的幻觉。

英文摘要:

Although Large Language Models (LLMs) are effective in performing various NLP tasks, they still struggle to handle tasks that require extensive, real-world knowledge, especially when dealing with long-tail facts (facts related to long-tail entities). This limitation highlights the need to supplement LLMs with non-parametric knowledge. To address this issue, we analysed the effects of different types of non-parametric knowledge, including textual passage and knowledge graphs (KGs). Since LLMs have probably seen the majority of factual question-answering datasets already, to facilitate our analysis, we proposed a fully automatic pipeline for creating a benchmark that requires knowledge of long-tail facts for answering the involved questions. Using this pipeline, we introduce the LTGen benchmark. We evaluate state-of-the-art LLMs in different knowledge settings using the proposed benchmark. Our experiments show that LLMs alone struggle with answering these questions, especially when the long-tail level is high or rich knowledge is required. Nonetheless, the performance of the same models improved significantly when they were prompted with non-parametric knowledge. We observed that, in most cases, prompting LLMs with KG triples surpasses passage-based prompting using a state-of-the-art retriever. In addition, while prompting LLMs with both KG triples and documents does not consistently improve knowledge coverage, it can dramatically reduce hallucinations in the generated content.

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

↑