[Paper Review] Fast Gunrock Subgraph Matching (GSM) on GPUs
This paper presents GSM (Gunrock Subgraph Matching), a GPU-optimized subgraph isomorphism algorithm that uses breadth-first search (BFS) to exploit massive parallelism, reducing memory pressure through pruning and compression. It achieves up to 4× speedup over prior GPU state-of-the-art by minimizing intermediate results and enabling scalable matching on large graphs and high-label datasets.
In this paper, we propose a GPU-efficient subgraph isomorphism algorithm using the Gunrock graph analytic framework, GSM (Gunrock Subgraph Matching), to compute graph matching on GPUs. In contrast to previous approaches on the CPU which are based on depth-first traversal, GSM is BFS-based: possible matches are explored simultaneously in a breadth-first strategy. The advantage of using BFS-based traversal is that we can leverage the massively parallel processing capabilities of the GPU. The disadvantage is the generation of more intermediate results. We propose several optimization techniques to cope with the problem. Our implementation follows a filtering-and-verification strategy. While most previous work on GPUs requires one-/two-step joining, we use one-step verification to decide the candidates in current frontier of nodes. Our implementation has a speedup up to 4x over previous GPU state-of-the-art implementation.
Motivation & Objective
- To address the inefficiency of CPU-based depth-first backtracking algorithms on GPUs due to poor parallelism and warp divergence.
- To overcome GPU memory limitations in subgraph matching by minimizing intermediate result generation through smart pruning and compression.
- To enable scalable subgraph matching on large graphs and high-label datasets without preprocessing, unlike graph-indexing methods.
- To design a GPU-friendly algorithm that outperforms existing GPU and CPU subgraph matching solutions in both speed and scalability.
- To demonstrate the effectiveness of k-look-ahead and one-step verification in reducing candidate sets and improving performance.
Proposed method
- GSM employs a BFS-based traversal strategy to enable massive parallelism on GPUs, contrasting with traditional CPU depth-first backtracking.
- It uses a filtering-and-verification pipeline with one-step verification to validate candidate node mappings, reducing redundant computation.
- The algorithm applies k-look-ahead pruning to eliminate unfruitful candidates early, especially effective in low-degree graphs like road_central.
- Memory usage is kept linear to the size of matched subgraphs through compression and pruning techniques, avoiding memory explosion.
- The implementation processes data graphs in CSR format without preprocessing, supporting dynamic queries on large-scale graphs.
- Optimizations include label-based pruning and efficient memory coalescing to reduce latency and improve GPU occupancy.
Experimental results
Research questions
- RQ1Can a BFS-based subgraph matching algorithm outperform depth-first CPU methods on GPUs despite higher intermediate result generation?
- RQ2How can memory pressure in GPU subgraph matching be mitigated to support larger graphs and higher label counts?
- RQ3To what extent does one-step verification and k-look-ahead pruning improve performance and scalability on diverse graph workloads?
- RQ4How does GSM scale with increasing query graph size and number of node/edge labels compared to existing GPU methods?
- RQ5Can GSM achieve better performance than GPU-optimized predecessors like GpSM and GSI on memory-intensive and large-scale subgraph matching workloads?
Key findings
- GSM achieves up to 4× speedup over the previous GPU state-of-the-art implementation on various datasets, including Enron and Gowalla.
- On the road_central graph, k-look-ahead pruning delivers a 1.38× speedup by reducing unfruitful candidates in low-degree graphs.
- GSM successfully processes query graphs up to 13 nodes on Enron and Gowalla, while GSI fails with queries larger than 4 nodes due to memory limits.
- On the Gowalla dataset, GSM’s runtime decreases linearly with label count from 20 to 100, then levels off as parallelization efficiency diminishes.
- On synthetic delaunay graphs, GSM maintains 3× better performance than GSI and scales to 2^20 vertices, while GSI runs out of memory at 2^15.
- GSM demonstrates superior scalability on kron graphs with 6-node query graphs, successfully running where GSI fails entirely due to memory exhaustion.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.