Skip to main content
QUICK REVIEW

[论文解读] KC-GenRe: A Knowledge-constrained Generative Re-ranking Method Based on Large Language Models for Knowledge Graph Completion

Yilin Wang, Minghao Hu|arXiv (Cornell University)|Mar 26, 2024
Advanced Graph Neural NetworksComputer Science被引用 6
一句话总结

KC-GenRe 使用知识约束的生成式LLM方法对前-K个知识图谱完成候选进行重新排序,解决不匹配、排序不当和遗漏问题,在四个数据集上达到最先进的结果。

ABSTRACT

The goal of knowledge graph completion (KGC) is to predict missing facts among entities. Previous methods for KGC re-ranking are mostly built on non-generative language models to obtain the probability of each candidate. Recently, generative large language models (LLMs) have shown outstanding performance on several tasks such as information extraction and dialog systems. Leveraging them for KGC re-ranking is beneficial for leveraging the extensive pre-trained knowledge and powerful generative capabilities. However, it may encounter new problems when accomplishing the task, namely mismatch, misordering and omission. To this end, we introduce KC-GenRe, a knowledge-constrained generative re-ranking method based on LLMs for KGC. To overcome the mismatch issue, we formulate the KGC re-ranking task as a candidate identifier sorting generation problem implemented by generative LLMs. To tackle the misordering issue, we develop a knowledge-guided interactive training method that enhances the identification and ranking of candidates. To address the omission issue, we design a knowledge-augmented constrained inference method that enables contextual prompting and controlled generation, so as to obtain valid rankings. Experimental results show that KG-GenRe achieves state-of-the-art performance on four datasets, with gains of up to 6.7% and 7.7% in the MRR and Hits@1 metric compared to previous methods, and 9.0% and 11.1% compared to that without re-ranking. Extensive analysis demonstrates the effectiveness of components in KG-GenRe.

研究动机与目标

  • 动机:知识图谱往往不完整,需要对候选尾实体进行有效的再排序,以提升完成质量。
  • 目标:开发一个基于生成式LLM的再排序方法(i)避免文本的精确匹配(不匹配),(ii)学习正确的候选顺序(排序错误),(iii)确保考虑到所有候选项(遗漏)。
  • 目标:利用第一阶段的KG嵌入来引导排序并提取上下文知识,以约束生成,从而得到有效的排序。

提出的方法

  • 将重新排序表述为输出有序的候选选项标识符序列,而非直接候选名称,以避免不匹配。
  • 引入基于知识的交互式训练,包含查询-候选和候选-候选交互,以学习候选的可行性和相对顺序,使用一个排序损失使LLM输出与第一阶段分数对齐。
  • 提出知识增强的受约束推理,包含与查询相关和支持候选的提示,以及受约束的选项生成,以确保完整且有效的排序。
  • 通过QLORA在KC-GenRe框架下对LLaMA-7b进行微调,使用第一阶段KGE模型的前-K个候选以及输入/输出格式的指令模板。

实验结果

研究问题

  • RQ1如何在减小生成文本与KG实体之间不匹配的情况下,有效地使用生成式LLMs对KGC候选进行再排序?
  • RQ2知识引导的训练和知识增强的推理是否能提升基于LLM的KGC重排序的稳定性与质量?
  • RQ3将LLM输出限定为候选选项标识符并利用上下文提示,是否能提升排序准确性和有效性?

主要发现

  • KC-GenRe在四个数据集上实现了最先进的重排序性能,在精选数据集上MRR最高提升可达6.7%,Hits@1提升可达7.7%。
  • 在开放KG数据集上,KC-GenRe在MRR上比基线高出2.1–3.5%,在Hits@1上高出2.1–3.8%。
  • 消融实验显示查询-候选交互和候选-候选交互显著提升性能,查询相关提示与候选支持提示的组合获得最佳结果。
  • 受约束的选项生成至关重要;移除它会降低性能,表明解码需要与候选集合对齐。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。