Parallel Correlation Clustering on Big Graphs

Xinghao Pan, Dimitris S. Papailiopoulos, Samet Oymak, Benjamin Recht, Kannan Ramchandran, Michael I. Jordan

TL;DR: This paper introduces C4 and ClusterWild!, two parallel algorithms that scale correlation clustering to massive graphs. While C4 maintains strict mathematical equivalence to serial algorithms, ClusterWild! abandons coordination for speed, achieving up to a 15x speedup on 32 cores with only a ~1% loss in clustering quality.

The Bottleneck in Correlation Clustering

Correlation Clustering (CC) is a "number-of-clusters-unknown" approach used for tasks like entity deduplication (e.g., identifying that "J. Doe" and "John Doe" are the same person). Unlike K-means, you don't tell the algorithm how many clusters to find; instead, it tries to minimize "disagreements"—instances where similar items are separated or dissimilar items are grouped together.

The gold standard for this is an algorithm called KwikCluster. It is simple and provides a solid 3-approximation guarantee (meaning its error is at most 3x the optimal). However, KwikCluster is inherently serial: it picks a center, clusters its neighbors, removes them, and repeats. On "Big Data" scales with billions of edges, this serial "peeling" process becomes a massive bottleneck.

Methods: C4 and ClusterWild!

To parallelize this process, the authors propose two distinct approaches:

  1. C4 (Concurrency Control Correlation Clustering): This algorithm uses concurrency control—a concept borrowed from database systems—to ensure that multiple threads can work on different parts of the graph simultaneously without interfering with each other. It enforces "serializability," meaning the final result is identical to what a serial version of KwikCluster would have produced, thereby maintaining the strict 3-approximation guarantee.
  2. ClusterWild!: Inspired by the "Hogwild!" approach to machine learning, this algorithm is coordination-free. Threads pick cluster centers and peel away neighborhoods without checking if another thread is working on a neighboring vertex. This "noisy" execution is much faster because it eliminates the overhead of locking or waiting.

Key Insights and Performance Results

The algorithms were evaluated on several large-scale real-world graphs, including DBLP-2011, ENWiki-2013, UK-2005, IT-2004, and WebBase-2001 (featuring 118 million vertices and over 1 billion edges).

The Cost of Consistency vs. The Power of "Wild"

The authors found that while C4 is mathematically "perfect" relative to the serial version, the synchronization required for concurrency control slows it down. The most surprising insight is that ClusterWild! only suffers a negligible (~1%) loss in accuracy despite completely ignoring potential conflicts between threads. Theoretical proofs show that the probability of two randomly selected vertices causing a conflict is low enough that errors do not accumulate significantly.

Objective value relative to serial execution on the DBLP dataset, showing ClusterWild! maintains near-perfect accuracy compared to the serial baseline.

Speed and Scaling

Both algorithms terminate in a very small number of rounds relative to the graph size ($O(\log n \cdot \log \Delta)$), making them highly efficient for distributed or parallel architectures. In practice, they can process the billion-edge WebBase graph in under 5 seconds using 32 cores.

Mean runtime on the IT-2004 dataset, demonstrating that ClusterWild! (CW As) achieves significant speedups as the number of threads increases to 32.

Overall, the parallel approaches achieved up to a 15x speedup on 32 cores. They significantly outperformed the previous state-of-the-art (the CDK algorithm), which was often 2-3 orders of magnitude slower and struggled to scale beyond small datasets.

Limitations and Future Work

  • Complete Graph Assumption: The theoretical approximation guarantees are derived for complete, unweighted graphs. While the algorithms work on general graphs in practice, the theoretical bounds might shift.
  • Asynchronous Analysis: While the authors provide a "Bulk Synchronous Parallel" (BSP) analysis, they note that a precise theoretical analysis of the fully asynchronous versions (where there are no synchronization barriers at all) remains a challenging open problem.
  • Distributed Implementation: The current work focuses on multi-core shared memory systems. Extending these "wild" and "concurrency-controlled" ideas to fully distributed environments (like clusters of machines) is the next logical step.

Summary updated

BibTeX
@inproceedings{pan2015parallel,
  author = {Xinghao Pan and Dimitris S. Papailiopoulos and Samet Oymak and Benjamin Recht and Kannan Ramchandran and Michael I. Jordan},
  title = {{Parallel Correlation Clustering on Big Graphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
}
Figure