{"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/balanced-multi-relational-graph-clustering","title":"Balanced Multi-Relational Graph Clustering","arxiv_id":"2407.16863","date":"2024-07-23","proceeding":null,"authors":["Zhixiang Shen","Haolan He","Zhao Kang"],"abstract":"Multi-relational graph clustering has demonstrated remarkable success in uncovering underlying patterns in complex networks. Representative methods manage to align different views motivated by advances in contrastive learning. Our empirical study finds the pervasive presence of imbalance in real-world graphs, which is in principle contradictory to the motivation of alignment. In this paper, we first propose a novel metric, the Aggregation Class Distance, to empirically quantify structural disparities among different graphs. To address the challenge of view imbalance, we propose Balanced Multi-Relational Graph Clustering (BMGC), comprising unsupervised dominant view mining and dual signals guided representation learning. It dynamically mines the dominant view throughout the training process, synergistically improving clustering performance with representation learning. Theoretical analysis ensures the effectiveness of dominant view mining. Extensive experiments and in-depth analysis on real-world and synthetic datasets showcase that BMGC achieves state-of-the-art performance, underscoring its superiority in addressing the view imbalance inherent in multi-relational graphs. The source code and datasets are available at https://github.com/zxlearningdeep/BMGC.","url_abs":"https://arxiv.org/abs/2407.16863v1","url_pdf":"https://arxiv.org/pdf/2407.16863v1.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":"balanced-multi-relational-graph-clustering","repo_url":"https://github.com/zxlearningdeep/bmgc","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"clustering","task_name":"Clustering"},{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"graph-clustering","task_name":"Graph Clustering"},{"task_slug":"representation-learning","task_name":"Representation Learning"}],"methods":[{"method_slug":"align","method_name":"ALIGN"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2407.16863","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.16863"}},"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/zxlearningdeep/bmgc","reach":{"status":"ok"}}],"summary":{"ran":7,"ran_honours":2,"ran_draft_wrong":5,"unverified":1},"by_repo_kind":{"official":{"samples":15,"ran":14,"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":15,"samples":[{"code_sha256_prefix":"68336d1f001f0b28","entry":"ContextualSBM","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/cSBM_dataset.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/cSBM_dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"68336d1f001f0b28"}},{"code_sha256_prefix":"1b3f8d0522a46d1e","entry":"cluster_acc","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/utils/metrics.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/utils/metrics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1b3f8d0522a46d1e"}},{"code_sha256_prefix":"6c897974e5ceb4aa","entry":"encode_onehot","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/utils/load_data.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/utils/load_data.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6c897974e5ceb4aa"}},{"code_sha256_prefix":"e28ee89385e5f8a3","entry":"format_time","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/large.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/large.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e28ee89385e5f8a3"}},{"code_sha256_prefix":"da80a2b9fd449bd2","entry":"index_to_mask","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/cSBM_dataset.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/cSBM_dataset.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"da80a2b9fd449bd2"}},{"code_sha256_prefix":"ff672d0bb314d651","entry":"make_cost_matrix","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/utils/munkres.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/utils/munkres.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ff672d0bb314d651"}},{"code_sha256_prefix":"21b0199200507ff0","entry":"normalize_adj","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/utils/load_data.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/utils/load_data.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"21b0199200507ff0"}},{"code_sha256_prefix":"c5ffb6ba7ad635ec","entry":"normalize_adj","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/module/preprocess.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/module/preprocess.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c5ffb6ba7ad635ec"}},{"code_sha256_prefix":"2c7fd193a4fb9c0f","entry":"preprocess_features","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/utils/load_data.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/utils/load_data.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2c7fd193a4fb9c0f"}},{"code_sha256_prefix":"6188cda4ac7f17da","entry":"sce_loss","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/module/loss_fun.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/module/loss_fun.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6188cda4ac7f17da"}},{"code_sha256_prefix":"4765f3b8e5dce9f3","entry":"soft_assignment","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/module/loss_fun.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/module/loss_fun.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4765f3b8e5dce9f3"}},{"code_sha256_prefix":"c97b99c4e8201a97","entry":"sparse_mx_to_torch_sparse_tensor","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/module/preprocess.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/module/preprocess.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c97b99c4e8201a97"}},{"code_sha256_prefix":"3965c8f8e2d0023e","entry":"sparse_to_tuple","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/module/preprocess.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/module/preprocess.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3965c8f8e2d0023e"}},{"code_sha256_prefix":"c8b8a6955c6ca85d","entry":"target_distribution","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/module/loss_fun.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/module/loss_fun.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c8b8a6955c6ca85d"}},{"code_sha256_prefix":"b2ec532bac93b091","entry":"random_planetoid_splits","repo":"zxlearningdeep/bmgc","repo_kind":"official","path":"BMGC/cSBM_dataset.py","file_url":"https://github.com/zxlearningdeep/bmgc/blob/HEAD/BMGC/cSBM_dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b2ec532bac93b091"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}