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

让大语言模型在知识图谱补全中表现更优

Making Large Language Models Perform Better in Knowledge Graph Completion

Zhejiang University(浙江大学);Zhejiang University-Ant Group Joint Laboratory of Knowledge Graph(浙江大学-蚂蚁集团知识图谱联合实验室);Alibaba-Zhejiang University Joint Institute of Frontier Technology(阿里巴巴-浙江大学前沿技术联合研究院)

Yichi Zhang, Zhuo Chen, Lingbing Guo, Yajing Xu, Wen Zhang, Huajun Chen

AI总结:

针对现有基于大语言模型的知识图谱补全方法忽略图谱结构信息的问题,提出知识前缀适配器KoPA,通过结构预训练和跨模态投影注入结构信息,提升大语言模型的事实知识推理能力。

摘要:

基于大语言模型(LLM)的知识图谱补全(KGC)旨在利用LLM预测知识图谱中缺失的三元组。然而,现有基于LLM的KGC研究未能充分发挥LLM的推理能力,忽略了知识图谱固有的关键结构信息。本文探索将结构信息融入LLM的方法,核心目标是促进具备结构感知的推理。我们首先探讨了上下文学习、指令微调等现有LLM范式,提出了基础的结构信息注入方法。随后我们提出了Knowledge Prefix Adapter(KoPA,知识前缀适配器)以实现上述目标。KoPA采用结构预训练阶段来理解知识图谱中复杂的实体与关系,将其表示为结构嵌入。接着KoPA通过知识前缀适配器将这种跨模态结构信息理解传递给LLM,该适配器将结构嵌入投影到文本空间,得到作为输入提示前缀的虚拟知识令牌。我们开展了全面实验,并针对引入跨模态结构信息如何优化LLM的事实知识推理能力进行了深入分析。我们的代码和数据可在https://github.com/zjukg/KoPA 获取。

英文摘要:

Large language model (LLM) based knowledge graph completion (KGC) aims to predict the missing triples in the KGs with LLMs. However, research about LLM-based KGC fails to sufficiently harness LLMs' inference proficiencies, overlooking critical structural information integral to KGs. In this paper, we explore methods to incorporate structural information into the LLMs, with the overarching goal of facilitating structure-aware reasoning. We first discuss on the existing LLM paradigms like in-context learning and instruction tuning, proposing basic structural information injection approaches. Then we propose a Knowledge Prefix Adapter (KoPA) to fulfill this stated goal. The KoPA uses a structural pre-training phase to comprehend the intricate entities and relations within KGs, representing them as structural embeddings. Then KoPA communicates such cross-modal structural information understanding to the LLMs through a knowledge prefix adapter which projects the structural embeddings into the textual space and obtains virtual knowledge tokens positioned as a prefix of the input prompt. We conduct comprehensive experiments and provide incisive analysis concerning how the introduction of cross-modal structural information would be better for LLM's factual knowledge reasoning ability. Our code and data are available at https://github.com/zjukg/KoPA .

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

↑