Reasoning on the knowledge graph (KG) aims to infer new facts from existing ones. Methods based on the relational path in the literature have shown strong, interpretable, and inductive reasoning ability. However, the paths are naturally limited in capturing complex topology in KG. In this paper, we introduce a novel relational structure, i.e., relational directed graph (r-digraph), which is composed of overlapped relational paths, to capture the KG's structural information. Since the digraph exhibits more complex structure than paths, constructing and learning on the r-digraph are challenging. Here, we propose a variant of graph neural network, i.e., RED-GNN, to address the above challenges by learning the RElational Digraph with a variant of GNN. Specifically, RED-GNN recursively encodes multiple r-digraphs with shared edges and selects the strongly correlated edges through query-dependent attention weights. We demonstrate the significant gains on reasoning both KG with unseen entities and incompletion KG benchmarks by the r-digraph, the efficiency of RED-GNN, and the interpretable dependencies learned on the r-digraph.
翻译:以知识图(KG)为根据来推断现有事实。文献中基于关系路径的方法显示了强力、可解释和感应推理能力。然而,路径自然在捕捉KG的复杂地形方面受到限制。在本文中,我们引入了一种新的关系结构,即由相重叠关系路径组成的关系定向图(r-digraph),以捕捉KG的结构信息。由于分层显示的结构比路径复杂得多,因此在r-digraph上建造和学习具有挑战性。在这里,我们提出了一个图表神经网络的变体,即RED-GNN,通过学习与GNN的变体关系图来应对上述挑战。具体地说,RED-GNN(RG-GNN)将具有共同边缘的多重正谱编码,并通过依赖查询的注意重量选择密切相关的边缘。我们展示了在以隐形实体进行推理的KG和通过Rdigraph-digraphy、REDG-G-NA所学会的可靠性和解释的可靠基准完成KG方面所取得的重大进展。