Neural Subgraph Isomorphism Counting

Xin Liu, Haojie Pan, Mutian He, Yangqiu Song, Xin Jiang +1 more
12/25/2019
cs.LGstat.ML

Official code: HKUST-KnowComp/NeuralSubgraphCounting (54 stars, Python, MIT, last commit 2024-07-25).

Abstract

In this paper, we study a new graph learning problem: learning to count subgraph isomorphisms. Different from other traditional graph learning problems such as node classification and link prediction, subgraph isomorphism counting is NP-complete and requires more global inference to oversee the whole graph.

Show full abstract

To make it scalable for large-scale graphs and patterns, we propose a learning framework which augments different representation learning architectures and iteratively attends pattern and target data graphs to memorize subgraph isomorphisms for the global counting. We develop both small graphs (<= 1,024 subgraph isomorphisms in each) and large graphs (<= 4,096 subgraph isomorphisms in each) sets to evaluate different models. A mutagenic compound dataset, MUTAG, is also used to evaluate neural models and demonstrate the success of transfer learning. While the learning based approach is inexact, we are able to generalize to count large patterns and data graphs in linear time compared to the exponential time of the original NP-complete problem. Experimental results show that learning based subgraph isomorphism counting can speed up the traditional algorithm, VF2, 10-1,000 times with acceptable errors. Domain adaptation based on fine-tuning also shows the usefulness of our approach in real-world applications.

View on arXivView PDF

Code Implementations(1)

MIT

Source Code for KDD 2020 paper "Neural Subgraph Isomorphism Counting"

549PythonJun 14, 20202 years agoMIT

Similar Papers

Cite this paper

@article{liu2019neural,
  title  = {Neural Subgraph Isomorphism Counting},
  author = {Xin Liu and Haojie Pan and Mutian He and Yangqiu Song and Xin Jiang and Lifeng Shang},
  year   = {2019},
  eprint = {1912.11589},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.11589}
}

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

Discussion