Computing Graph Edit Distance via Neural Graph Matching
Chengzhi Piao, Tingyang Xu, Xiangguo Sun, Yu Rong, Kangfei Zhao, Hong Cheng
Abstract
Graph edit distance (GED) computation is a fundamental NP-hard problem in graph theory. Given a graph pair ( G 1 , G 2 ), GED is defined as the minimum number of primitive operations converting G 1 to G 2 . Early studies focus on search-based inexact algorithms such as A*-beam search, and greedy algorithms using bipartite matching due to its NP-hardness. They can obtain a sub-optimal solution by constructing an edit path (the sequence of operations that converts G 1 to G 2 ). Recent studies convert the GED between a given graph pair ( G 1 , G 2 ) into a similarity score in the range (0, 1) by a well designed function. Then machine learning models (mostly based on graph neural networks) are applied to predict the similarity score. They achieve a much higher numerical precision than the sub-optimal solutions found by classical algorithms. However, a major limitation is that these machine learning models cannot generate an edit path. They treat the GED computation as a pure regression task to bypass its intrinsic complexity, but ignore the essential task of converting G 1 to G 2 . This severely limits the interpretability and usability of the solution.
In this paper, we propose a novel deep learning framework that solves the GED problem in a two-step manner: 1) The proposed graph neural network GEDGNN is in charge of predicting the GED value and a matching matrix; and 2) A post-processing algorithm based on k -best matching is used to derive k possible node matchings from the matching matrix generated by GEDGNN. The best matching will finally lead to a high-quality edit path. Extensive experiments are conducted on three real graph data sets and synthetic power-law graphs to demonstrate the effectiveness of our framework. Compared to the best result of existing GNN-based models, the mean absolute error (MAE) on GED value prediction decreases by 4.9% 74.3%. Compared to the state-of-the-art searching algorithm Noah, the MAE on GED value based on edit path reduces by 53.6% 88.1%.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
17 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Computing Approximate Graph Edit Distance via Optimal Transport cites A Learned Sketch for Subgraph Counting
- Towards Scalable and Deep Graph Neural Networks via Noise Masking cites DropEdge: Towards Deep Graph Convolutional Networks on Node Classification
- Self-Supervised Graph Transformer on Large-Scale Molecular Data cites DropEdge: Towards Deep Graph Convolutional Networks on Node Classification
Cited by top-tier papers17
- The quest for the GRAph Level autoEncoder (GRALE)Paul Krzakala, Gabriel Melo, Charlotte Laclau, Florence d'Alché-Buc et al.NeurIPS 2025 · 9 citations
- Towards Scalable and Deep Graph Neural Networks via Noise MaskingYuxuan Liang, Wentao Zhang, Zeang Sheng, Ling Yang et al.AAAI 2025 · 6 citations
- Enabling Window-Based Monotonic Graph Analytics with Reusable Transitional Results for Pattern-Consistent QueriesZheng Chen, Feng Zhang, Yang Chen, Xiaokun Fang et al.VLDB 2024 · 6 citations
- Computing Approximate Graph Edit Distance via Optimal TransportQihao Cheng, Da Yan, Tianhao Wu, Zhongyi Huang et al.SIGMOD 2025 · 5 citations
- Unsupervised Learning for Optimal Transport plan prediction between unbalanced graphsSonia Mazelet, Rémi Flamary, Bertrand ThirionNeurIPS 2025 · 5 citations
Builds on10
- DropEdge: Towards Deep Graph Convolutional Networks on Node ClassificationYu Rong, Wenbing Huang, Tingyang Xu, Junzhou HuangICLR 2020 · 1,599 citations
- Self-Supervised Graph Transformer on Large-Scale Molecular DataYu Rong, Yatao Bian, Tingyang Xu, Weiyang Xie et al.NeurIPS 2020 · 1,113 citations
- Learning-Based Efficient Graph Similarity Computation via Multi-Scale Convolutional Set MatchingYunsheng Bai, Hao Ding, Ken Gu, Yizhou Sun et al.AAAI 2020 · 130 citations
- Entity Resolution with Hierarchical Graph Attention NetworksDezhong Yao, Yuhong Gu, Gao Cong, Hai Jin et al.SIGMOD 2022 · 56 citations
- A Learned Sketch for Subgraph CountingKangfei Zhao, Jeffrey Xu Yu, Hao Zhang, Qiyan Li et al.SIGMOD 2021 · 43 citations
Related papers
- Noah: Neural-optimized A* Search Algorithm for Graph Edit Distance ComputationLei Yang, Lei ZouICDE 2021 · 20 citations
- Graph Edit Distance Estimation: A New Heuristic and A Holistic Evaluation of Learning-based MethodsMouyi Xu, Lijun ChangSIGMOD 2025 · 1 citation
- Towards Generative Graph Matching for Graph Edit Distance ComputationWei Huang, Hanchen Wang, Dong Wen, Wenjie Zhang et al.ICML 2026
- Gelato: Graph Edit Distance via Autoregressive Neural Combinatorial OptimizationPaolo Pellizzoni, Till Hendrik Schulz, Karsten M. BorgwardtICLR 2026
- TaGSim: Type-aware Graph Similarity Learning and ComputationJiyang Bai, Peixiang ZhaoVLDB 2022 · 29 citations
