{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/transedge-translating-relation-contextualized","title":"TransEdge: Translating Relation-contextualized Embeddings for Knowledge Graphs","arxiv_id":"2004.13579","date":"2020-04-22","proceeding":null,"authors":["Zequn Sun","Jiacheng Huang","Wei Hu","Muchao Chen","Lingbing Guo","Yuzhong Qu"],"abstract":"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.","url_abs":"https://arxiv.org/abs/2004.13579v1","url_pdf":"https://arxiv.org/pdf/2004.13579v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"transedge-translating-relation-contextualized","repo_url":"https://github.com/nju-websoft/TransEdge","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"entity-alignment","task_name":"Entity Alignment"},{"task_slug":"entity-embeddings","task_name":"Entity Embeddings"},{"task_slug":"knowledge-graphs","task_name":"Knowledge Graphs"},{"task_slug":"link-prediction","task_name":"Link Prediction"},{"task_slug":null,"task_name":"Relation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2004.13579","atlas_url":"https://app.syntology.ai/?focus=2004.13579","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2004.13579"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/nju-websoft/TransEdge","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":9,"unverified":3},"by_repo_kind":{"official":{"samples":12,"ran":9,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"43a68e3c8da3cb8f","entry":"dic_kkv2list","repo":"nju-websoft/TransEdge","repo_kind":"official","path":"code/kg_lp.py","file_url":"https://github.com/nju-websoft/TransEdge/blob/HEAD/code/kg_lp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"43a68e3c8da3cb8f"}},{"code_sha256_prefix":"e780f352a3c7ac74","entry":"dic_kv2list","repo":"nju-websoft/TransEdge","repo_kind":"official","path":"code/kg_lp.py","file_url":"https://github.com/nju-websoft/TransEdge/blob/HEAD/code/kg_lp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e780f352a3c7ac74"}},{"code_sha256_prefix":"3796f718ded4e854","entry":"dic_kv2list_hubu","repo":"nju-websoft/TransEdge","repo_kind":"official","path":"code/kg_lp.py","file_url":"https://github.com/nju-websoft/TransEdge/blob/HEAD/code/kg_lp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3796f718ded4e854"}},{"code_sha256_prefix":"3d11d81dffd5eb22","entry":"filter_mat","repo":"nju-websoft/TransEdge","repo_kind":"official","path":"code/train_bp.py","file_url":"https://github.com/nju-websoft/TransEdge/blob/HEAD/code/train_bp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3d11d81dffd5eb22"}},{"code_sha256_prefix":"ce42c9af98b99262","entry":"generate_cross_min_sim","repo":"nju-websoft/TransEdge","repo_kind":"official","path":"code/train_funcs.py","file_url":"https://github.com/nju-websoft/TransEdge/blob/HEAD/code/train_funcs.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ce42c9af98b99262"}},{"code_sha256_prefix":"076eb32b455bd4e6","entry":"generate_out_folder","repo":"nju-websoft/TransEdge","repo_kind":"official","path":"code/train_funcs.py","file_url":"https://github.com/nju-websoft/TransEdge/blob/HEAD/code/train_funcs.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"076eb32b455bd4e6"}},{"code_sha256_prefix":"1cb6e3f91859d444","entry":"generate_sup_triples","repo":"nju-websoft/TransEdge","repo_kind":"official","path":"code/utils.py","file_url":"https://github.com/nju-websoft/TransEdge/blob/HEAD/code/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1cb6e3f91859d444"}},{"code_sha256_prefix":"cafe03267576040a","entry":"limit_loss","repo":"nju-websoft/TransEdge","repo_kind":"official","path":"code/model_funcs.py","file_url":"https://github.com/nju-websoft/TransEdge/blob/HEAD/code/model_funcs.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cafe03267576040a"}},{"code_sha256_prefix":"8feff77c105deae2","entry":"search_nearest_k","repo":"nju-websoft/TransEdge","repo_kind":"official","path":"code/train_bp.py","file_url":"https://github.com/nju-websoft/TransEdge/blob/HEAD/code/train_bp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8feff77c105deae2"}},{"code_sha256_prefix":"4084cc8f42902e22","entry":"bootstrapping","repo":"nju-websoft/TransEdge","repo_kind":"official","path":"code/train_bp.py","file_url":"https://github.com/nju-websoft/TransEdge/blob/HEAD/code/train_bp.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4084cc8f42902e22"}},{"code_sha256_prefix":"ac1af7025e0011b6","entry":"embed_init","repo":"nju-websoft/TransEdge","repo_kind":"official","path":"code/model_funcs.py","file_url":"https://github.com/nju-websoft/TransEdge/blob/HEAD/code/model_funcs.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ac1af7025e0011b6"}},{"code_sha256_prefix":"ae60d2c6a850f59a","entry":"xavier_init","repo":"nju-websoft/TransEdge","repo_kind":"official","path":"code/model_funcs.py","file_url":"https://github.com/nju-websoft/TransEdge/blob/HEAD/code/model_funcs.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ae60d2c6a850f59a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}