Neural-Symbolic Models for Logical Queries on Knowledge Graphs
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Logical Query Answering | NELL995 (test) | MRR (1-path)0.913 | 41 | |
| Logical Query Answering | FB15K (test) | MRR (1p)0.958 | 36 | |
| Logical Query Answering (EPFO) | FB15k-237 (test) | 2-Path Error0.147 | 31 | |
| Complex Query Answering | NELL-995 (test) | Hits@1 (1p)53.3 | 31 | |
| Complex Query Answering | FB15K (test) | Hits@1 (1p)88.5 | 30 | |
| Complex Query Answering | FB15k-237 (test) | Hits@1 (avg path)0.268 | 27 | |
| Query Answering | NELL995+H | 1p Success Rate53.6 | 10 | |
| Query Answering | ICEWS18+H | 1p Path Metric12.2 | 10 | |
| Query Answering | FB15k237+H | 1p Success Rate0.428 | 10 | |
| Cardinality Prediction | FB15k-237 (test) | Accuracy (1p)0.948 | 4 |