Skip to main content
QUICK REVIEW

[Paper Review] Efficient and Scalable Graph Pattern Mining on GPUs

Xuhao Chen, Arvind Arvind|arXiv (Cornell University)|Dec 17, 2021
Data Mining Algorithms and ApplicationsComputer Science9 citations
TL;DR

G 2 Miner is a novel, multi-GPU graph pattern mining framework that achieves high efficiency and scalability by combining pattern-aware, input-aware, and architecture-aware optimizations. It accelerates GPM workloads up to 7.2× faster than state-of-the-art single-GPU systems and delivers 48.3× speedup over CPU-based systems on a V100 GPU, while enabling linear scaling across 8 GPUs and supporting large-scale graphs and patterns beyond prior GPU systems.

ABSTRACT

Graph Pattern Mining (GPM) extracts higher-order information in a large graph by searching for small patterns of interest. GPM applications are computationally expensive, and thus attractive for GPU acceleration. Unfortunately, due to the complexity of GPM algorithms and parallel hardware, hand optimizing GPM applications suffers programming complexity, while existing GPM frameworks sacrifice efficiency for programmability. Moreover, little work has been done on GPU to scale GPM computation to large problem sizes. We describe G2Miner, the first Graph Pattern Mining (GPM) framework that runs on multiple GPUs. G2Miner uses pattern-aware, input-aware and architecture-aware search strategies to achieve high efficiency on GPUs. To simplify programming, it provides a code generator that automatically generates pattern-aware CUDA code. G2Miner flexibly supports both breadth-first search (BFS) and depth-first search (DFS) to maximize memory utilization and generate sufficient parallelism for GPUs. For the scalability of G2Miner, we use a customized scheduling policy to balance work among multiple GPUs. Experiments on a V100 GPU show that G2Miner achieves average speedups of 5.4x and 7.2x over two state-of-the-art single-GPU systems, Pangolin and PBE, respectively. In the multi-GPU setting, G2Miner achieves linear speedups from 1 to 8 GPUs, for various patterns and data graphs. We also show that G2Miner on a V100 GPU is 48.3x and 15.2x faster than the state-of-the-art CPU-based system, Peregrine and GraphZero, on a 56-core CPU machine.

Motivation & Objective

  • Address the lack of efficient, scalable, and programmable GPU-based graph pattern mining (GPM) frameworks that jointly optimize for pattern, input, and hardware characteristics.
  • Overcome the limitations of existing GPU GPM systems, which either sacrifice efficiency for programmability or fail to scale to large graphs and patterns due to memory and load imbalance issues.
  • Enable high-performance GPM on GPUs by designing a holistic optimization strategy that integrates pattern-aware pruning, input-aware memory estimation, and GPU-architecture-aware parallelism.
  • Provide a user-friendly programming model via an automatic CUDA code generator to hide GPU programming complexity, making high-performance GPM accessible to non-expert users.
  • Achieve linear scalability across multiple GPUs through a customized workload scheduling policy, enabling processing of large-scale graphs and complex patterns previously infeasible on GPUs.

Proposed method

  • Design a pattern-aware search strategy that dynamically selects between BFS and DFS based on the pattern structure to balance memory usage and parallelism.
  • Implement a code generator that automatically produces optimized, pattern-aware CUDA kernels, abstracting low-level GPU programming and enabling high productivity.
  • Introduce a two-level parallelism model where each warp executes a synchronized DFS walk, minimizing thread divergence and improving warp execution efficiency.
  • Employ SIMD-aware GPU primitives and memory-optimized data structures to reduce memory footprint and improve memory bandwidth utilization.
  • Apply input-aware optimizations such as degree-based memory estimation and label distribution analysis to predict worst-case memory usage and avoid dynamic allocations.
  • Design a custom multi-GPU task scheduler that balances workloads across GPUs by analyzing graph and pattern characteristics, enabling linear speedup from 1 to 8 GPUs.

Experimental results

Research questions

  • RQ1Can a GPU-based GPM framework achieve both high performance and programmability by jointly optimizing for pattern structure, input graph characteristics, and GPU architecture?
  • RQ2How can DFS-based GPM algorithms be efficiently mapped to GPUs to avoid thread divergence and memory bottlenecks while preserving pruning opportunities?
  • RQ3To what extent can a GPU-based GPM system scale across multiple GPUs, and what scheduling policies are required to maintain load balance and linear speedup?
  • RQ4What is the performance gain of combining pattern-aware pruning, input-aware memory estimation, and architecture-aware optimizations in a unified framework compared to existing systems?
  • RQ5Can a GPU-based system outperform even the most optimized CPU-based GPM systems on large-scale graphs and complex patterns, and by how much?

Key findings

  • G 2 Miner achieves 5.4× and 7.2× speedup over the state-of-the-art single-GPU systems Pangolin and PBE, respectively, on a V100 GPU.
  • On a 56-core CPU machine, G 2 Miner on a single V100 GPU is 48.3× faster than Peregrine and 15.2× faster than GraphZero, demonstrating a significant performance advantage of GPU acceleration.
  • G 2 Miner supports 8-clique pattern mining on billion-edge graphs like Friendster, whereas Pangolin fails due to out-of-memory errors, highlighting its scalability to large inputs.
  • The framework achieves linear speedup from 1 to 8 GPUs across various patterns and data graphs, indicating effective workload distribution and load balancing.
  • Warp execution efficiency in G 2 Miner exceeds 80%, significantly higher than Pangolin’s ~40%, due to optimized warp-centric set operations and reduced thread divergence.
  • Counting-only pruning alone improves performance by 6.2× on average in G 2 Miner, and even with this optimization enabled, G 2 Miner remains 41.1× faster than Peregrine, underscoring its architectural superiority.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.