Logic Embeddings for Complex Query Answering

Francois Luus, Prithviraj Sen, Pavan Kapanipathi, Ryan Riegel, Ndivhuwo Makondo +2 more
2/28/2021
cs.AIcs.DBcs.LG

Official code: francoisluus/KGReasoning (20 stars, MIT, last commit 2021-03-02).

Abstract

Answering logical queries over incomplete knowledge bases is challenging because: 1) it calls for implicit link prediction, and 2) brute force answering of existential first-order logic queries is exponential in the number of existential variables. Recent work of query embeddings provides fast querying, but most approaches model set logic with closed regions, so lack negation. Query embeddings that do support negation use densities that suffer drawbacks: 1) only improvise logic, 2) use expensive distributions, and 3) poorly model answer uncertainty. In this paper, we propose Logic Embeddings, a new approach to embedding complex queries that uses Skolemisation to eliminate existential variables for efficient querying. It supports negation, but improves on density approaches: 1) integrates well-studied t-norm logic and directly evaluates satisfiability, 2) simplifies modeling with truth values, and 3) models uncertainty with truth bounds. Logic Embeddings are competitively fast and accurate in query answering over large, incomplete knowledge graphs, outperform on negation queries, and in particular, provide improved modeling of answer uncertainty as evidenced by a superior correlation between answer set size and embedding entropy.

View on arXivView PDF

Code Implementations(1)

MIT

Multi-Hop Logical Reasoning in Knowledge Graphs

204Shell, PythonFeb 27, 20215 years agoMIT

Cite this paper

@article{luus2021logic,
  title  = {Logic Embeddings for Complex Query Answering},
  author = {Francois Luus and Prithviraj Sen and Pavan Kapanipathi and Ryan Riegel and Ndivhuwo Makondo and Thabang Lebese and Alexander Gray},
  year   = {2021},
  eprint = {2103.00418},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.00418}
}

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/2103.00418.svg)](https://codeofpaper.com/paper/2103.00418)

Discussion