HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Embedding Logical Queries on Knowledge Graphs

William L. Hamilton; Payal Bajaj; Marinka Zitnik; Dan Jurafsky; Jure Leskovec

Embedding Logical Queries on Knowledge Graphs

Abstract

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.

Benchmarks

BenchmarkMethodologyMetrics
complex-query-answering-on-fb15kGQE
MRR 1p: 0.546
MRR 2i: 0.397
MRR 2p: 0.153
MRR 2u: 0.221
MRR 3i: 0.514
MRR 3p: 0.108
MRR ip: 0.191
MRR pi: 0.276
MRR up: 0.116
complex-query-answering-on-fb15k-237GQE
MRR 1p: 0.35
MRR 2i: 0.233
MRR 2p: 0.072
MRR 2u: 0.082
MRR 3i: 0.346
MRR 3p: 0.053
MRR ip: 0.107
MRR pi: 0.165
MRR up: 0.057

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Embedding Logical Queries on Knowledge Graphs | Papers | HyperAI