Dynamic Correlation Clustering in Sublinear Update Time

Vincent Cohen-Addad, Silvio Lattanzi, Andreas Maggiori, Nikos Parotsidis

Introduction

Correlation clustering is a fundamental unsupervised learning task. Given a set of items and labels indicating whether pairs are "similar" (positive edges) or "dissimilar" (negative edges), the goal is to partition the items into clusters that minimize "disagreements"—specifically, positive edges between different clusters and negative edges within the same cluster.

In the real world, however, graphs are rarely static. Social networks constantly gain and lose users, and datasets evolve over time. This paper introduces the first algorithm for dynamic correlation clustering that achieves a constant-factor approximation in $O(\text{polylog } n)$ amortized update time. By moving beyond traditional edge-stream models to a "database model" using neighborhood sampling, the authors break the maximum degree bottleneck, allowing for efficient clustering even in massive, dense, and rapidly evolving graphs.

The Bottleneck in Dynamic Graphs

While researchers have developed "dynamic" algorithms that update clusters as edges are added or removed, these typically require time proportional to the number of edges or the maximum degree ($D$). In a dense graph where a single node might have millions of connections, an $O(D)$ update time is effectively as slow as recomputing the clustering from scratch.

The core challenge addressed in this paper is maintaining a high-quality clustering in sublinear time—specifically, polylogarithmic in the number of nodes ($n$)—even when the underlying graph is highly dense.

Methodology: Achieving Sublinear Time

The authors build upon the existing "Agreement" algorithm, which clusters nodes if their neighborhoods are sufficiently similar. To adapt this for sublinear dynamic time, they introduce several novel components:

  1. The Database Model: Instead of reading the entire graph or processing every edge update, the algorithm interacts with the graph through targeted queries (e.g., "What is node $u$'s degree?", "Is there an edge between $u$ and $v$?", and "Give me a random neighbor of $u$").
  2. Probabilistic Testing: Rather than comparing entire neighborhoods—which takes $O(n)$ time—the algorithm uses $O(\text{polylog } n)$ random samples to estimate if two nodes are in "agreement" or if a node is "heavy" (well-connected to similar nodes). This insight proves that a logarithmic number of samples provides enough statistical evidence to maintain a constant-factor approximation.
  3. The Anchor Set ($\Phi$): The algorithm maintains a dynamically changing set of "anchor" nodes that act as cluster representatives. When a node arrives or changes significantly, it either connects to existing anchors or becomes an anchor itself.
  4. The Notify Procedure: To keep the system stable without global updates, the authors designed a message-passing system. When a node is deleted or its neighborhood changes significantly, it notifies a small, randomly selected subset of its neighbors, ensuring the anchor structure remains representative.

Key Results: Quality and Scalability

The authors evaluated their "Dynamic Agreement" (DA) algorithm against standard baselines like PIVOT-DYNAMIC (PD) using real-world networks (SNAP datasets) and a chemical gas sensor dataset (UCI Drift) embedded with varying density thresholds.

Theoretical Bound: The algorithm successfully maintains an $O(1)$-approximation with $O(\text{polylog } n)$ amortized update time, a massive theoretical improvement over the previous $O(D)$ state-of-the-art for node streams.

Solution Quality: In experiments on real-world datasets, the DA algorithm consistently produced high-quality clusterings, frequently achieving lower-cost objectives than the PIVOT-DYNAMIC baseline over time.

Relative clustering objective over time for the CA-AstroPh dataset.

Scalability and Density Independence: Traditional dynamic algorithms slow down as graphs get denser because they must process more edges. The DA algorithm's runtime is largely decoupled from the number of edges. On the Drift dataset, as the graph density increased from an average degree of 42.25 to 253.36, the runtime of PIVOT-DYNAMIC increased linearly. In contrast, the DA algorithm's runtime remained nearly constant, empirically validating its sublinear scaling.

Performance comparison on the Drift dataset across varying densities.

Limitations and Future Work

While the results are promising, the authors note a few limitations and areas for future exploration:

  • Adversarial Deletions: The current runtime analysis relies on nodes being deleted at random. A major open question is whether sublinear update time is possible when an adversary specifically targets critical "anchor" nodes to force expensive recomputations.
  • Approximate Degrees: Maintaining exact or even approximate degrees in sublinear time for general dynamic graphs is difficult. The authors circumvented this in their implementation using standard adjacency lists, but a fully "pure" sublinear implementation remains an interesting engineering challenge.
  • Refining the Approximation Factor: While the paper proves a "constant" approximation, the specific constant is relatively large. Future work could focus on tightening this bound to compete with the $1.43+\epsilon$ ratios seen in offline, polynomial-time algorithms.

Summary updated

BibTeX
@inproceedings{cohenaddad2024dynamic,
  author = {Vincent Cohen-Addad and Silvio Lattanzi and Andreas Maggiori and Nikos Parotsidis},
  title = {{Dynamic Correlation Clustering in Sublinear Update Time}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=3YG55Lbcnr},
}
Figure