[Paper Review] A GPU-Based Solution to Fast Calculation of Betweenness Centrality on Large Weighted Networks
This paper presents a GPU-accelerated algorithm for fast betweenness centrality (BC) computation on large weighted networks, leveraging work-efficient thread scheduling and warp-centric optimization to achieve 30× to 150× speedup over CPU-based Brandes’ algorithm. The approach integrates optimized single-source shortest path (SSSP) computation using Dijkstra’s algorithm on CUDA, with tailored thread management to handle irregular network structures and load imbalance.
Recent decades have witnessed the tremendous development of network science, which indeed brings a new and insightful language to model real systems of different domains. Betweenness, a widely employed centrality in network science, is a decent proxy in investigating network loads and rankings. However, the extremely high computational cost greatly prevents its applying on large networks. Though several parallel algorithms have been presented to reduce its calculation cost on unweighted networks, a fast solution for weighted networks, which are in fact more ubiquitous than unweighted ones in reality, is still missing. In this study, we develop an efficient parallel GPU-based approach to boost the calculation of betweenness centrality on very large and weighted networks. Comprehensive and systematic evaluations on both synthetic and real-world networks demonstrate that our solution can arrive the performance of 30x to 150x speedup over the CPU implementation by integrating the work-efficient and warp-centric strategies. Our algorithm is completely open-sourced and free to the community and it is public available through https://dx.doi.org/10.6084/m9.figshare.4542405. Considering the pervasive deployment and declining price of GPU on personal computers and servers, our solution will indeed offer unprecedented opportunities for exploring the betweenness related problems in network science.
Motivation & Objective
- Address the lack of efficient GPU-based BC computation for weighted networks, which are more common in real-world applications than unweighted ones.
- Overcome the high computational cost of betweenness centrality in large-scale networks, where CPU-based Brandes’ algorithm takes years for networks with millions of nodes.
- Develop a parallel GPU solution that efficiently handles the irregular structure and load imbalance inherent in real-world weighted networks.
- Integrate and evaluate advanced GPU optimization strategies—work-efficiency and warp-centric techniques—to maximize performance on diverse network topologies.
- Provide a publicly available, open-source tool for computing both node and edge betweenness centrality on weighted networks using GPU acceleration.
Proposed method
- Adapt Brandes’ algorithm for weighted networks using Dijkstra’s algorithm to compute single-source shortest paths (SSSP) on GPU.
- Implement a work-efficient strategy to dynamically assign threads only to active frontier nodes, reducing idle work and improving memory coalescing.
- Apply a warp-centric approach with small warp sizes (e.g., 4, 8, 16) to reduce thread divergence and better match node degrees, especially in low-degree networks.
- Combine work-efficient scheduling with small-warp-size execution to minimize thread wastage and balance load across warps.
- Optimize memory access patterns and kernel launch configurations to improve GPU occupancy and reduce latency in irregular graph traversal.
- Use CUDA kernels to parallelize SSSP computation across all nodes, with dynamic load balancing and early termination for convergence.
Experimental results
Research questions
- RQ1Can a GPU-based algorithm achieve significant speedup for betweenness centrality computation on large weighted networks compared to CPU implementations?
- RQ2How do work-efficient and warp-centric optimization strategies individually and jointly improve performance on irregular, real-world weighted networks?
- RQ3What is the impact of varying warp size on performance across networks with different average degrees and structural characteristics?
- RQ4Does the combination of work-efficiency and small-warp-size strategies yield more stable and scalable performance across diverse network types?
- RQ5Can the proposed GPU algorithm be effectively applied to both synthetic and real-world weighted networks with varying diameters and degree distributions?
Key findings
- The proposed GPU-based BC algorithm achieves 30× to 150× speedup over the best CPU implementation on real-world weighted networks, including email and social networks.
- The combination of work-efficient scheduling and small-warp-size (e.g., warp4) execution achieves 2.65× speedup over the baseline GPU method on realistic networks.
- On low-degree networks (average degree ≈ 4), implementations using small warp sizes outperform both node-parallel and large-warp-size approaches, especially when combined with work-efficiency.
- The joint strategy of work-efficiency and small-warp-size is robust across network types, including real-world and Kronecker graphs, and shows consistent performance gains.
- The algorithm performs poorly on high-depth, low-degree random graphs when using large warp sizes, but small warp sizes with work-efficiency still provide slight improvements over work-efficiency alone.
- The final implementation is open-sourced and publicly available via DOI: 10.6084/m9.figshare.4542405, enabling community use and extension for network science applications.
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.