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

Ruleformer:基于知识图谱的上下文感知可区分规则挖掘

Ruleformer: Context-aware Differentiable Rule Mining over Knowledge Graph

Zezhong Xu, Peng Ye, Hui Chen, Meng Zhao, Huajun Chen, Wen Zhang

摘要:

规则挖掘是在知识图谱上进行推理的有效方法。现有的工作主要集中在挖掘规则。然而,可能有几个规则可以应用于一个关系的推理,以及如何选择合适的规则来完成不同的三元组还没有讨论。在本文中,我们建议考虑上下文信息,这有助于选择合适的推理任务的规则。基于这一思想,我们提出了一种基于transformer的规则挖掘方法Ruleformer。它由两个模块组成:1)编码器,其利用修改的注意力机制从头部实体的子图中提取上下文信息;以及2)解码器,其从编码器输出中聚集子图信息,并且为每个推理步骤生成关系的概率。Ruleformer的基本思想是将规则挖掘过程看作是一个序列到序列的任务。为了使子图成为编码器的序列输入并保持图的结构,我们在Transformer中设计了一个关系注意力机制。实验结果表明了在规则挖掘中考虑这些信息的必要性和模型的有效性。

英文摘要:

Rule mining is an effective approach for reasoning over knowledge graph (KG). Existing works mainly concentrate on mining rules. However, there might be several rules that could be applied for reasoning for one relation, and how to select appropriate rules for completion of different triples has not been discussed. In this paper, we propose to take the context information into consideration, which helps select suitable rules for the inference tasks. Based on this idea, we propose a transformer-based rule mining approach, Ruleformer. It consists of two blocks: 1) an encoder extracting the context information from subgraph of head entities with modified attention mechanism, and 2) a decoder which aggregates the subgraph information from the encoder output and generates the probability of relations for each step of reasoning. The basic idea behind Ruleformer is regarding rule mining process as a sequence to sequence task. To make the subgraph a sequence input to the encoder and retain the graph structure, we devise a relational attention mechanism in Transformer. The experiment results show the necessity of considering these information in rule mining task and the effectiveness of our model.

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

↑