[论文解读] ChatRule: Mining Logical Rules with Large Language Models for Knowledge Graph Reasoning
ChatRule 使用大语言模型来生成并对连接知识图谱中关系的逻辑规则进行排序,然后将这些规则用于可解释的 KG 推理;在四个大规模数据集上显示出强劲的 KG 完整性和规则质量。
Logical rules are essential for uncovering the logical connections between relations, which could improve reasoning performance and provide interpretable results on knowledge graphs (KGs). Although there have been many efforts to mine meaningful logical rules over KGs, existing methods suffer from computationally intensive searches over the rule space and a lack of scalability for large-scale KGs. Besides, they often ignore the semantics of relations which is crucial for uncovering logical connections. Recently, large language models (LLMs) have shown impressive performance in the field of natural language processing and various applications, owing to their emergent ability and generalizability. In this paper, we propose a novel framework, ChatRule, unleashing the power of large language models for mining logical rules over knowledge graphs. Specifically, the framework is initiated with an LLM-based rule generator, leveraging both the semantic and structural information of KGs to prompt LLMs to generate logical rules. To refine the generated rules, a rule ranking module estimates the rule quality by incorporating facts from existing KGs. Last, the ranked rules can be used to conduct reasoning over KGs. ChatRule is evaluated on four large-scale KGs, w.r.t. different rule quality metrics and downstream tasks, showing the effectiveness and scalability of our method.
研究动机与目标
- 通过自动挖掘的可解释的 KG 推理来提供动机。
- 利用语义和结构化的 KG 信息来提示大语言模型生成规则。
- 开发一个规则排序机制以过滤低质量规则并减少幻觉。
- 实现端到端的基于规则的 KG 完整推理,无需额外的模型训练。
提出的方法
- 构建基于 BFS 的规则采样器,从 KG 中提取闭合路径的规则主体。
- 将采样的规则主体进行口头化,并提示一个大语言模型(如 ChatGPT)来生成候选规则。
- 应用基于 PCA 的规则排序(再加上支持度、覆盖率、置信度)来过滤生成的规则。
- 在排序后的规则下,使用前向推理风格进行 KG 完整推理,不需要再训练额外的模型。
实验结果
研究问题
- RQ1LLMs 是否能够为 KG 推理生成有意义且语义信息丰富的逻辑规则?
- RQ2在正确排序的前提下,具备语义感知的 LLM 生成规则是否能提升 KG 完整性和规则质量,相较于最先进的基线?
- RQ3PCA 置信度在不完整 KG 上是否比其他度量更能提供更好的规则质量估计?
- RQ4与现有规则挖掘方法相比,ChatRule 管线在大规模 KG 上的可扩展性如何?
主要发现
- ChatRule 在多个数据集上的 KG 完整性任务中优于最先进的基线。
- 规则质量度量(尤其是 PCA 置信度)与改进的 KG 完整性性能相关。
- 挖掘出的规则可解释,具备语义上有意义的关系和通过提示捕捉到的反向/别名模式。
- 基于 PCA 的排序在测试的度量中提供最佳的整体规则质量和下游性能。
- ChatRule 在不同的 LLM 和模型规模下保持竞争力,表明具有广泛的可推广性。
- 在 YAGO3-10 上,ChatRule 使用 ChatGPT 实现的性能为所列方法中报告的最高 MRR 和 Hits@1/10。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。