Abstract
Community detection in billion-scale graphs requires balancing computational speed with clustering quality. We present a parallel framework based on the generalized $\Lambda$CC objective, which unifies modularity and correlation clustering. Our approach utilizes a parallelized Louvain heuristic with asynchronous updates and work-reduction strategies. Experimental results on massive real-world networks, including Twitter and Friendster, demonstrate up to 28x speedups over sequential baselines while significantly outperforming existing state-of-the-art tools in both speed and cluster quality.
Introduction
Finding related groups of nodes, or communities, is fundamental to understanding complex networks. However, as datasets reach the billion-edge scale, traditional sequential algorithms become impractical. Modularity-based methods like Louvain are popular for their speed but often fail to recover ground-truth communities. Conversely, Correlation Clustering (CC) offers higher quality but lacks scalability. This paper introduces a framework that bridges this gap by optimizing the $\Lambda$CC objective in a highly parallelized environment.
Methods
The core of our framework is a shared-memory parallel implementation of the Louvain method. Recognizing that a perfectly faithful parallelization of Louvain is P-complete, we employ several heuristic relaxations and optimizations:
- Asynchronous Updates: Vertices move to their optimal clusters as soon as calculations are complete, rather than waiting for a global synchronization step. This breaks symmetry and prevents nodes from oscillating back and forth between clusters.
- Work Reduction: The algorithm only re-evaluates vertices whose neighbors changed clusters in the previous iteration, significantly reducing redundant computations.
- Multi-level Refinement: A post-compression refinement pass allows individual vertices to be re-assigned, correcting errors introduced during the aggregation phase and boosting final quality.
Results and Scalability
Our evaluation on massive graphs, including the 1.8 billion-edge Friendster network and the 1.2 billion-edge Twitter follower graph, shows that the parallel framework achieves substantial performance gains. On a 30-core machine, we observed speedups of up to 28.44x over an optimized sequential baseline. Our implementation (PAR-MOD) outperformed NetworKit, a leading modularity tool, by up to 3.5x in speed while maintaining superior scalability on tasks that caused baseline implementations to time out.
Key Insights
A significant theoretical contribution is the proof that the sequential Louvain method is P-complete, justifying the need for parallel heuristics. Empirically, we found that asynchrony acts as a regularizer; by introducing randomness, it helps the algorithm escape poor local optima, often leading to better final objective values than synchronous versions. Furthermore, our results confirm that the Correlation Clustering objective ($\lambda = 0.85$) generally yields clusters that more closely match real-world ground truth compared to the more common modularity objective ($\lambda = 0.01$).
Conclusion
By combining theoretical insights with practical parallel optimizations, we have developed a community detection framework that scales to the world's largest public networks. The use of the $\Lambda$CC objective allows for a flexible trade-off between different quality metrics, while asynchronous parallelization ensures high performance without sacrificing accuracy. Future work will focus on improving load balancing for power-law graphs with extreme degree distributions and reducing the memory overhead of multi-level refinement.
Summary updated