TL;DR
This paper introduces G²Miner, a novel framework for efficient and scalable Graph Pattern Mining (GPM) on GPUs. G²Miner significantly outperforms existing GPU and CPU-based systems by leveraging pattern-aware, input-aware, and architecture-aware optimizations, enabling it to handle larger graphs and patterns with unprecedented speed.
What Problem Does This Paper Address?
Graph Pattern Mining (GPM) is a crucial technique for extracting higher-order information from large graphs, with applications ranging from bioinformatics to social network analysis. However, GPM is computationally intensive, and existing frameworks struggle with efficiency and scalability, especially on modern hardware like GPUs. Current GPU-based GPM systems often sacrifice performance for programmability or are limited to smaller problem sizes due to memory constraints and the challenges of parallelizing irregular GPM algorithms. Furthermore, scaling GPM to multiple GPUs remains a significant hurdle.
Methods
G²Miner tackles these challenges with a multi-pronged approach:
- Pattern-Aware, Input-Aware, and Architecture-Aware Strategies: G²Miner integrates information about the pattern being searched, the characteristics of the input graph, and the underlying GPU hardware to make informed optimization decisions.
- Automated CUDA Code Generation: To simplify programming, G²Miner provides a code generator that automatically produces pattern-specific CUDA kernels. This abstracts away much of the complexity of GPU programming.
- Flexible Search Orders (BFS/DFS): The framework supports both Breadth-First Search (BFS) and Depth-First Search (DFS) to optimize memory utilization and parallelism. While BFS is common on GPUs, G²Miner's DFS implementation is optimized to mitigate common issues like thread divergence and load imbalance.
- Two-Level Parallelism: G²Miner employs a warp-centric parallelism strategy, where tasks are assigned to warps, and set operations within a warp are parallelized. This is combined with edge parallelism for better load balancing on GPUs compared to the vertex parallelism often used on CPUs.
- Customized Multi-GPU Scheduling: A novel scheduling policy is introduced to balance workloads across multiple GPUs, ensuring efficient scaling.
- Advanced Optimizations: The framework incorporates numerous optimizations, including data graph preprocessing, adaptive buffering, counting-only pruning, and local graph search, tailored to GPM's specific needs on GPUs.
Datasets
The paper evaluates G²Miner on several real-world and benchmark datasets, including:
- Vertex-labeled graphs for FSM: Mi, Pa, Yo
- General graphs: Lj (LiveJournal), Or (Orkut), Tw2 (Twitter20), Tw4 (Twitter40), Fr (Friendster), Uk (Uk2007)
These datasets vary in size (from millions to billions of edges) and characteristics, allowing for comprehensive evaluation of G²Miner's performance and scalability.
Key Insights and Ideas
- The Power of Holistic Awareness: The most significant insight is that GPM efficiency on GPUs is dramatically improved by considering the pattern, input data, and hardware architecture simultaneously. Prior systems often focused on only one or two of these aspects.
- DFS is Viable on GPUs with the Right Optimizations: While BFS is traditionally favored on GPUs for GPM due to perceived DFS issues (divergence, imbalance), G²Miner demonstrates that a carefully optimized DFS approach can be more efficient, especially when combined with warp-centric parallelism and advanced memory management.
- Automated Code Generation is Key to Usability: Hiding the complexity of GPU programming through automated code generation is crucial for making GPM accessible to a wider range of users.
- Multi-GPU Scaling Requires Smart Scheduling: Simple even-split scheduling is insufficient for skewed power-law graphs common in GPM. G²Miner's chunked round-robin scheduling is essential for achieving linear scalability.
- GPUs Offer a "Free Lunch" for GPM: The paper strongly suggests that GPUs, with the right framework, provide a substantial performance advantage over CPUs for GPM, even for very large graphs and patterns.
Key Results
- Single-GPU Performance:
- G²Miner is 5.4× faster than Pangolin (state-of-the-art single-GPU GPM) and 7.2× faster than PBE (state-of-the-art GPU subgraph matching solver) on average.
- On a V100 GPU, G²Miner is 48.3× faster than Peregrine (state-of-the-art CPU GPM) and 15.2× faster than GraphZero (state-of-the-art CPU subgraph matching solver) on average.
- Multi-GPU Scalability: G²Miner achieves linear speedups from 1 to 8 GPUs for various patterns and data graphs, outperforming simpler scheduling policies.
- Handling Large Graphs/Patterns: G²Miner can handle significantly larger graphs and patterns than existing systems, often running problems that cause other systems to run out of memory.
- Warp Execution Efficiency: G²Miner achieves significantly higher warp execution efficiency (around 80%) compared to Pangolin (around 40%), indicating better GPU utilization.
Limitations and Future Work
- Limitations:
- The paper acknowledges that some optimizations (e.g., M and N in Table 2 for hybrid order and memory reduction) are user-activated for implicit-pattern problems like FSM, as the system cannot automatically infer the conditions.
- While G²Miner handles large graphs, memory remains a constraint, and for extremely large graphs, partitioning might still be necessary (though G²Miner's approach is more efficient than prior work).
- Future Work:
- The paper suggests that further exploration of pattern-aware optimizations and more sophisticated scheduling policies could lead to even greater performance gains.
- Extending G²Miner to support more complex GPM variants or integrating it with other graph processing frameworks could be future directions.
Summary updated