xNeuSM: Explainable Neural Subgraph Matching with Graph Learnable Multi-hop Attention Networks

Duc Q. Nguyen, Thanh Toan Nguyen, Tho quan
12/4/2023
cs.LGcs.AI

Official code: martinakaduc/xNeuSM (15 stars, MIT, last commit 2024-09-26).

Abstract

Subgraph matching is a challenging problem with a wide range of applications in database systems, biochemistry, and cognitive science. It involves determining whether a given query graph is present within a larger target graph. Traditional graph-matching algorithms provide precise results but face challenges in large graph instances due to the NP-complete problem, limiting their practical applicability. In contrast, recent neural network-based approximations offer more scalable solutions, but often lack interpretable node correspondences. To address these limitations, this article presents xNeuSM: Explainable Neural Subgraph Matching which introduces Graph Learnable Multi-hop Attention Networks (GLeMA) that adaptively learns the parameters governing the attention factor decay for each node across hops rather than relying on fixed hyperparameters. We provide a theoretical analysis establishing error bounds for GLeMA's approximation of multi-hop attention as a function of the number of hops. Additionally, we prove that learning distinct attention decay factors for each node leads to a correct approximation of multi-hop attention. Empirical evaluation on real-world datasets shows that xNeuSM achieves substantial improvements in prediction accuracy of up to 34% compared to approximate baselines and, notably, at least a seven-fold faster query time than exact algorithms. The source code of our implementation is available at https://github.com/martinakaduc/xNeuSM.

View on arXivView PDF

Code Implementations(1)

MIT

Explainable Neural Subgraph Matching with Graph Learnable Multi-hop Attention Networks

150Shell, PythonOct 26, 20232 years agoMIT
attentionattention-mechanismgraphgraphneuralnetworkisomophism+1 more

Similar Papers

Cite this paper

@article{nguyen2023xneusm,
  title  = {xNeuSM: Explainable Neural Subgraph Matching with Graph Learnable Multi-hop Attention Networks},
  author = {Duc Q. Nguyen and Thanh Toan Nguyen and Tho quan},
  year   = {2023},
  eprint = {2312.01612},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.01612v1}
}

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/2312.01612.svg)](https://codeofpaper.com/paper/2312.01612)

Discussion