This paper, presented by researchers from UIUC, NVIDIA, and other institutions, introduces a high-performance GPU-based solution for Maximal Clique Enumeration (MCE). By reimagining how the classic Bron-Kerbosch algorithm is mapped to parallel hardware, the authors overcome the memory and load-balancing hurdles that have historically hobbled GPU attempts at this NP-hard problem.
TL;DR
The authors propose a GPU-accelerated Maximal Clique Enumeration (MCE) algorithm that uses a per-block depth-first search (DFS) combined with a novel "worker list" for dynamic load balancing. Their implementation achieves a 4.9× geometric mean speedup over state-of-the-art CPU implementations and scales efficiently across multiple GPUs.
What Problem Does This Paper Address?
Finding "cliques" (groups where every member is connected to every other member) is a fundamental task in network analysis, used in everything from community detection to bioinformatics. Maximal Clique Enumeration (MCE) specifically aims to find all cliques that cannot be expanded further.
The standard approach is the Bron-Kerbosch (BK) algorithm, a recursive backtracking search. While powerful, it is difficult to parallelize on GPUs for two reasons:
- Memory Explosion: Previous GPU attempts used Breadth-First Search (BFS) to find parallelism. However, at deep levels of the search tree, the number of nodes to track explodes, quickly exhausting GPU memory.
- Load Imbalance: Depth-First Search (DFS) is memory-efficient but creates massive load imbalance. One branch of the search tree might finish in milliseconds, while another takes minutes, leaving thousands of GPU cores idling.
Methods
The authors move away from BFS and implement a per-block DFS approach, where each GPU thread block independently explores a subtree. To make this work, they introduced several key innovations:
- Dynamic Load Balancing (The Worker List): Instead of a traditional "worklist" (which stores actual tasks and is memory-heavy), they use a "worker list" that stores the IDs of idle thread blocks. Busy blocks ("donors") check this list and offload branches of their search tree directly to idle blocks ("receivers").
- Compact $X$-Set Representation: In MCE, you must track an "exclude" set ($X$) to ensure a clique is maximal. This set is usually huge. The authors split $X$ into two parts: one that stays within the current "possible" set and one that only shrinks as the search goes deeper. By using a single array with level-based pointers for the shrinking part, they drastically reduced memory consumption.
- Partial Induced Subgraphs: Constructing a full local graph for every step of the recursion is expensive. The authors propose using "partial" induced subgraphs for the "possible" vertices while fetching "exclude" vertex data from the original graph, balancing computation time and memory latency.
- Degeneracy Ordering: They use a preprocessing step to reorder vertices, which provides a theoretical bound on the size of the initial search sets.
Datasets
The implementation was evaluated on 12 diverse, large-scale real-world graphs from the SNAP and Network Repository collections, including:
- Social Networks:
soc-friendster(1.8B edges),soc-orkut,soc-sinaweibo. - Web/Communication:
clueweb09-50m,wiki-talk,wiki-link. - Technical/Internet:
as-skitter.
Key Insights and Ideas
- DFS is the "Right" Way for GPUs: While BFS is the intuitive choice for parallel hardware, this paper proves that for MCE, a carefully load-balanced DFS is superior because it avoids the memory wall.
- The "Worker List" vs. "Worklist": The "aha moment" here is that task data in MCE is too bulky to move around a global queue. By moving the worker (the thread block ID) rather than the work (the sets $R, P, X$), the system achieves load balancing with negligible overhead.
- Memory Efficiency is Scalability: By optimizing the representation of the $X$ set, the authors allowed the GPU to handle much deeper search trees and larger graphs than previous implementations, which would have crashed due to "Out of Memory" errors.
Key Results
- Speedup vs. CPU: On a single NVIDIA A100 GPU, the implementation outperformed the state-of-the-art parallel CPU implementation (running on a 48-core Xeon Skylake) by a geometric mean of 4.9×, with peak speedups up to 16.7×.
- Speedup vs. Prior GPU Work: Compared to the most recent GPU-based MCE research, this approach was 35.65× faster on average.
- Multi-GPU Scaling: The "worker list" approach allowed the algorithm to scale almost linearly across multiple GPUs (up to 4 V100s tested), proving the effectiveness of their load-balancing scheme.
- Efficiency: The implementation maintained high SM (Streaming Multiprocessor) utilization (mean of 57.76%) and high SIMD utilization (mean of 74.5%).
Limitations and Future Work
- Multi-Node Scaling: The current work focuses on single-node (multi-GPU) systems. Scaling this to distributed clusters (multi-node) remains a challenge for future research.
- Heuristic Refinement: The authors use a simple heuristic to decide between "full" and "partial" induced subgraphs. They suggest that a more dynamic, local heuristic (deciding per-subtree) could squeeze out even more performance.
- Pivot Selection: Finding the optimal "pivot" vertex (used to prune the search tree) is computationally expensive. The authors currently limit pivot selection to a subset of vertices to save time; a more efficient global pivot search could further reduce the total number of tree nodes visited.
Summary updated