{"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/efficient-graph-similarity-computation-with","title":"Efficient Graph Similarity Computation with Alignment Regularization","arxiv_id":"2406.14929","date":"2024-06-21","proceeding":null,"authors":["Wei Zhuo","Guang Tan"],"abstract":"We consider the graph similarity computation (GSC) task based on graph edit distance (GED) estimation. State-of-the-art methods treat GSC as a learning-based prediction task using Graph Neural Networks (GNNs). To capture fine-grained interactions between pair-wise graphs, these methods mostly contain a node-level matching module in the end-to-end learning pipeline, which causes high computational costs in both the training and inference stages. We show that the expensive node-to-node matching module is not necessary for GSC, and high-quality learning can be attained with a simple yet powerful regularization technique, which we call the Alignment Regularization (AReg). In the training stage, the AReg term imposes a node-graph correspondence constraint on the GNN encoder. In the inference stage, the graph-level representations learned by the GNN encoder are directly used to compute the similarity score without using AReg again to speed up inference. We further propose a multi-scale GED discriminator to enhance the expressive ability of the learned representations. Extensive experiments on real-world datasets demonstrate the effectiveness, efficiency and transferability of our approach.","url_abs":"https://arxiv.org/abs/2406.14929v1","url_pdf":"https://arxiv.org/pdf/2406.14929v1.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":"efficient-graph-similarity-computation-with","repo_url":"https://github.com/jhuow/eric","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"graph-similarity","task_name":"Graph Similarity"}],"methods":[{"method_slug":"speed","method_name":"SPEED"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.14929","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.14929"}},"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":"deterministic:regex_extraction","url":"https://github.com/JhuoW/ERIC","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jhuow/eric","reach":{"status":"ok"}}],"summary":{"ran":11,"ran_fixture":1,"unverified":4},"by_repo_kind":{"official":{"samples":16,"ran":12,"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":16,"samples":[{"code_sha256_prefix":"2b3ca014811aa550","entry":"FF","repo":"jhuow/eric","repo_kind":"official","path":"model/GSC.py","file_url":"https://github.com/jhuow/eric/blob/HEAD/model/GSC.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":"2b3ca014811aa550"}},{"code_sha256_prefix":"9b47dc2703adb259","entry":"MLPLayers","repo":"jhuow/eric","repo_kind":"official","path":"model/GSC.py","file_url":"https://github.com/jhuow/eric/blob/HEAD/model/GSC.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":"9b47dc2703adb259"}},{"code_sha256_prefix":"63091473be7df98b","entry":"TensorNetworkModule","repo":"jhuow/eric","repo_kind":"official","path":"model/GSC.py","file_url":"https://github.com/jhuow/eric/blob/HEAD/model/GSC.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":"63091473be7df98b"}},{"code_sha256_prefix":"d27e95dc93971430","entry":"gen_pairs","repo":"JhuoW/ERIC","repo_kind":"official","path":"DataHelper/data_utils.py","file_url":"https://github.com/JhuoW/ERIC/blob/HEAD/DataHelper/data_utils.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":"d27e95dc93971430"}},{"code_sha256_prefix":"677840a48213de47","entry":"get_positive_expectation","repo":"jhuow/eric","repo_kind":"official","path":"model/GSC.py","file_url":"https://github.com/jhuow/eric/blob/HEAD/model/GSC.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"677840a48213de47"}},{"code_sha256_prefix":"565c2a174cca323f","entry":"get_positive_expectation","repo":"JhuoW/ERIC","repo_kind":"official","path":"utils/gan_losses.py","file_url":"https://github.com/JhuoW/ERIC/blob/HEAD/utils/gan_losses.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":"565c2a174cca323f"}},{"code_sha256_prefix":"5260f26ac027fe21","entry":"get_pred_result","repo":"JhuoW/ERIC","repo_kind":"official","path":"exp/exp.py","file_url":"https://github.com/JhuoW/ERIC/blob/HEAD/exp/exp.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":"5260f26ac027fe21"}},{"code_sha256_prefix":"c65d2cd8f05a8c39","entry":"get_true_result","repo":"JhuoW/ERIC","repo_kind":"official","path":"exp/exp.py","file_url":"https://github.com/JhuoW/ERIC/blob/HEAD/exp/exp.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":"c65d2cd8f05a8c39"}},{"code_sha256_prefix":"dc317f1dcd7db3e3","entry":"iterate_get_graphs","repo":"JhuoW/ERIC","repo_kind":"official","path":"DataHelper/simgnn_utils.py","file_url":"https://github.com/JhuoW/ERIC/blob/HEAD/DataHelper/simgnn_utils.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":"dc317f1dcd7db3e3"}},{"code_sha256_prefix":"9a35c06670c35daa","entry":"normalized_exp_kernel_ged","repo":"JhuoW/ERIC","repo_kind":"official","path":"DataHelper/simgnn_utils.py","file_url":"https://github.com/JhuoW/ERIC/blob/HEAD/DataHelper/simgnn_utils.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":"9a35c06670c35daa"}},{"code_sha256_prefix":"5f1abfd2b5c44a6a","entry":"sorted_nicely","repo":"JhuoW/ERIC","repo_kind":"official","path":"DataHelper/simgnn_utils.py","file_url":"https://github.com/JhuoW/ERIC/blob/HEAD/DataHelper/simgnn_utils.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":"5f1abfd2b5c44a6a"}},{"code_sha256_prefix":"a2dd27adcf74cf43","entry":"to_directed","repo":"JhuoW/ERIC","repo_kind":"official","path":"DataHelper/data_utils.py","file_url":"https://github.com/JhuoW/ERIC/blob/HEAD/DataHelper/data_utils.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":"a2dd27adcf74cf43"}},{"code_sha256_prefix":"a8eb12ddd98b0279","entry":"GCL","repo":"jhuow/eric","repo_kind":"official","path":"model/GSC.py","file_url":"https://github.com/jhuow/eric/blob/HEAD/model/GSC.py","link_basis":"first_harvest_node","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":"a8eb12ddd98b0279"}},{"code_sha256_prefix":"5a699d84c35acfc9","entry":"GSC","repo":"jhuow/eric","repo_kind":"official","path":"model/GSC.py","file_url":"https://github.com/jhuow/eric/blob/HEAD/model/GSC.py","link_basis":"first_harvest_node","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":"5a699d84c35acfc9"}},{"code_sha256_prefix":"289900c751839228","entry":"gen_pair","repo":"JhuoW/ERIC","repo_kind":"official","path":"DataHelper/data_utils.py","file_url":"https://github.com/JhuoW/ERIC/blob/HEAD/DataHelper/data_utils.py","link_basis":"first_harvest_node","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":"289900c751839228"}},{"code_sha256_prefix":"31f0f7b2c907786e","entry":"raise_measure_error","repo":"jhuow/eric","repo_kind":"official","path":"model/GSC.py","file_url":"https://github.com/jhuow/eric/blob/HEAD/model/GSC.py","link_basis":"first_harvest_node","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":"31f0f7b2c907786e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}