[论文解读] Making Large Language Models Perform Better in Knowledge Graph Completion
论文提出 KoPA(Knowledge Prefix Adapter),通过在提示中注入 KG 结构信息来提升知识图谱补全中的结构感知推理与性能,特别是在三元组分类任务上。它将 KoPA 与零-shot、在-context 学习、以及指令微调等基线在三个基准数据集上进行对比。
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 .
研究动机与目标
- 通过利用 KG 结构信息来推动用 LLM 进行 KGC 的改进。
- 提出一个两阶段的 KoPA 框架,通过前缀适配器将 KG 结构嵌入与 LLM 融合。
- 在多个基准数据集上评估基于结构信息的 LLM KGC 方法,并分析结构信息使用的有效性。
提出的方法
- 引入 KoPA:对实体和关系进行结构嵌入的预训练。
- 将结构嵌入投影到文本空间,使用知识前缀适配器创建虚拟知识标记,作为提示前缀。
- 将 KoPA 与指令微调结合,实现基于 LLM 的结构感知 KGC。
- 将 KoPA 与零-shot、ICL、原生 IT,以及结构感知 IT 基线进行对比。
- 提供提示长度与与邻域文本方法的复杂度和效率分析。
- 在三个 KG 基准数据集(UMLS、CoDeX-S、FB15K-237N)上使用 Alpaca-7B 与 LoRA 进行实验;报告 ACC、P、R、F1。
实验结果
研究问题
- RQ1KG 结构信息能否被有效地整合到 LLM 中,从而提升 KGC 性能?
- RQ2在加入结构信息后,不同的 LLM 范式(ZSR、ICL、IT)在 KGC 上的表现如何?
- RQ3KoPA 相较于基于文本的邻域提示,在提示长度、可扩展性和可迁移性方面是否具有优势?
- RQ4结构嵌入对标准 KG 基准中的三元组分类准确性有何影响?
主要发现
- KoPA 在三元组分类任务上超过了 vanilla IT 和结构感知 IT,在各基准数据集上表现良好。
- KoPA 在 UMLS、CoDeX-S 和 FB15K-237N 上取得了强结果,与基线相比具有竞争或更优的准确率和 F1 分数。
- 通过 KoPA 投影的结构嵌入提供一个紧凑、固定长度的前缀提示(每个三元组头/关系/尾各三个虚拟标记),比邻域文本提示更高效。
- 使用 KoPA 进行训练在结构感知推理和可迁移性方面优于仅文本提示,在不同的 LLM 主体和设置下均有提升。
- KoPA 展现出良好的提示长度特性,并在 LoRA 微调下具有有竞争力的性能。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。