[Paper Review] GVE-Louvain: Fast Louvain Algorithm for Community Detection in Shared Memory Setting
This paper presents GVE-Louvain, an optimized shared-memory parallel implementation of the Louvain algorithm for community detection, leveraging 9 targeted optimizations to accelerate both local-moving and aggregation phases. On a dual 16-core Intel Xeon system, GVE-Louvain achieves 560M edges/second on a 3.8B-edge web graph, outperforming Vite, Grappolo, and NetworKit by 50×, 22×, and 20× respectively, with 1.6× speedup per thread doubling.
Community detection is the problem of identifying natural divisions in networks. Efficient parallel algorithms for identifying such divisions is critical in a number of applications, where the size of datasets have reached significant scales. This technical report presents one of the most efficient multicore implementations of the Louvain algorithm, a high quality community detection method. On a server equipped with dual 16-core Intel Xeon Gold 6226R processors, our Louvain, which we term as GVE-Louvain, outperforms Vite, Grappolo, NetworKit Louvain, and cuGraph Louvain (running on NVIDIA A100 GPU) by 50x, 22x, 20x, and 5.8x faster respectively - achieving a processing rate of 560M edges/s on a 3.8B edge graph. In addition, GVE-Louvain improves performance at an average rate of 1.6x for every doubling of threads.
Motivation & Objective
- Address the performance bottleneck in the aggregation phase of the Louvain algorithm, which remains under-optimized despite advances in local-moving phase parallelization.
- Improve the efficiency of community detection in large-scale graphs by optimizing for shared-memory multicore architectures, which are energy-efficient and widely available.
- Provide a unified, highly-optimized implementation that consolidates scattered algorithmic improvements into a single, high-performance parallel framework.
- Achieve strong scaling and high modularity quality while minimizing load imbalance and contention in concurrent execution.
- Enable real-time or interactive community detection in dynamic graphs by establishing a foundation for future dynamic algorithm extensions.
Proposed method
- Apply 9 targeted optimizations to the Louvain algorithm, focusing on reducing memory contention and improving data locality in shared-memory environments.
- Optimize the local-moving phase using vectorized hash tables and efficient thread assignment strategies to minimize false sharing and cache misses.
- Accelerate the aggregation phase through a custom, scalable reduction strategy that minimizes lock contention and improves load balancing across threads.
- Introduce a hybrid approach combining OpenMP tasking and static scheduling to balance work distribution and reduce overhead in irregular graph workloads.
- Implement a dynamic load-balancing mechanism that adapts to varying graph degrees and community structures across different input types.
- Integrate performance-critical components such as community renumbering and dendrogram lookup into the main computation pipeline to reduce latency.
Experimental results
Research questions
- RQ1How can the aggregation phase of the Louvain algorithm be optimized to overcome performance bottlenecks in shared-memory parallelization?
- RQ2What combination of algorithmic and systems-level optimizations yields the highest performance gain in multicore shared-memory environments for community detection?
- RQ3To what extent can strong scaling be achieved in the Louvain algorithm when both local-moving and aggregation phases are optimized?
- RQ4How does the modularity quality of the optimized GVE-Louvain implementation compare to existing open-source implementations like Vite, Grappolo, and NetworKit?
- RQ5What is the impact of graph characteristics (e.g., degree distribution, clustering) on the performance and scaling behavior of the optimized implementation?
Key findings
- On a 3.8B-edge web graph, GVE-Louvain processes 560 million edges per second, achieving a processing rate of 560M edges/s.
- GVE-Louvain outperforms Vite, Grappolo, and NetworKit by 50×, 22×, and 20× respectively on the same hardware and dataset.
- The algorithm achieves an average speedup of 1.6× for every doubling of threads, demonstrating strong scaling efficiency.
- At 64 threads, GVE-Louvain achieves 11.4× speedup over a single thread, with performance degradation due to NUMA effects.
- The local-moving phase accounts for 49% of total runtime, the aggregation phase for 35%, and other phases (initialization, renumbering, etc.) for 16%.
- GVE-Louvain achieves 3.1% higher modularity than Vite on web graphs and 0.6% lower than Grappolo and NetworKit on social networks with poor clustering.
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.