Papers › Relational Message Passing for Knowledge Graph Completion

Relational Message Passing for Knowledge Graph Completion

17 Feb 2020arXiv:2002.06757archive 2025-07-28

Hongwei Wang, Hongyu Ren, Jure Leskovec

Knowledge graph completion aims to predict missing relations between entities in a knowledge graph. In this work, we propose a relational message passing method for knowledge graph completion. Different from existing embedding-based methods, relational message passing only considers edge features (i.e., relation types) without entity IDs in the knowledge graph, and passes relational messages among edges iteratively to aggregate neighborhood information. Specifically, two kinds of neighborhood topology are modeled for a given entity pair under the relational message passing framework: (1) Relational context, which captures the relation types of edges adjacent to the given entity pair; (2) Relational paths, which characterize the relative position between the given two entities in the knowledge graph. The two message passing modules are combined together for relation prediction. Experimental results on knowledge graph benchmarks as well as our newly proposed dataset show that, our method PathCon outperforms state-of-the-art knowledge graph completion methods by a large margin. PathCon is also shown applicable to inductive settings where entities are not seen in training stage, and it is able to provide interpretable explanations for the predicted results. The code and all datasets are available at https://github.com/hwwang55/PathCon.

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

Code

Syntology Ran 1 of 18 code samples harvested from 2 repositories linked to this paper; 17 have no recorded run. Of those that ran: 1 ran · honoured contract.

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

hwwang55/PathCon officialmentioned in papermentioned on GitHubtfMIT report
hyren/PathCon mentioned on GitHubpytorchMIT report
muhanzhang/IGMC mentioned on GitHubpytorchMIT report
muhanzhang/IGPL mentioned 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

18 samples harvested; 1 ran; 1 honoured the contract we drafted; 17 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 · honoured contract
17unverified

Licence: 0 of the 18 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.

count_all_paths hwwang55/PathCon/src/utils.py official repository unverified MIT (permissive) · 43b5e3fa582da3d7 · report
count_all_paths_with_mp hwwang55/PathCon/src/utils.py official repository unverified MIT (permissive) · 018bf3f65be492cc · report
get_layer_id hwwang55/PathCon/src/aggregators.py official repository unverified MIT (permissive) · fc9ffc41618b3fd4 · report
get_params_for_mp hwwang55/PathCon/src/utils.py official repository unverified MIT (permissive) · b5db0d52d633b48d · report
read_entities hwwang55/PathCon/src/data_loader.py official repository unverified MIT (permissive) · fd92338302edcbb5 · report
read_relations hwwang55/PathCon/src/data_loader.py official repository unverified MIT (permissive) · b7118c6bf6b1a03c · report
read_triplets hwwang55/PathCon/src/data_loader.py official repository unverified MIT (permissive) · 6165bfc94471e574 · report
num_graphs muhanzhang/IGMC/train_eval.py community (archive-listed) ran · honoured contract MIT (permissive) · 9da87b0b1605a660 · report
construct_pyg_graph muhanzhang/IGMC/util_functions.py community (archive-listed) unverified MIT (permissive) · e673939466b977db · report
links2subgraphs muhanzhang/IGMC/util_functions.py community (archive-listed) unverified MIT (permissive) · 671a634f85ff02bf · report
load_data muhanzhang/IGMC/data_utils.py community (archive-listed) unverified MIT (permissive) · 3b7d48d27d3a3427 · report
load_matlab_file muhanzhang/IGMC/preprocessing.py community (archive-listed) unverified MIT (permissive) · 76472b9c1b3e64e0 · report
map_data muhanzhang/IGMC/data_utils.py community (archive-listed) unverified MIT (permissive) · c5610bcfc7d8a106 · report
normalize_features muhanzhang/IGMC/preprocessing.py community (archive-listed) unverified MIT (permissive) · 1e9e875e5b3efe21 · report
preprocess_user_item_features muhanzhang/IGMC/preprocessing.py community (archive-listed) unverified MIT (permissive) · 0bb0ea10173803fd · report
subgraph_extraction_labeling muhanzhang/IGMC/util_functions.py community (archive-listed) unverified MIT (permissive) · 4308078bf13d0be4 · report
test_once muhanzhang/IGMC/train_eval.py community (archive-listed) unverified MIT (permissive) · 8379839e80eb0191 · report
train_multiple_epochs muhanzhang/IGMC/train_eval.py community (archive-listed) unverified MIT (permissive) · c0108c667c70657c · report

Tasks

Knowledge Graph CompletionRelation Prediction

1 archive task tag without a task page not shown.

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