Papers › Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs

Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs

22 Oct 2020NeurIPS 2020 12arXiv:2010.11465archive 2025-07-28

Hongyu Ren, Jure Leskovec

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 (∧), disjunction (∨), and negation (¬). 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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2010.11465")

Code

Syntology Ran 8 of 14 code samples harvested from 4 repositories linked to this paper; 6 have no recorded run. Of those that ran: 2 ran · honoured contract; 3 ran · our draft was wrong; 3 ran with no contract checked.

By repository: community (archive-listed): 14 samples from 4 repositories, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Blidge/KGReasoning mentioned on GitHubpytorch report
Jacfger/simple-stuffs mentioned on GitHubpytorch report
LHY-24/KG-Compilation mentioned on GitHubpytorch report
francoisluus/KGReasoning mentioned on GitHubpytorch report
hkust-knowcomp/efo-1-qa-benchmark mentioned on GitHubpytorchMIT report
pminervini/kgreasoning mentioned on GitHubpytorch report
snap-stanford/KGReasoning mentioned on GitHubpytorchMIT report
uclnlp/cqd mentioned on GitHubpytorch report
zhiweihu1103/qe-temp mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 8 ran; 2 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
3ran · our draft was wrong
3ran
6unverified

Licence: 1 of the 14 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 4 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

BetaIntersection LHY-24/KG-Compilation/src/models.py community (archive-listed) ran no licence file found · pointer only · 15f1515d95ce51d1 · report
BetaIntersection Jacfger/simple-stuffs/fol/estimator_beta.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 65d51f93f096ca1a · report
BetaProjection Jacfger/simple-stuffs/fol/estimator_beta.py community (archive-listed) ran · metamorphic tier: invariant MIT (permissive) · bc022c5d939d4dff · report
Identity snap-stanford/KGReasoning/models.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · f44985272d18127a · report
eval_tuple snap-stanford/KGReasoning/util.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 08bc9653c017dfb5 · report
list2tuple snap-stanford/KGReasoning/create_queries.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 8c314b5b308ab1ad · report
make_batches uclnlp/cqd/kbc/models.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · b602fff455d94358 · report
tuple2list snap-stanford/KGReasoning/create_queries.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · bbd072fbd86e1541 · report
BetaEstimator Jacfger/simple-stuffs/fol/estimator_beta.py community (archive-listed) unverified MIT (permissive) · 83454511701e3bdd · report
DynKBCSingleton uclnlp/cqd/kbc/models.py community (archive-listed) unverified MIT (permissive) · c1c62def2f1c5499 · report
KBCModel uclnlp/cqd/kbc/models.py community (archive-listed) unverified MIT (permissive) · a3016c183214fb5a · report
QuerDAG uclnlp/cqd/kbc/models.py community (archive-listed) unverified MIT (permissive) · ccc626ec21ffdcfb · report
Regularizer uclnlp/cqd/kbc/models.py community (archive-listed) unverified MIT (permissive) · dfce66d833684f59 · report
construct_graph snap-stanford/KGReasoning/create_queries.py community (archive-listed) unverified MIT (permissive) · 75304c63d0f3ce0c · report

Tasks

Complex Query AnsweringKnowledge GraphsLogical ReasoningNegation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Complex Query Answering FB15k BetaE MRR 1p 0.651 #6 of 9 Archive leaderboard report
Complex Query Answering FB15k BetaE MRR 2i 0.558 #6 of 9 Archive leaderboard report
Complex Query Answering FB15k BetaE MRR 2p 0.257 #6 of 9 Archive leaderboard report
Complex Query Answering FB15k BetaE MRR 2u 0.401 #6 of 9 Archive leaderboard report
Complex Query Answering FB15k BetaE MRR 3i 0.665 #6 of 9 Archive leaderboard report
Complex Query Answering FB15k BetaE MRR 3p 0.247 #6 of 9 Archive leaderboard report
Complex Query Answering FB15k BetaE MRR ip 0.281 #6 of 9 Archive leaderboard report
Complex Query Answering FB15k BetaE MRR pi 0.439 #6 of 9 Archive leaderboard report
Complex Query Answering FB15k BetaE MRR up 0.252 #6 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 BetaE MRR 1p 0.39 #5 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 BetaE MRR 2i 0.288 #5 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 BetaE MRR 2p 0.109 #5 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 BetaE MRR 2u 0.124 #5 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 BetaE MRR 3i 0.425 #5 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 BetaE MRR 3p 0.1 #5 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 BetaE MRR ip 0.126 #5 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 BetaE MRR pi 0.224 #5 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 BetaE MRR up 0.097 #5 of 9 Archive leaderboard report
Complex Query Answering NELL-995 BetaE MRR 1p 0.53 #5 of 6 Archive leaderboard report
Complex Query Answering NELL-995 BetaE MRR 2i 0.376 #5 of 6 Archive leaderboard report
Complex Query Answering NELL-995 BetaE MRR 2p 0.13 #5 of 6 Archive leaderboard report
Complex Query Answering NELL-995 BetaE MRR 2u 0.122 #5 of 6 Archive leaderboard report
Complex Query Answering NELL-995 BetaE MRR 3i 0.475 #5 of 6 Archive leaderboard report
Complex Query Answering NELL-995 BetaE MRR 3p 0.114 #5 of 6 Archive leaderboard report
Complex Query Answering NELL-995 BetaE MRR ip 0.143 #5 of 6 Archive leaderboard report
Complex Query Answering NELL-995 BetaE MRR pi 0.241 #5 of 6 Archive leaderboard report
Complex Query Answering NELL-995 BetaE MRR up 0.085 #5 of 6 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections