Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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.

Zhaocheng Zhu, Mikhail Galkin, Zuobai Zhang, Jian Tang• 2022

Related benchmarks

TaskDatasetResultRank
Logical Query AnsweringNELL995 (test)
MRR (1-path)0.913
41
Logical Query AnsweringFB15K (test)
MRR (1p)0.958
36
Logical Query Answering (EPFO)FB15k-237 (test)
2-Path Error0.147
31
Complex Query AnsweringNELL-995 (test)
Hits@1 (1p)53.3
31
Complex Query AnsweringFB15K (test)
Hits@1 (1p)88.5
30
Complex Query AnsweringFB15k-237 (test)
Hits@1 (avg path)0.268
27
Query AnsweringNELL995+H
1p Success Rate53.6
10
Query AnsweringICEWS18+H
1p Path Metric12.2
10
Query AnsweringFB15k237+H
1p Success Rate0.428
10
Cardinality PredictionFB15k-237 (test)
Accuracy (1p)0.948
4
Showing 10 of 13 rows

Other info

Code

Follow for update