Neural-Symbolic Models for Logical Queries on Knowledge Graphs

Answering complex first-order logic (FOL) queries on knowledge graphs is a fundamental task for multi-hop reasoning. Traditional symbolic methods traverse a complete knowledge graph to extract the answers, which provides good interpretation for each step. Recent neural methods learn geometric embeddings for complex queries. These methods can generalize to incomplete knowledge graphs, but their reasoning process is hard to interpret. In this paper, we propose Graph Neural Network Query Executor (GNN-QE), a neural-symbolic model that enjoys the advantages of both worlds. GNN-QE decomposes a complex FOL query into relation projections and logical operations over fuzzy sets, which provides interpretability for intermediate variables. To reason about the missing links, GNN-QE adapts a graph neural network from knowledge graph completion to execute the relation projections, and models the logical operations with product fuzzy logic. Experiments on 3 datasets show that GNN-QE significantly improves over previous state-of-the-art models in answering FOL queries. Meanwhile, GNN-QE can predict the number of answers without explicit supervision, and provide visualizations for intermediate variables.

PDF Abstract ICML 2022 PDF ICML 2022 Abstract
Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Complex Query Answering FB15k GNN-QE MRR 1p 0.885 # 4
MRR 2p 0.693 # 1
MRR 3p 0.587 # 2
MRR 2i 0.797 # 2
MRR 3i 0.835 # 2
MRR pi 0.699 # 3
MRR ip 0.704 # 4
MRR 2u 0.741 # 2
MRR up 0.610 # 2
Complex Query Answering FB15k-237 GNN-QE MRR 1p 0.428 # 3
MRR 2p 0.147 # 2
MRR 3p 0.118 # 2
MRR 2i 0.383 # 2
MRR 3i 0.541 # 2
MRR pi 0.311 # 2
MRR ip 0.189 # 3
MRR 2u 0.162 # 3
MRR up 0.134 # 2
Complex Query Answering NELL-995 GNN-QE MRR 1p 0.533 # 4
MRR 2p 0.189 # 3
MRR 3p 0.149 # 3
MRR 2i 0.424 # 4
MRR 3i 0.525 # 2
MRR pi 0.308 # 3
MRR ip 0.189 # 4
MRR 2u 0.159 # 3
MRR up 0.126 # 3

Methods