GSI: GPU-friendly Subgraph Isomorphism

Li Zeng, Lei Zou, M. Tamer Özsu, Lin Hu, Fan Zhang
6/8/2019
cs.DB

Official code: pkumod/GSI (37 stars, Cuda, GPL-3.0, last commit 2025-07-30).

Abstract

Subgraph isomorphism is a well-known NP-hard problem that is widely used in many applications, such as social network analysis and query over the knowledge graph. Due to the inherent hardness, its performance is often a bottleneck in various real-world applications.

Show full abstract

Therefore, we address this by designing an efficient subgraph isomorphism algorithm leveraging features of GPU architecture, such as massive parallelism and memory hierarchy. Existing GPU-based solutions adopt a two-step output scheme, performing the same join process twice in order to write intermediate results concurrently. They also lack GPU architecture-aware optimizations that allow scaling to large graphs. In this paper, we propose a GPU-friendly subgraph isomorphism algorithm, GSI. Different from existing edge join-based GPU solutions, we propose a Prealloc-Combine strategy based on the vertex-oriented framework, which avoids joining-twice in existing solutions. Also, a GPU-friendly data structure (called PCSR) is proposed to represent an edge-labeled graph. Extensive experiments on both synthetic and real graphs show that GSI outperforms the state-of-the-art algorithms by up to several orders of magnitude and has good scalability with graph size scaling to hundreds of millions of edges.

View on arXivView PDF

Code Implementations(1)

pkumod/GSIOfficial100%
GPL-3.0

GPU-friendly Subgraph Isomorphism, published in ICDE 2020

3717Cuda, C++Apr 7, 20201 years agoGPL-3.0
gpuisomorphismsubgraph

Similar Papers

Cite this paper

@article{zeng2019gsi,
  title  = {GSI: GPU-friendly Subgraph Isomorphism},
  author = {Li Zeng and Lei Zou and M. Tamer Özsu and Lin Hu and Fan Zhang},
  year   = {2019},
  eprint = {1906.03420},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.03420}
}

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

Discussion