MATA*: Combining Learnable Node Matching with A* Algorithm for Approximate Graph Edit Distance Computation

Junfeng Liu, Min Zhou, Shuai Ma, Lujia Pan
11/4/2023
cs.LG

Official code: jfkey/mata (1 star, last commit 2024-07-01).

Abstract

Graph Edit Distance (GED) is a general and domain-agnostic metric to measure graph similarity, widely used in graph search or retrieving tasks. However, the exact GED computation is known to be NP-complete. For instance, the widely used A* algorithms explore the entire search space to find the optimal solution which inevitably suffers scalability issues. Learning-based methods apply graph representation techniques to learn the GED by formulating a regression task, which can not recover the edit path and lead to inaccurate GED approximation (i.e., the predicted GED is smaller than the exact). To this end, in this work, we present a data-driven hybrid approach MATA* for approximate GED computation based on Graph Neural Networks (GNNs) and A* algorithms, which models from the perspective of learning to match nodes instead of directly regressing GED. Specifically, aware of the structure-dominant operations (i.e.,node and edge insertion/deletion) property in GED computation, a structure-enhanced GNN is firstly designed to jointly learn local and high-order structural information for node embeddings for node matchings. Second, top-k candidate nodes are produced via a differentiable top-k operation to enable the training for node matchings, which is adhering to another property of GED, i.e., multiple optimal node matchings. Third, benefiting from the candidate nodes, MATA* only performs on the promising search directions, reaching the solution efficiently. Finally, extensive experiments show the superiority of MATA* as it significantly outperforms the combinatorial search-based, learning-based and hybrid methods and scales well to large-size graphs.

View on arXivView PDF

Code Implementations(1)

jfkey/mataOfficial
10C++, JavaJun 28, 20242 years ago

Similar Papers

Cite this paper

@article{liu2023mata,
  title  = {MATA*: Combining Learnable Node Matching with A* Algorithm for Approximate Graph Edit Distance Computation},
  author = {Junfeng Liu and Min Zhou and Shuai Ma and Lujia Pan},
  year   = {2023},
  eprint = {2311.02356},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.02356v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.02356.svg)](https://codeofpaper.com/paper/2311.02356)

Discussion