{"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/semi-relaxed-gromov-wasserstein-divergence","title":"Semi-relaxed Gromov-Wasserstein divergence with applications on graphs","arxiv_id":"2110.02753","date":"2021-10-06","proceeding":null,"authors":["Cédric Vincent-Cuaz","Rémi Flamary","Marco Corneli","Titouan Vayer","Nicolas Courty"],"abstract":"Comparing structured objects such as graphs is a fundamental operation involved in many learning tasks. To this end, the Gromov-Wasserstein (GW) distance, based on Optimal Transport (OT), has proven to be successful in handling the specific nature of the associated objects. More specifically, through the nodes connectivity relations, GW operates on graphs, seen as probability measures over specific spaces. At the core of OT is the idea of conservation of mass, which imposes a coupling between all the nodes from the two considered graphs. We argue in this paper that this property can be detrimental for tasks such as graph dictionary or partition learning, and we relax it by proposing a new semi-relaxed Gromov-Wasserstein divergence. Aside from immediate computational benefits, we discuss its properties, and show that it can lead to an efficient graph dictionary learning algorithm. We empirically demonstrate its relevance for complex tasks on graphs such as partitioning, clustering and completion.","url_abs":"https://arxiv.org/abs/2110.02753v3","url_pdf":"https://arxiv.org/pdf/2110.02753v3.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":"semi-relaxed-gromov-wasserstein-divergence","repo_url":"https://github.com/cedricvincentcuaz/srgw","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"dictionary-learning","task_name":"Dictionary Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2110.02753","atlas_url":"https://app.syntology.ai/?focus=2110.02753","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.02753"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/cedricvincentcuaz/srgw","reach":null}],"summary":{"ran_draft_wrong":1,"ran_fixture":3,"ran_honours":1,"unverified":4},"by_repo_kind":{"official":{"samples":9,"ran":5,"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":"e6df182559ad6c10","entry":"cg_semirelaxed","repo":"cedricvincentcuaz/srgw","repo_kind":"official","path":"srGW_algorithms/srGW.py","file_url":"https://github.com/cedricvincentcuaz/srgw/blob/HEAD/srGW_algorithms/srGW.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e6df182559ad6c10"}},{"code_sha256_prefix":"5170a3e30c4d6b45","entry":"init_matrix_GW2","repo":"cedricvincentcuaz/srgw","repo_kind":"official","path":"srGW_algorithms/srGW.py","file_url":"https://github.com/cedricvincentcuaz/srgw/blob/HEAD/srGW_algorithms/srGW.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5170a3e30c4d6b45"}},{"code_sha256_prefix":"ef8dbc095d006745","entry":"initializer_semirelaxed_GW","repo":"cedricvincentcuaz/srgw","repo_kind":"official","path":"srGW_algorithms/srGW.py","file_url":"https://github.com/cedricvincentcuaz/srgw/blob/HEAD/srGW_algorithms/srGW.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ef8dbc095d006745"}},{"code_sha256_prefix":"ec813204432044de","entry":"initializer_semirelaxed_GW","repo":"cedricvincentcuaz/srgw","repo_kind":"official","path":"srGW_algorithms/srGW.py","file_url":"https://github.com/cedricvincentcuaz/srgw/blob/HEAD/srGW_algorithms/srGW.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ec813204432044de"}},{"code_sha256_prefix":"cdc456f544752a67","entry":"tensor_product","repo":"cedricvincentcuaz/srgw","repo_kind":"official","path":"srGW_algorithms/srGW.py","file_url":"https://github.com/cedricvincentcuaz/srgw/blob/HEAD/srGW_algorithms/srGW.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cdc456f544752a67"}},{"code_sha256_prefix":"dc3cda7b42d71311","entry":"cg_semirelaxed_gromov_wasserstein","repo":"cedricvincentcuaz/srgw","repo_kind":"official","path":"srGW_algorithms/srGW.py","file_url":"https://github.com/cedricvincentcuaz/srgw/blob/HEAD/srGW_algorithms/srGW.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":"dc3cda7b42d71311"}},{"code_sha256_prefix":"8c1869333e8fb995","entry":"init_matrix_GW2","repo":"cedricvincentcuaz/srgw","repo_kind":"official","path":"srGW_algorithms/srGW.py","file_url":"https://github.com/cedricvincentcuaz/srgw/blob/HEAD/srGW_algorithms/srGW.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8c1869333e8fb995"}},{"code_sha256_prefix":"f89ab097c6f9f001","entry":"init_matrix_asymGW2","repo":"cedricvincentcuaz/srgw","repo_kind":"official","path":"srGW_algorithms/srGW.py","file_url":"https://github.com/cedricvincentcuaz/srgw/blob/HEAD/srGW_algorithms/srGW.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f89ab097c6f9f001"}},{"code_sha256_prefix":"28d45aa4369ed4d2","entry":"init_matrix_asymGW2","repo":"cedricvincentcuaz/srgw","repo_kind":"official","path":"srGW_algorithms/srGW.py","file_url":"https://github.com/cedricvincentcuaz/srgw/blob/HEAD/srGW_algorithms/srGW.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":"28d45aa4369ed4d2"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}