Papers › Graph Edit Distance with General Costs Using Neural Set Divergence

Graph Edit Distance with General Costs Using Neural Set Divergence

26 Sep 2024arXiv:2409.17687archive 2025-07-28

Eeshaan Jain, Indradyumna Roy, Saswat Meher, Soumen Chakrabarti, Abir De

Graph Edit Distance (GED) measures the (dis-)similarity between two given graphs, in terms of the minimum-cost edit sequence that transforms one graph to the other. However, the exact computation of GED is NP-Hard, which has recently motivated the design of neural methods for GED estimation. However, they do not explicitly account for edit operations with different costs. In response, we propose GRAPHEDX, a neural GED estimator that can work with general costs specified for the four edit operations, viz., edge deletion, edge addition, node deletion and node addition. We first present GED as a quadratic assignment problem (QAP) that incorporates these four costs. Then, we represent each graph as a set of node and edge embeddings and use them to design a family of neural set divergence surrogates. We replace the QAP terms corresponding to each operation with their surrogates. Computing such neural set divergence require aligning nodes and edges of the two graphs. We learn these alignments using a Gumbel-Sinkhorn permutation generator, additionally ensuring that the node and edge alignments are consistent with each other. Moreover, these alignments are cognizant of both the presence and absence of edges between node-pairs. Experiments on several datasets, under a variety of edit cost settings, show that GRAPHEDX consistently outperforms state-of-the-art methods and heuristics in terms of prediction error.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2409.17687")

Code

Syntology Ran 14 of 25 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 7 ran · our draft was wrong; 1 ran · fixture could not drive it; 6 ran with no contract checked.

By repository: official repository: 25 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

structlearning/graphedx officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

25 samples harvested; 14 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

7ran · our draft was wrong
1ran · fixture could not drive it
6ran
11unverified

Licence: 0 of the 25 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from structlearning/graphedx. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

asymm_embed_mat_l1_dist structlearning/graphedx/models/graphedx.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 8ad55980e1c03523 · report
compute_loss structlearning/graphedx/models/graphedx.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 310b4b2e126ed8b6 · report
evaluate structlearning/GraphEdX/src/train_graphedx.py official repository ran MIT (permissive) · 0ab108ac04cb5ade · report
evaluate structlearning/GraphEdX/src/train_graphedx_label.py official repository ran MIT (permissive) · 18a32d300eb754e3 · report
get_default_gmn_config structlearning/GraphEdX/utils/model_utils.py official repository ran MIT (permissive) · b184bb466ed11cbe · report
get_graph_features structlearning/graphedx/models/graphedx.py official repository ran · our draft was wrong MIT (permissive) · 9369db470a2582dd · report
graph_prop_once structlearning/graphedx/models/graphedx.py official repository ran MIT (permissive) · 2a761f476bdc2e9c · report
modify_gmn_main_config structlearning/GraphEdX/utils/model_utils.py official repository ran MIT (permissive) · 0127ae44341328ed · report
modify_gmn_main_config_shallow structlearning/GraphEdX/utils/model_utils.py official repository ran MIT (permissive) · 5eabd9835e8a4d18 · report
pytorch_sample_gumbel structlearning/graphedx/models/graphedx.py official repository ran · our draft was wrong MIT (permissive) · b0cbba82a28e65dd · report
pytorch_sinkhorn_iters structlearning/graphedx/models/graphedx.py official repository ran · fixture could not drive it MIT (permissive) · 0f4c11f88b918a82 · report
split_and_stack structlearning/graphedx/models/graphedx.py official repository ran · our draft was wrong MIT (permissive) · 065225e446072baa · report
split_to_query_and_corpus structlearning/graphedx/models/graphedx.py official repository ran · our draft was wrong MIT (permissive) · 2468f115a7f89d3a · report
unsorted_segment_sum structlearning/graphedx/models/graphedx.py official repository ran · our draft was wrong MIT (permissive) · 65ea513617120aff · report
GRAPHEDX_no_xor structlearning/graphedx/models/graphedx.py official repository unverified MIT (permissive) · b249ba548c0c9be1 · report
GraphEncoder structlearning/graphedx/models/graphedx.py official repository unverified MIT (permissive) · 3f351498dcb392cc · report
GraphPropLayer structlearning/graphedx/models/graphedx.py official repository unverified MIT (permissive) · 303a3b8ce9e8fc66 · report
approximate_hamming_similarity structlearning/GraphEdX/GMN/loss.py official repository unverified MIT (permissive) · 95afc6f0962b5c2a · report
euclidean_distance structlearning/GraphEdX/GMN/loss.py official repository unverified MIT (permissive) · 69e7dcdc10127913 · report
pairwise_cosine_similarity structlearning/GraphEdX/GMN/fast_graphmatchingnetwork.py official repository unverified MIT (permissive) · b0a1692650a31872 · report
pairwise_dot_product_similarity structlearning/GraphEdX/GMN/fast_graphmatchingnetwork.py official repository unverified MIT (permissive) · 9a12e8146ffaef47 · report
pairwise_euclidean_similarity structlearning/GraphEdX/GMN/fast_graphmatchingnetwork.py official repository unverified MIT (permissive) · 95b1b93041fc8ad0 · report
pairwise_loss structlearning/GraphEdX/GMN/loss.py official repository unverified MIT (permissive) · a4f527c188a5f7fd · report
permute_graph_nodes structlearning/GraphEdX/GMN/dataset.py official repository unverified MIT (permissive) · ff70e907d342b902 · report
substitute_random_edges structlearning/GraphEdX/GMN/dataset.py official repository unverified MIT (permissive) · 19a40503f8bc9732 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections