Neural-Symbolic Models for Logical Queries on Knowledge Graphs

Zhaocheng Zhu, Mikhail Galkin, Zuobai Zhang, Jian Tang
5/16/2022
cs.AIcs.LG
gnn

Official code: DeepGraphLearning/GNN-QE (89 stars, Python, MIT, last commit 2023-09-05).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of Graph Neural Network Query Executor (ICML 2022)

8913PythonJul 17, 20223 years agoMIT
fuzzy-logicgraph-neural-networksknowledge-graphreasoning

Similar Papers

Cite this paper

@article{zhu2022neuralsymbolic,
  title  = {Neural-Symbolic Models for Logical Queries on Knowledge Graphs},
  author = {Zhaocheng Zhu and Mikhail Galkin and Zuobai Zhang and Jian Tang},
  year   = {2022},
  eprint = {2205.10128},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.10128}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.10128.svg)](https://codeofpaper.com/paper/2205.10128)

Discussion