{"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/higen-hierarchical-graph-generative-networks","title":"HiGen: Hierarchical Graph Generative Networks","arxiv_id":"2305.19337","date":"2023-05-30","proceeding":null,"authors":["Mahdi Karami"],"abstract":"Most real-world graphs exhibit a hierarchical structure, which is often overlooked by existing graph generation methods. To address this limitation, we propose a novel graph generative network that captures the hierarchical nature of graphs and successively generates the graph sub-structures in a coarse-to-fine fashion. At each level of hierarchy, this model generates communities in parallel, followed by the prediction of cross-edges between communities using separate neural networks. This modular approach enables scalable graph generation for large and complex graphs. Moreover, we model the output distribution of edges in the hierarchical graph with a multinomial distribution and derive a recursive factorization for this distribution. This enables us to generate community graphs with integer-valued edge weights in an autoregressive manner. Empirical studies demonstrate the effectiveness and scalability of our proposed generative model, achieving state-of-the-art performance in terms of graph quality across various benchmark datasets. The code is available at https://github.com/Karami-m/HiGen_main.","url_abs":"https://arxiv.org/abs/2305.19337v2","url_pdf":"https://arxiv.org/pdf/2305.19337v2.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":"higen-hierarchical-graph-generative-networks","repo_url":"https://github.com/karami-m/higen_main","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"graph-generation","task_name":"Graph Generation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2305.19337","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.19337"}},"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/karami-m/higen_main","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_honours":1,"unverified":13},"by_repo_kind":{"official":{"samples":14,"ran":1,"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":"039fc6561a9516bc","entry":"l2","repo":"karami-m/higen_main","repo_kind":"official","path":"utils/dist_helper.py","file_url":"https://github.com/karami-m/higen_main/blob/HEAD/utils/dist_helper.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"039fc6561a9516bc"}},{"code_sha256_prefix":"8f0e33ef95af3a70","entry":"bipartite_subgraph","repo":"karami-m/higen_main","repo_kind":"official","path":"utils/graph_helper.py","file_url":"https://github.com/karami-m/higen_main/blob/HEAD/utils/graph_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":"8f0e33ef95af3a70"}},{"code_sha256_prefix":"f5d7e99da0c1815c","entry":"clean_graphs","repo":"karami-m/higen_main","repo_kind":"official","path":"utils/eval_helper.py","file_url":"https://github.com/karami-m/higen_main/blob/HEAD/utils/eval_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":"f5d7e99da0c1815c"}},{"code_sha256_prefix":"2830d89cd6960c9d","entry":"degree_worker","repo":"karami-m/higen_main","repo_kind":"official","path":"utils/eval_helper.py","file_url":"https://github.com/karami-m/higen_main/blob/HEAD/utils/eval_helper.py","link_basis":"plan_row","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":"2830d89cd6960c9d"}},{"code_sha256_prefix":"a39feeeaa3cceac3","entry":"find_nearest_idx","repo":"karami-m/higen_main","repo_kind":"official","path":"utils/eval_helper.py","file_url":"https://github.com/karami-m/higen_main/blob/HEAD/utils/eval_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":"a39feeeaa3cceac3"}},{"code_sha256_prefix":"35bbe71eb9169226","entry":"get_augmented_graph","repo":"karami-m/higen_main","repo_kind":"official","path":"utils/higen_data.py","file_url":"https://github.com/karami-m/higen_main/blob/HEAD/utils/higen_data.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":"35bbe71eb9169226"}},{"code_sha256_prefix":"49ab5476297c74bc","entry":"get_config","repo":"karami-m/higen_main","repo_kind":"official","path":"utils/arg_helper.py","file_url":"https://github.com/karami-m/higen_main/blob/HEAD/utils/arg_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":"49ab5476297c74bc"}},{"code_sha256_prefix":"e0384a1df050b9d9","entry":"get_nll_binomial","repo":"karami-m/higen_main","repo_kind":"official","path":"utils/loss.py","file_url":"https://github.com/karami-m/higen_main/blob/HEAD/utils/loss.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":"e0384a1df050b9d9"}},{"code_sha256_prefix":"2062967daf8ce8e4","entry":"get_nll_multinomial","repo":"karami-m/higen_main","repo_kind":"official","path":"utils/loss.py","file_url":"https://github.com/karami-m/higen_main/blob/HEAD/utils/loss.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":"2062967daf8ce8e4"}},{"code_sha256_prefix":"9123e2f7b1ebd40b","entry":"index_to_mask","repo":"karami-m/higen_main","repo_kind":"official","path":"utils/graph_helper.py","file_url":"https://github.com/karami-m/higen_main/blob/HEAD/utils/graph_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":"9123e2f7b1ebd40b"}},{"code_sha256_prefix":"fce0c51949e558b0","entry":"multinomial_logcoef","repo":"karami-m/higen_main","repo_kind":"official","path":"utils/loss.py","file_url":"https://github.com/karami-m/higen_main/blob/HEAD/utils/loss.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":"fce0c51949e558b0"}},{"code_sha256_prefix":"1409387dce8f1173","entry":"parse_arguments","repo":"karami-m/higen_main","repo_kind":"official","path":"utils/arg_helper.py","file_url":"https://github.com/karami-m/higen_main/blob/HEAD/utils/arg_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":"1409387dce8f1173"}},{"code_sha256_prefix":"197e6abd0f7bc179","entry":"tril_and_pad","repo":"karami-m/higen_main","repo_kind":"official","path":"utils/graph_helper.py","file_url":"https://github.com/karami-m/higen_main/blob/HEAD/utils/graph_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":"197e6abd0f7bc179"}},{"code_sha256_prefix":"280ee33168ce8688","entry":"update_config_with_defaults","repo":"karami-m/higen_main","repo_kind":"official","path":"utils/arg_helper.py","file_url":"https://github.com/karami-m/higen_main/blob/HEAD/utils/arg_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":"280ee33168ce8688"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}