{"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/modeling-dynamic-heterogeneous-network-for","title":"Modeling Dynamic Heterogeneous Network for Link Prediction using Hierarchical Attention with Temporal RNN","arxiv_id":"2004.01024","date":"2020-04-01","proceeding":null,"authors":["Hansheng Xue","Luwei Yang","Wen Jiang","Yi Wei","Yi Hu","Yu Lin"],"abstract":"Network embedding aims to learn low-dimensional representations of nodes while capturing structure information of networks. It has achieved great success on many tasks of network analysis such as link prediction and node classification. Most of existing network embedding algorithms focus on how to learn static homogeneous networks effectively. However, networks in the real world are more complex, e.g., networks may consist of several types of nodes and edges (called heterogeneous information) and may vary over time in terms of dynamic nodes and edges (called evolutionary patterns). Limited work has been done for network embedding of dynamic heterogeneous networks as it is challenging to learn both evolutionary and heterogeneous information simultaneously. In this paper, we propose a novel dynamic heterogeneous network embedding method, termed as DyHATR, which uses hierarchical attention to learn heterogeneous information and incorporates recurrent neural networks with temporal attention to capture evolutionary patterns. We benchmark our method on four real-world datasets for the task of link prediction. Experimental results show that DyHATR significantly outperforms several state-of-the-art baselines.","url_abs":"https://arxiv.org/abs/2004.01024v1","url_pdf":"https://arxiv.org/pdf/2004.01024v1.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":"modeling-dynamic-heterogeneous-network-for","repo_url":"https://github.com/skx300/DyHATR","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"link-prediction","task_name":"Link Prediction"},{"task_slug":"network-embedding","task_name":"Network Embedding"},{"task_slug":"node-classification","task_name":"Node Classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2004.01024","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2004.01024"}},"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/skx300/DyHATR","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_violates":1,"ran_honours":1,"ran":1,"unverified":10},"by_repo_kind":{"official":{"samples":13,"ran":3,"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":"b8e95809ca2c17c9","entry":"sigmoid","repo":"skx300/DyHATR","repo_kind":"official","path":"src/evals/validation.py","file_url":"https://github.com/skx300/DyHATR/blob/HEAD/src/evals/validation.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":2,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b8e95809ca2c17c9"}},{"code_sha256_prefix":"b82968db452628fd","entry":"get_layer_uid","repo":"skx300/DyHATR","repo_kind":"official","path":"src/models/layers.py","file_url":"https://github.com/skx300/DyHATR/blob/HEAD/src/models/layers.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b82968db452628fd"}},{"code_sha256_prefix":"b190ef9c60b2629a","entry":"zeros","repo":"skx300/DyHATR","repo_kind":"official","path":"src/models/inits.py","file_url":"https://github.com/skx300/DyHATR/blob/HEAD/src/models/inits.py","link_basis":"harvester_set","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":"b190ef9c60b2629a"}},{"code_sha256_prefix":"1199b67fba3dc5e6","entry":"batch_normalization_layer","repo":"skx300/DyHATR","repo_kind":"official","path":"src/models/tf_utils.py","file_url":"https://github.com/skx300/DyHATR/blob/HEAD/src/models/tf_utils.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":"1199b67fba3dc5e6"}},{"code_sha256_prefix":"3a842f5654d7a218","entry":"evaluate","repo":"skx300/DyHATR","repo_kind":"official","path":"src/models/tf_utils.py","file_url":"https://github.com/skx300/DyHATR/blob/HEAD/src/models/tf_utils.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":"3a842f5654d7a218"}},{"code_sha256_prefix":"0c8466dd49d9a49a","entry":"get_normalized_inner_product_score","repo":"skx300/DyHATR","repo_kind":"official","path":"src/evals/validation.py","file_url":"https://github.com/skx300/DyHATR/blob/HEAD/src/evals/validation.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":"0c8466dd49d9a49a"}},{"code_sha256_prefix":"0bf77162d1b47a38","entry":"get_sigmoid_score","repo":"skx300/DyHATR","repo_kind":"official","path":"src/evals/validation.py","file_url":"https://github.com/skx300/DyHATR/blob/HEAD/src/evals/validation.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":"0bf77162d1b47a38"}},{"code_sha256_prefix":"de4aa826c438014b","entry":"glorot","repo":"skx300/DyHATR","repo_kind":"official","path":"src/models/inits.py","file_url":"https://github.com/skx300/DyHATR/blob/HEAD/src/models/inits.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":"de4aa826c438014b"}},{"code_sha256_prefix":"e790950168ba3c34","entry":"load_feat","repo":"skx300/DyHATR","repo_kind":"official","path":"src/utils/data_helper.py","file_url":"https://github.com/skx300/DyHATR/blob/HEAD/src/utils/data_helper.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":"e790950168ba3c34"}},{"code_sha256_prefix":"534b65288641dbdd","entry":"load_graph","repo":"skx300/DyHATR","repo_kind":"official","path":"src/utils/data_helper.py","file_url":"https://github.com/skx300/DyHATR/blob/HEAD/src/utils/data_helper.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":"534b65288641dbdd"}},{"code_sha256_prefix":"a159ebb4535560a5","entry":"run_random_walks","repo":"skx300/DyHATR","repo_kind":"official","path":"src/utils/data_helper.py","file_url":"https://github.com/skx300/DyHATR/blob/HEAD/src/utils/data_helper.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":"a159ebb4535560a5"}},{"code_sha256_prefix":"ff0598c61c39c6c2","entry":"save_val_embeddings","repo":"skx300/DyHATR","repo_kind":"official","path":"src/models/tf_utils.py","file_url":"https://github.com/skx300/DyHATR/blob/HEAD/src/models/tf_utils.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":"ff0598c61c39c6c2"}},{"code_sha256_prefix":"b0d1b78daecde7e9","entry":"uniform","repo":"skx300/DyHATR","repo_kind":"official","path":"src/models/inits.py","file_url":"https://github.com/skx300/DyHATR/blob/HEAD/src/models/inits.py","link_basis":"harvester_set","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":"b0d1b78daecde7e9"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}