Sparse-pivot: Dynamic correlation clustering for node insertions

Mina Dalirrooyfard, Konstantin Makarychev, Slobodan Mitrović

Introduction

Correlation clustering is a fundamental unsupervised learning task: given a set of items and "similar/dissimilar" labels for pairs, the goal is to partition the items to maximize agreement (or minimize disagreements). In many modern applications—such as an online store adding new products daily or a social network registering new users—data arrives incrementally.

The primary challenge in these dynamic settings is maintaining a high-quality clustering as new nodes and their associated edges are added one by one. Re-clustering the entire dataset from scratch upon every insertion is computationally prohibitive, often requiring $O(n^2)$ time or worse. While previous work achieved sublinear update times, it did so with a very large, unspecified constant approximation factor.

To bridge the gap between theoretical efficiency and practical accuracy, researchers have introduced SPARSE-PIVOT, a new algorithm for dynamic correlation clustering. It achieves an amortized update time of just $O(\log^{O(1)} n)$ per node insertion and provides a $20+\epsilon$ approximation factor—a massive theoretical improvement over previous sublinear-time algorithms that also translates to superior real-world performance.

The SPARSE-PIVOT Algorithm

SPARSE-PIVOT is built upon a 5-approximation variant of the classic PIVOT algorithm. In the static version of PIVOT, nodes are assigned random ranks, and each node joins the cluster of its lowest-ranked neighbor (its "pivot"). Rather than trying to find the global optimum directly, SPARSE-PIVOT aims to approximate this "Reference Clustering" (the result of a static PIVOT run). If the dynamic algorithm can stay close to this reference, it inherits its constant-factor approximation properties.

To make this process dynamic and efficient under a database model (where the algorithm can query a node's degree, pick a random neighbor, or check edge existence), the authors introduce three key techniques:

  1. Selective Exhaustive Search: For nodes with very low random ranks—which are highly likely to act as pivots—the algorithm performs an exhaustive neighborhood scan to ensure accurate clustering.
  2. Pivot Sampling: For the vast majority of nodes, scanning the entire neighborhood could take $O(n)$ time. Instead, the algorithm samples $O(\log n)$ random neighbors and their pivots to find the best cluster assignment.
  3. Cluster Pruning (BREAK-CLUSTER): To prevent "bad" nodes (outliers poorly connected to their assigned cluster) from degrading overall quality, the algorithm periodically estimates in-cluster degrees using sampling. It then moves poorly connected nodes into singleton clusters.

The success of these techniques relies heavily on the "Good Node" hypothesis: the idea that nodes well-connected within their true cluster and poorly connected outside it can be correctly clustered via sampling with high probability. Furthermore, the ability to estimate the "cost" of a cluster (the number of disagreements) in polylogarithmic time via sampling is what makes the BREAK-CLUSTER pruning step feasible.

Experimental Results

The authors evaluated SPARSE-PIVOT on both real-world and synthetic datasets. Real-world tests utilized SNAP datasets, including sparse graphs like social networks (musae-facebook), email networks (email-Enron), collaboration networks (ca-AstroPh), and citation networks (cit-HepTh). Synthetic tests used the Drift Dataset (UCI) to evaluate performance across varying graph densities.

Empirically, SPARSE-PIVOT significantly outperforms the previous state-of-the-art "Dynamic Agreement" algorithm.

Relative clustering objectives on the email-Enron dataset, showing SPARSE-PIVOT consistently outperforming baselines.

As demonstrated in the email-Enron dataset results, SPARSE-PIVOT maintains a consistently lower (better) clustering objective throughout the node arrival process compared to baselines. Beyond clustering quality, SPARSE-PIVOT is also highly efficient; on the ca-AstroPh dataset, it proved to be nearly 4x faster than the Dynamic Agreement algorithm.

Limitations and Future Work

While SPARSE-PIVOT represents a significant leap forward, several challenges remain:

  • Soft Deletions: The algorithm handles node insertions elegantly but currently treats deletions as "soft." Deleted nodes are essentially ignored until a periodic full recomputation is triggered (after $\epsilon N$ updates). Developing a fully dynamic version that handles arbitrary deletions with the same polylogarithmic efficiency is an open problem.
  • The Constant Factor: While an approximation factor of 20 is a vast improvement over previous dynamic bounds, it is still far from the best known static approximation factors (currently ~1.44). Future work will likely focus on tightening this gap.
  • Non-Adaptive Arrivals: The current theoretical analysis assumes the sequence of node arrivals is fixed in advance (an oblivious adversary). Extending these guarantees to an adaptive adversary would be a valuable theoretical milestone.

Summary updated

BibTeX
@inproceedings{dalirrooyfard2025sparse,
  author = {Mina Dalirrooyfard and Konstantin Makarychev and Slobodan Mitrović},
  title = {{Sparse-pivot: Dynamic correlation clustering for node insertions}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=aQUUUAcAw1},
}
Figure