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

Embedding Logical Queries on Knowledge Graphs

About

Learning low-dimensional embeddings of knowledge graphs is a powerful approach used to predict unobserved or missing edges between entities. However, an open challenge in this area is developing techniques that can go beyond simple edge prediction and handle more complex logical queries, which might involve multiple unobserved edges, entities, and variables. For instance, given an incomplete biological knowledge graph, we might want to predict "em what drugs are likely to target proteins involved with both diseases X and Y?" -- a query that requires reasoning about all possible proteins that {\em might} interact with diseases X and Y. Here we introduce a framework to efficiently make predictions about conjunctive logical queries -- a flexible but tractable subset of first-order logic -- on incomplete knowledge graphs. In our approach, we embed graph nodes in a low-dimensional space and represent logical operators as learned geometric operations (e.g., translation, rotation) in this embedding space. By performing logical operations within a low-dimensional embedding space, our approach achieves a time complexity that is linear in the number of query variables, compared to the exponential complexity required by a naive enumeration-based approach. We demonstrate the utility of this framework in two application studies on real-world datasets with millions of relations: predicting logical relationships in a network of drug-gene-disease interactions and in a graph-based representation of social interactions derived from a popular web forum.

William L. Hamilton, Payal Bajaj, Marinka Zitnik, Dan Jurafsky, Jure Leskovec• 2018

Related benchmarks

TaskDatasetResultRank
Logical Query AnsweringNELL995 (test)
MRR (1-path)0.418
41
Logical Query AnsweringFB15K (test)
MRR (1p)0.636
36
Logical Query Answering (EPFO)FB15k-237 (test)
2-Path Error0.213
31
Complex Query AnsweringNELL-995 (test)
Hits@1 (1p)52.5
31
Complex Query AnsweringFB15K (test)
Hits@1 (1p)57.2
30
Logical Query AnsweringFB15k-237
MRR (2-inverse path)22
29
Knowledge Graph ReasoningFB15k-237 (test)
HITS@3 (Avg)16.6
29
Complex Query AnsweringFB15k-237 (test)
Hits@1 (avg path)0.163
27
Logical Query AnsweringNELL995
MRR (1-Path)0.525
22
Logical Query AnsweringFB15k
Average MRR0.328
15
Showing 10 of 29 rows

Other info

Code

Follow for update