Papers › TransEdge: Translating Relation-contextualized Embeddings for Knowledge Graphs

TransEdge: Translating Relation-contextualized Embeddings for Knowledge Graphs

22 Apr 2020arXiv:2004.13579archive 2025-07-28

Zequn Sun, Jiacheng Huang, Wei Hu, Muchao Chen, Lingbing Guo, Yuzhong Qu

Learning knowledge graph (KG) embeddings has received increasing attention in recent years. Most embedding models in literature interpret relations as linear or bilinear mapping functions to operate on entity embeddings. However, we find that such relation-level modeling cannot capture the diverse relational structures of KGs well. In this paper, we propose a novel edge-centric embedding model TransEdge, which contextualizes relation representations in terms of specific head-tail entity pairs. We refer to such contextualized representations of a relation as edge embeddings and interpret them as translations between entity embeddings. TransEdge achieves promising performance on different prediction tasks. Our experiments on benchmark datasets indicate that it obtains the state-of-the-art results on embedding-based entity alignment. We also show that TransEdge is complementary with conventional entity alignment methods. Moreover, it shows very competitive performance on link prediction.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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

Code

Syntology Ran 9 of 12 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 9 ran with no contract checked.

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

nju-websoft/TransEdge officialmentioned in papertfMIT 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

12 samples harvested; 9 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

9ran
3unverified

Licence: 0 of the 12 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 nju-websoft/TransEdge. “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.

dic_kkv2list nju-websoft/TransEdge/code/kg_lp.py official repository ran MIT (permissive) · 43a68e3c8da3cb8f · report
dic_kv2list nju-websoft/TransEdge/code/kg_lp.py official repository ran MIT (permissive) · e780f352a3c7ac74 · report
dic_kv2list_hubu nju-websoft/TransEdge/code/kg_lp.py official repository ran MIT (permissive) · 3796f718ded4e854 · report
filter_mat nju-websoft/TransEdge/code/train_bp.py official repository ran MIT (permissive) · 3d11d81dffd5eb22 · report
generate_cross_min_sim nju-websoft/TransEdge/code/train_funcs.py official repository ran MIT (permissive) · ce42c9af98b99262 · report
generate_out_folder nju-websoft/TransEdge/code/train_funcs.py official repository ran MIT (permissive) · 076eb32b455bd4e6 · report
generate_sup_triples nju-websoft/TransEdge/code/utils.py official repository ran MIT (permissive) · 1cb6e3f91859d444 · report
limit_loss nju-websoft/TransEdge/code/model_funcs.py official repository ran MIT (permissive) · cafe03267576040a · report
search_nearest_k nju-websoft/TransEdge/code/train_bp.py official repository ran MIT (permissive) · 8feff77c105deae2 · report
bootstrapping nju-websoft/TransEdge/code/train_bp.py official repository unverified MIT (permissive) · 4084cc8f42902e22 · report
embed_init nju-websoft/TransEdge/code/model_funcs.py official repository unverified MIT (permissive) · ac1af7025e0011b6 · report
xavier_init nju-websoft/TransEdge/code/model_funcs.py official repository unverified MIT (permissive) · ae60d2c6a850f59a · report

Tasks

Entity AlignmentEntity EmbeddingsKnowledge GraphsLink 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