HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs

Hongyu Ren; Jure Leskovec

Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs

Abstract

One of the fundamental problems in Artificial Intelligence is to perform complex multi-hop logical reasoning over the facts captured by a knowledge graph (KG). This problem is challenging, because KGs can be massive and incomplete. Recent approaches embed KG entities in a low dimensional space and then use these embeddings to find the answer entities. However, it has been an outstanding challenge of how to handle arbitrary first-order logic (FOL) queries as present methods are limited to only a subset of FOL operators. In particular, the negation operator is not supported. An additional limitation of present methods is also that they cannot naturally model uncertainty. Here, we present BetaE, a probabilistic embedding framework for answering arbitrary FOL queries over KGs. BetaE is the first method that can handle a complete set of first-order logical operations: conjunction ($\wedge$), disjunction ($\vee$), and negation ($\neg$). A key insight of BetaE is to use probabilistic distributions with bounded support, specifically the Beta distribution, and embed queries/entities as distributions, which as a consequence allows us to also faithfully model uncertainty. Logical operations are performed in the embedding space by neural operators over the probabilistic embeddings. We demonstrate the performance of BetaE on answering arbitrary FOL queries on three large, incomplete KGs. While being more general, BetaE also increases relative performance by up to 25.4% over the current state-of-the-art KG reasoning methods that can only handle conjunctive queries without negation.

Code Repositories

snap-stanford/KGReasoning
pytorch
Mentioned in GitHub
pminervini/kgreasoning
pytorch
Mentioned in GitHub
Blidge/KGReasoning
pytorch
Mentioned in GitHub
francoisluus/KGReasoning
pytorch
Mentioned in GitHub
zhiweihu1103/qe-temp
pytorch
Mentioned in GitHub
hkust-knowcomp/efo-1-qa-benchmark
pytorch
Mentioned in GitHub
Jacfger/simple-stuffs
pytorch
Mentioned in GitHub
LHY-24/KG-Compilation
pytorch
Mentioned in GitHub
uclnlp/cqd
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
complex-query-answering-on-fb15kBetaE
MRR 1p: 0.651
MRR 2i: 0.558
MRR 2p: 0.257
MRR 2u: 0.401
MRR 3i: 0.665
MRR 3p: 0.247
MRR ip: 0.281
MRR pi: 0.439
MRR up: 0.252
complex-query-answering-on-fb15k-237BetaE
MRR 1p: 0.39
MRR 2i: 0.288
MRR 2p: 0.109
MRR 2u: 0.124
MRR 3i: 0.425
MRR 3p: 0.1
MRR ip: 0.126
MRR pi: 0.224
MRR up: 0.097
complex-query-answering-on-nell-995BetaE
MRR 1p: 0.53
MRR 2i: 0.376
MRR 2p: 0.13
MRR 2u: 0.122
MRR 3i: 0.475
MRR 3p: 0.114
MRR ip: 0.143
MRR pi: 0.241
MRR up: 0.085

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
Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs | Papers | HyperAI