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

先过滤后生成:面向知识图谱补全的带结构-文本适配器的大语言模型

Filter-then-Generate: Large Language Models with Structure-Text Adapter for Knowledge Graph Completion

School of Computer Science, Wuhan University(武汉大学计算机学院);DAMO Academy, Alibaba Group(阿里巴巴达摩院)

Ben Liu, Jihai Zhang, Fangquan Lin, Cheng Yang, Min Peng

AI总结:

本文提出FtG方法,通过先过滤后生成范式、多项选择题形式、自我图序列化提示和结构-文本适配器,缓解LLMs在知识图谱补全中的幻觉与图结构利用不足问题,并取得显著性能提升。

摘要:

大语言模型(LLMs)具备海量内在知识和卓越的语义理解能力,已经革新了自然语言处理中的多种任务。尽管取得了这些成功,但在使LLMs能够执行知识图谱补全(KGC)方面仍存在关键差距。经验证据表明,即使通过精心设计的提示或定制的指令微调,LLMs在KGC上的表现也始终不如传统KGC方法。从根本上说,将LLMs应用于KGC会引入若干关键挑战,包括庞大的实体候选集、LLMs的幻觉问题以及图结构利用不足。为应对这些挑战,我们提出了一种新颖的基于指令微调的方法,即FtG。具体而言,我们提出了一种先过滤后生成的范式,并将KGC任务形式化为多项选择题格式。通过这种方式,我们可以在缓解幻觉所引发问题的同时利用LLMs的能力。此外,我们设计了一种灵活的自我图序列化提示,并采用结构-文本适配器以语境化方式耦合结构和文本信息。实验结果表明,与现有最先进方法相比,FtG取得了显著的性能提升。指令数据集和代码可在https://github.com/LB0828/FtG获取。

英文摘要:

Large Language Models (LLMs) present massive inherent knowledge and superior semantic comprehension capability, which have revolutionized various tasks in natural language processing. Despite their success, a critical gap remains in enabling LLMs to perform knowledge graph completion (KGC). Empirical evidence suggests that LLMs consistently perform worse than conventional KGC approaches, even through sophisticated prompt design or tailored instruction-tuning. Fundamentally, applying LLMs on KGC introduces several critical challenges, including a vast set of entity candidates, hallucination issue of LLMs, and under-exploitation of the graph structure. To address these challenges, we propose a novel instruction-tuning-based method, namely FtG. Specifically, we present a filter-then-generate paradigm and formulate the KGC task into a multiple-choice question format. In this way, we can harness the capability of LLMs while mitigating the issue casused by hallucinations. Moreover, we devise a flexible ego-graph serialization prompt and employ a structure-text adapter to couple structure and text information in a contextualized manner. Experimental results demonstrate that FtG achieves substantial performance gain compared to existing state-of-the-art methods. The instruction dataset and code are available at https://github.com/LB0828/FtG.

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

↑