Papers › Rethinking Complex Queries on Knowledge Graphs with Neural Link Predictors

Rethinking Complex Queries on Knowledge Graphs with Neural Link Predictors

14 Apr 2023arXiv:2304.07063archive 2025-07-28

Hang Yin, ZiHao Wang, Yangqiu Song

Reasoning on knowledge graphs is a challenging task because it utilizes observed information to predict the missing one. Particularly, answering complex queries based on first-order logic is one of the crucial tasks to verify learning to reason abilities for generalization and composition. Recently, the prevailing method is query embedding which learns the embedding of a set of entities and treats logic operations as set operations and has shown great empirical success. Though there has been much research following the same formulation, many of its claims lack a formal and systematic inspection. In this paper, we rethink this formulation and justify many of the previous claims by characterizing the scope of queries investigated previously and precisely identifying the gap between its formulation and its goal, as well as providing complexity analysis for the currently investigated queries. Moreover, we develop a new dataset containing ten new types of queries with features that have never been considered and therefore can provide a thorough investigation of complex queries. Finally, we propose a new neural-symbolic method, Fuzzy Inference with Truth value (FIT), where we equip the neural link predictors with fuzzy logic theory to support end-to-end learning using complex queries with provable reasoning capability. Empirical results show that our method outperforms previous methods significantly in the new dataset and also surpasses previous methods in the existing dataset at the same time.

PaperPDFCodeCode 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="2304.07063")

Code

Syntology Ran 18 of 41 code samples harvested from 1 repository linked to this paper; 23 have no recorded run. Of those that ran: 2 ran · honoured contract; 5 ran · our draft was wrong; 2 ran · fixture could not drive it; 9 ran with no contract checked.

By repository: official repository: 41 samples from 1 repository, 18 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

hkust-knowcomp/fit officialmentioned in papermentioned on GitHubpytorchMIT 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

41 samples harvested; 18 ran; 2 honoured the contract we drafted; 23 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
5ran · our draft was wrong
2ran · fixture could not drive it
9ran
23unverified

Licence: 0 of the 41 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 hkust-knowcomp/fit. “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.

read_from_yaml hkust-knowcomp/fit/QG_FIT.py official repository ran · our draft was wrong MIT (permissive) · 84eb10126b44cd7c · report
Config hkust-knowcomp/fit/Neural_FIT.py official repository ran MIT (permissive) · 2912753768ab645c · report
KGIndex hkust-knowcomp/fit/Neural_FIT.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 9e89fde226cf805b · report
KnowledgeGraphConfig hkust-knowcomp/fit/Neural_FIT.py official repository ran MIT (permissive) · e1a678914e17d9cc · report
RaggedBatch hkust-knowcomp/fit/Neural_FIT.py official repository ran · metamorphic tier: well formed fingerprinted MIT (permissive) · 2320379032a21fe0 · report
_iter_triple_from_tsv hkust-knowcomp/fit/Neural_FIT.py official repository ran · our draft was wrong MIT (permissive) · c7e8b390d25b5532 · report
align_entities_relations HKUST-KnowComp/FIT/convert_beta_dataset.py official repository ran MIT (permissive) · 2c5d6c341e63248e · report
check_candidate_set hkust-knowcomp/fit/Neural_FIT.py official repository ran · our draft was wrong MIT (permissive) · c94caad91983a47e · report
compute_batch_score_complex hkust-knowcomp/fit/Neural_FIT.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · dfaa9a08584100be · report
compute_batch_score_distmult HKUST-KnowComp/FIT/compute_score.py official repository ran fingerprinted MIT (permissive) · 1869521a4be75145 · report
compute_batch_score_transe HKUST-KnowComp/FIT/compute_score.py official repository ran fingerprinted MIT (permissive) · 8c0698d90001cd35 · report
fixed_depth_nested_dict hkust-knowcomp/fit/Neural_FIT.py official repository ran · our draft was wrong MIT (permissive) · 7bd57dd5eaa81647 · report
iter_triple_from_tsv hkust-knowcomp/fit/Neural_FIT.py official repository ran · our draft was wrong MIT (permissive) · b1fab42528218ff3 · report
load_beta_model hkust-knowcomp/fit/QG_FIT.py official repository ran · honoured contract MIT (permissive) · 25412604ebe7d821 · report
load_model hkust-knowcomp/fit/QG_FIT.py official repository ran · honoured contract MIT (permissive) · 4c08e440ba7f3e8c · report
log_add_metric HKUST-KnowComp/FIT/evaluate_lmpnn.py official repository ran MIT (permissive) · 8e7c46d561388d36 · report
ranking2metrics HKUST-KnowComp/FIT/evaluate_lmpnn.py official repository ran MIT (permissive) · e9bc5bf12edea40c · report
tensorize_batch_entities hkust-knowcomp/fit/Neural_FIT.py official repository ran · fixture could not drive it MIT (permissive) · b048d0b5cfcddddc · report
FIT_finetune hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · 106410206f55ee55 · report
Kge_finetune hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · 29357053d3c8e6cf · report
KnowledgeGraph hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · c7e631917f0831d7 · report
collect_matrix_scipy_sparse HKUST-KnowComp/FIT/create_matrix.py official repository unverified MIT (permissive) · 330130ddfb49fc13 · report
construct_matrix_dynamic hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · 58bd1c00d37189f3 · report
construct_matrix_list hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · e1824a035caa07b0 · report
csp_efo1 hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · de00fcf9dff8f944 · report
cut_node_sub_problem hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · b9fe352ddb40ce7c · report
evaluate_batch_joint HKUST-KnowComp/FIT/evaluate_lmpnn.py official repository unverified MIT (permissive) · 34cfe3992789f9f7 · report
extend_ans hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · 2d594b302a995572 · report
find_enumerate_node hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · 53b482ea547b3034 · report
find_leaf_node hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · c1c6d4c74680abee · report
kg_remove_node hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · d4fa4a2e520e91da · report
neural_cut_node_sub_problem hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · 9224a778f5fbd47f · report
neural_existential_update hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · 003464ef621fcac7 · report
neural_extend_ans hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · df6ae0aeda5453e6 · report
neural_solve_EFO1_X hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · 2868d57816b54ef1 · report
neural_solve_conjunctive hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · d9353c5d35da90dd · report
node_filter hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · 9c109521a0a3bf1c · report
node_pair_filtering hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · 4968b4d922dd7429 · report
solve_EFO1_new hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · 2a1fdf0490126a9e · report
solve_conjunctive hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · f408248313c609f9 · report
topology_filter hkust-knowcomp/fit/Neural_FIT.py official repository unverified MIT (permissive) · 95aa5762a066cf5b · report

Tasks

Knowledge Graphs

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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