{"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/knowledge-graph-alignment-network-with-gated","title":"Knowledge Graph Alignment Network with Gated Multi-hop Neighborhood Aggregation","arxiv_id":"1911.08936","date":"2019-11-20","proceeding":null,"authors":["Zequn Sun","Chengming Wang","Wei Hu","Muhao Chen","Jian Dai","Wei zhang","Yuzhong Qu"],"abstract":"Graph neural networks (GNNs) have emerged as a powerful paradigm for embedding-based entity alignment due to their capability of identifying isomorphic subgraphs. However, in real knowledge graphs (KGs), the counterpart entities usually have non-isomorphic neighborhood structures, which easily causes GNNs to yield different representations for them. To tackle this problem, we propose a new KG alignment network, namely AliNet, aiming at mitigating the non-isomorphism of neighborhood structures in an end-to-end manner. As the direct neighbors of counterpart entities are usually dissimilar due to the schema heterogeneity, AliNet introduces distant neighbors to expand the overlap between their neighborhood structures. It employs an attention mechanism to highlight helpful distant neighbors and reduce noises. Then, it controls the aggregation of both direct and distant neighborhood information using a gating mechanism. We further propose a relation loss to refine entity representations. We perform thorough experiments with detailed ablation studies and analyses on five entity alignment datasets, demonstrating the effectiveness of AliNet.","url_abs":"https://arxiv.org/abs/1911.08936v1","url_pdf":"https://arxiv.org/pdf/1911.08936v1.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":"knowledge-graph-alignment-network-with-gated","repo_url":"https://github.com/nju-websoft/AliNet","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"entity-alignment","task_name":"Entity Alignment"},{"task_slug":"knowledge-graphs","task_name":"Knowledge Graphs"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/entity-alignment-on-dbp15k-zh-en","task":"Entity Alignment","dataset":"DBP15k zh-en","model":"AliNet","rank_in_archive_order":29,"of":38,"metrics":{"Hits@1":"0.539"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1911.08936","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1911.08936"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/AliNet","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":16},"by_repo_kind":{"official":{"samples":16,"ran":0,"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":"07e71e2afeccab7f","entry":"dropout","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/gnn/gcn/layers.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/gnn/gcn/layers.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":"07e71e2afeccab7f"}},{"code_sha256_prefix":"f0ef498a850e7f2e","entry":"enhance_triples","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/align/preprocess.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/align/preprocess.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":"f0ef498a850e7f2e"}},{"code_sha256_prefix":"0d922046ee1d121f","entry":"find_alignment","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/align/semi_align.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/align/semi_align.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":"0d922046ee1d121f"}},{"code_sha256_prefix":"3a0eb87fcf00aaf0","entry":"find_neighbours","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/align/sample.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/align/sample.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":"3a0eb87fcf00aaf0"}},{"code_sha256_prefix":"61697edb32714238","entry":"find_potential_alignment_greedily","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/align/semi_align.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/align/semi_align.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":"61697edb32714238"}},{"code_sha256_prefix":"1da0e8384b145f4c","entry":"find_potential_alignment_mwgm","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/align/semi_align.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/align/semi_align.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":"1da0e8384b145f4c"}},{"code_sha256_prefix":"d2a5c3da9bd45dbc","entry":"generate_3hop_triples","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/align/preprocess.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/align/preprocess.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":"d2a5c3da9bd45dbc"}},{"code_sha256_prefix":"a3541e84dd1b5f4b","entry":"get_neighbor_counterparts","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/alinet_func.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/alinet_func.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":"a3541e84dd1b5f4b"}},{"code_sha256_prefix":"ad5aab11344c6cf6","entry":"get_neighbor_dict","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/alinet_func.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/alinet_func.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":"ad5aab11344c6cf6"}},{"code_sha256_prefix":"8fcdda216ea70bc6","entry":"merge_dic","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/align/util.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/align/util.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":"8fcdda216ea70bc6"}},{"code_sha256_prefix":"05d6a59d8b6a7b2a","entry":"read_links","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/align/util.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/align/util.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":"05d6a59d8b6a7b2a"}},{"code_sha256_prefix":"39c8dad33801fffc","entry":"read_relation_triples","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/align/util.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/align/util.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":"39c8dad33801fffc"}},{"code_sha256_prefix":"d4bf18bc4a71f971","entry":"read_triples","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/align/input.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/align/input.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":"d4bf18bc4a71f971"}},{"code_sha256_prefix":"66d3ee45da6a2d88","entry":"remove_unlinked_triples","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/align/preprocess.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/align/preprocess.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":"66d3ee45da6a2d88"}},{"code_sha256_prefix":"53639130076fc405","entry":"sparse_dropout","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/gnn/gcn/layers.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/gnn/gcn/layers.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":"53639130076fc405"}},{"code_sha256_prefix":"8d8e78bf87150681","entry":"update_labeled_alignment_x","repo":"nju-websoft/AliNet","repo_kind":"official","path":"code/alinet_func.py","file_url":"https://github.com/nju-websoft/AliNet/blob/HEAD/code/alinet_func.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":"8d8e78bf87150681"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}