Papers › Complex Query Answering with Neural Link Predictors

Complex Query Answering with Neural Link Predictors

6 Nov 2020ICLR 2021 1arXiv:2011.03459archive 2025-07-28

Erik Arakelyan, Daniel Daza, Pasquale Minervini, Michael Cochez

Neural link predictors are immensely useful for identifying missing edges in large scale Knowledge Graphs. However, it is still not clear how to use these models for answering more complex queries that arise in a number of domains, such as queries using logical conjunctions ($\land$), disjunctions ($\lor$) and existential quantifiers (∃), while accounting for missing edges. In this work, we propose a framework for efficiently answering complex queries on incomplete Knowledge Graphs. We translate each query into an end-to-end differentiable objective, where the truth value of each atom is computed by a pre-trained neural link predictor. We then analyse two solutions to the optimisation problem, including gradient-based and combinatorial search. In our experiments, the proposed approach produces more accurate results than state-of-the-art methods -- black-box neural models trained on millions of generated queries -- without the need of training on a large and diverse set of complex queries. Using orders of magnitude less training data, we obtain relative improvements ranging from 8% up to 40% in Hits@3 across different knowledge graphs containing factual information. Finally, we demonstrate that it is possible to explain the outcome of our model in terms of the intermediate solutions identified for each of the complex query atoms. All our source code and datasets are available online, at https://github.com/uclnlp/cqd.

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="2011.03459")

Code

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

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

uclnlp/cqd officialmentioned in paperpytorch report
Blidge/KGReasoning mentioned on GitHubpytorch report
LHY-24/KG-Compilation mentioned on GitHubpytorch report
dice-group/dice-embeddings mentioned on GitHubpytorch report
pminervini/kgreasoning 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

7 samples harvested; 5 ran; 0 honoured the contract we drafted; 2 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.

1ran · our draft was wrong
4ran
2unverified

Licence: 4 of the 7 samples are 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 2 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/operator_fuser.py community (archive-listed) ran no licence file found · pointer only · 8ffbdd40f46c7744 · report
BetaUnion LHY-24/KG-Compilation/src/operator_fuser.py community (archive-listed) ran no licence file found · pointer only · af41baf7167a162e · report
FusedOperator LHY-24/KG-Compilation/src/operator_fuser.py community (archive-listed) ran no licence file found · pointer only · f500993bdc21b4ce · report
QueryGenerator dice-group/dice-embeddings/dicee/query_generator.py community (archive-listed) ran MIT (permissive) · 6bf9498fc1a88844 · report
load_pickle dice-group/dice-embeddings/dicee/query_generator.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 5484d29ab2e86ff8 · report
OperatorFuser LHY-24/KG-Compilation/src/operator_fuser.py community (archive-listed) unverified no licence file found · pointer only · 10e78fd3323d9e98 · report
save_pickle dice-group/dice-embeddings/dicee/query_generator.py community (archive-listed) unverified MIT (permissive) · 8f9261c61b1a5014 · report

Tasks

Complex Query AnsweringKnowledge Graphs

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Complex Query Answering FB15k CQD MRR 1p 0.892 #2 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD MRR 2i 0.771 #2 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD MRR 2p 0.653 #2 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD MRR 2u 0.723 #2 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD MRR 3i 0.806 #2 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD MRR ip 0.716 #2 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-Beam Hits@3 1p 0.918 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-Beam Hits@3 2i 0.796 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-Beam Hits@3 2p 0.779 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-Beam Hits@3 2u 0.839 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-Beam Hits@3 3i 0.837 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-Beam Hits@3 3p 0.577 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-Beam Hits@3 ip 0.375 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-Beam Hits@3 pi 0.658 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-Beam Hits@3 up 0.345 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-CO Hits@3 1p 0.918 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-CO Hits@3 2i 0.796 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-CO Hits@3 2p 0.454 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-CO Hits@3 2u 0.816 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-CO Hits@3 3i 0.837 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-CO Hits@3 3p 0.191 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-CO Hits@3 ip 0.336 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-CO Hits@3 pi 0.513 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k CQD-CO Hits@3 up 0.319 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD MRR 3i 0.486 #7 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-CO Hits@3 1p 0.512 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-CO Hits@3 2i 35.2 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-CO Hits@3 2p 0.213 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-CO Hits@3 2u 0.281 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-CO Hits@3 3i 0.457 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-CO Hits@3 3p 0.131 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-CO Hits@3 ip 0.146 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-CO Hits@3 pi 0.222 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-CO Hits@3 up 0.132 #8 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-Beam Hits@3 1p 0.512 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-Beam Hits@3 2i 0.352 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-Beam Hits@3 2p 0.288 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-Beam Hits@3 2u 0.284 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-Beam Hits@3 3i 0.457 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-Beam Hits@3 3p 0.221 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-Beam Hits@3 ip 0.129 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-Beam Hits@3 pi 0.249 #9 of 9 Archive leaderboard report
Complex Query Answering FB15k-237 CQD-Beam Hits@3 up 0.121 #9 of 9 Archive leaderboard report
Complex Query Answering NELL-995 CQD MRR 1p 0.604 #2 of 6 Archive leaderboard report
Complex Query Answering NELL-995 CQD MRR 2i 0.436 #2 of 6 Archive leaderboard report
Complex Query Answering NELL-995 CQD MRR ip 0.256 #2 of 6 Archive leaderboard report
Complex Query Answering NELL995 CQD-Beam Hits@3 2p 0.350 #1 of 2 Archive leaderboard report
Complex Query Answering NELL995 CQD-Beam Hits@3 3p 0.288 #1 of 2 Archive leaderboard report
Complex Query Answering NELL995 CQD-Beam Hits@3 ip 0.171 #1 of 2 Archive leaderboard report
Complex Query Answering NELL995 CQD-Beam Hits@3 pi 0.277 #1 of 2 Archive leaderboard report
Complex Query Answering NELL995 CQD-Beam Hits@3 up 0.156 #1 of 2 Archive leaderboard report
Complex Query Answering NELL995 CQD-CO Hits@3 1p 0.667 #2 of 2 Archive leaderboard report
Complex Query Answering NELL995 CQD-CO Hits@3 2i 0.410 #2 of 2 Archive leaderboard report
Complex Query Answering NELL995 CQD-CO Hits@3 2p 0.265 #2 of 2 Archive leaderboard report
Complex Query Answering NELL995 CQD-CO Hits@3 2u 0.531 #2 of 2 Archive leaderboard report
Complex Query Answering NELL995 CQD-CO Hits@3 3i 0.529 #2 of 2 Archive leaderboard report
Complex Query Answering NELL995 CQD-CO Hits@3 3p 0.220 #2 of 2 Archive leaderboard report
Complex Query Answering NELL995 CQD-CO Hits@3 ip 0.196 #2 of 2 Archive leaderboard report
Complex Query Answering NELL995 CQD-CO Hits@3 pi 0.302 #2 of 2 Archive leaderboard report
Complex Query Answering NELL995 CQD-CO Hits@3 up 0.194 #2 of 2 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