Scalable Community Detection via Parallel Correlation Clustering

Jessica Shi, Laxman Dhulipala, David Eisenstat, Jakub Lacki, Vahab S. Mirrokni

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.

Multiplicative slowdown for large-scale graphs (Twitter and Friendster) across various optimization configurations.

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$).

Objective quality metrics across datasets and optimization settings, showing the impact of heuristics on the final clustering objective.

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

BibTeX
@article{shi2021scalable,
  author = {Jessica Shi and Laxman Dhulipala and David Eisenstat and Jakub Lacki and Vahab S. Mirrokni},
  title = {{Scalable Community Detection via Parallel Correlation Clustering}},
  journal = {Proc. VLDB Endow.},
  year = {2021},
  doi = {10.14778/3476249.3476282},
}

Loading related content...

Figure