Efficient GPU-Accelerated Local Subgraph Counting
Qiao He, Yiran Li, Man Lung Yiu, Jieming Shi
Abstract
Local subgraph counting computes the exact number of occurrences of a query graph around every vertex in a data graph. By capturing local higher-order structure, it supports extensive applications in network analysis and graph learning. The fastest existing method, SCOPE, accelerates counting through query graph decomposition, but it is designed for single-threaded CPU execution. As a result, it struggles on large graphs and cannot take advantage of modern GPU hardware. A naïve GPU adaptation is also ineffective: as the number of parallel GPU threads grows, the memory footprint of their intermediate results quickly drains the device memory.
We develop a high-performance GPU solution for local subgraph counting that preserves SCOPE's tree-decomposition framework while explicitly resolving the tension between massive GPU parallelism and limited device memory. Our approach compresses the intermediate join-and-aggregate results and proposes an insert-failure restart mechanism that guarantees correctness under bounded memory. We further design a key-mapping strategy that enables lock-free hash tables for higher throughput, eventually integrating these components into a complete GPU execution framework capable of handling arbitrarily complex queries. Experiments show that our GPU-accelerated method achieves up to a 35× speedup over a multi-threaded SCOPE implementation, reducing the processing time for a million-scale graph from days to about 20 minutes and making local subgraph counting practical at large scale.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext a6a09d53-ea5f-41df-aed4-c199b5da135bBuilds on24
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
- In-Memory Subgraph Matching: An In-depth StudyShixuan Sun, Qiong LuoSIGMOD 2020 · 159 citations
- Scalable Deep Generative Modeling for Sparse GraphsHanjun Dai, Azade Nazi, Yujia Li, Bo Dai et al.ICML 2020 · 95 citations
- Learned Cardinality Estimation: A Design Space Exploration and A Comparative EvaluationJi Sun, Jintao Zhang, Zhaoyan Sun, Guoliang Li et al.VLDB 2022 · 90 citations
- Ordered Subgraph Aggregation NetworksChendi Qian, Gaurav Rattan, Floris Geerts, Mathias Niepert et al.NeurIPS 2022 · 81 citations
Related papers
- gSWORD: GPU-accelerated Sampling for Subgraph CountingChang Ye, Yuchen Li, Shixuan Sun, Wentian GuoSIGMOD 2024 · 5 citations
- GPU-Accelerated Subgraph Enumeration on Partitioned GraphsWentian Guo, Yuchen Li, Mo Sha, Bingsheng He et al.SIGMOD 2020 · 71 citations
- Fringe-SGC: Counting Subgraphs with Fringe VerticesCameron Bradley, Ghadeer Ahmed H. Alabandi, Martin BurtscherSC 2025 · 2 citations
- VSGM: View-Based GPU-Accelerated Subgraph Matching on Large GraphsGuanxian Jiang, Qihui Zhou, Tatiana Jin, Boyang Li et al.SC 2022 · 14 citations
- G2-AIMD: A Memory-Efficient Subgraph-Centric Framework for Efficient Subgraph Finding on GPUsLyuheng Yuan, Akhlaque Ahmad, Da Yan, Jiao Han et al.ICDE 2024 · 5 citations
