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

用于零样本知识图谱问答的知识增强语言模型提示

Knowledge-Augmented Language Model Prompting for Zero-Shot Knowledge Graph Question Answering

KAIST(韩国科学技术院);MBZUAI(穆罕默德·本·扎耶德人工智能大学);Amazon(亚马逊)

Jinheon Baek, Alham Fikri Aji, Amir Saffari

AI总结:

本文提出 KAPING 框架,通过从知识图谱检索语义相关事实并构造提示增强 LLM 输入,在无需训练的零样本设定下显著提升知识图谱问答性能。

摘要:

大型语言模型(LLM)能够依靠预训练期间存储在参数中的内部知识执行零样本闭卷问答任务。然而,这种内化知识可能并不充分,也可能存在错误,从而导致 LLM 生成事实上错误的答案。此外,通过微调 LLM 来更新其知识成本高昂。为此,我们提出直接在 LLM 的输入中增强知识。具体而言,我们首先根据问题与其相关事实之间的语义相似性,从知识图谱中检索与输入问题相关的事实。随后,我们将检索到的事实以提示的形式置于输入问题之前,再将其发送给 LLM 以生成答案。我们的框架 Knowledge-Augmented language model PromptING(KAPING)不需要任何模型训练,因此完全是零样本的。我们在知识图谱问答任务上验证了 KAPING 框架的性能;该任务旨在基于知识图谱中的事实回答用户问题。在该任务上,跨多种不同规模的 LLM,我们的方法相较于相关零样本基线的平均性能提升最高达 48%。

英文摘要:

Large Language Models (LLMs) are capable of performing zero-shot closed-book question answering tasks, based on their internal knowledge stored in parameters during pre-training. However, such internalized knowledge might be insufficient and incorrect, which could lead LLMs to generate factually wrong answers. Furthermore, fine-tuning LLMs to update their knowledge is expensive. To this end, we propose to augment the knowledge directly in the input of LLMs. Specifically, we first retrieve the relevant facts to the input question from the knowledge graph based on semantic similarities between the question and its associated facts. After that, we prepend the retrieved facts to the input question in the form of the prompt, which is then forwarded to LLMs to generate the answer. Our framework, Knowledge-Augmented language model PromptING (KAPING), requires no model training, thus completely zero-shot. We validate the performance of our KAPING framework on the knowledge graph question answering task, that aims to answer the user's question based on facts over a knowledge graph, on which ours outperforms relevant zero-shot baselines by up to 48% in average, across multiple LLMs of various sizes.

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

↑