Fully Dynamic Adversarially Robust Correlation Clustering in Polylogarithmic Update Time

Vladimir Braverman, Prathamesh Dharangutte, Shreyas Pai, Vihan Shah, Chen Wang

Abstract

We study the dynamic correlation clustering problem with adaptive edge label flips. In correlation clustering, we are given a $n$-vertex complete graph whose edges are labeled either $(+)$ or $(-)$, and the goal is to minimize the total number of $(+)$ edges between clusters and the number of $(-)$ edges within clusters. We consider the dynamic setting with adversarial robustness, in which the adaptive adversary can flip the label of an edge based on the current output of the algorithm. Our main result is a randomized algorithm that always maintains an $O(1)$-approximation to the optimal correlation clustering with $O(\log^{2}{n})$ amortized update time. Prior to our work, no algorithm with $O(1)$-approximation and $\text{polylog}{(n)}$ update time for the adversarially robust setting was known. We further validate our theoretical results with experiments on synthetic and real-world datasets with competitive empirical performances. Our main technical ingredient is an algorithm that maintains sparse-dense decomposition with $\text{polylog}{(n)}$ update time, which could be of independent interest.

Introduction

Correlation Clustering (CC) is a fundamental unsupervised learning task where data points are partitioned based on pairwise similarity (+) or dissimilarity (-) labels. The objective is to minimize "disagreements": positive edges between clusters and negative edges within clusters. In many modern applications, such as social network analysis or real-time image segmentation, these relationships are dynamic. An effective algorithm must update the clustering efficiently as labels flip.

The Challenge of Adaptive Adversaries

A significant hurdle in dynamic graph algorithms is the presence of an adaptive adversary. Unlike an oblivious adversary who determines all updates in advance, an adaptive adversary can observe the algorithm's output and tailor future edge flips to exploit its internal randomness. While fast polylogarithmic update time algorithms exist for the oblivious setting, they often fail under adaptive attacks. Robust algorithms, on the other hand, have historically been too slow for large-scale dynamic graphs.

Method: Sparse-Dense Decomposition

The authors bridge this gap using a dynamic sparse-dense decomposition. The algorithm partitions vertices into "almost-cliques" (dense groups with high internal positive edge density) and "sparse vertices" (those not fitting well into any dense group).

Local update mechanism and cluster structure.

The core innovation lies in the local update mechanism. Instead of global recomputation, the algorithm monitors local changes. When an edge $(u, v)$ flips, counters for the affected vertices are incremented. A local sparse-dense decomposition is triggered only when a vertex's degree changes by a significant threshold (a constant fraction $\epsilon$ of its degree). This stability ensures that an adversary cannot easily force costly global updates or degrade clustering quality without a massive number of edge flips.

The maintenance of the decomposition relies on two key subroutines:

  1. Vertex Acquisition: Efficiently identifying and adding "missed" vertices to existing almost-cliques.
  2. Vertex Peeling: Testing if a vertex has become too sparse relative to its cluster and removing it if necessary.
Subroutines for cluster maintenance.

These subroutines ensure that clusters remain "valid" over time. If a cluster loses too many members (e.g., 1%), it is dismantled entirely to maintain the $O(1)$-approximation guarantee.

Experimental Evaluation

The algorithm was tested on synthetic Stochastic Block Models (SBM) and real-world datasets from SNAP (email-Eu-core, ca-HepTh). Under both random and targeted (adversarial) updates, the proposed algorithm demonstrated superior stability and lower clustering costs compared to standard baselines like the "Pivot" algorithm. Notably, under targeted attacks designed to shatter clusters, the algorithm maintained its performance while baselines often degraded significantly.

Limitations and Future Work

While the $O(\log^2 n)$ update time is a significant theoretical advance, it is an amortized guarantee. Occasional updates triggering large neighborhood re-decompositions may be slower. Additionally, the theoretical proofs rely on small constants (e.g., $\epsilon \leq 1/500$), though empirical results suggest the algorithm is robust even with more aggressive parameters. Future work may focus on narrowing this gap and reducing memory overhead in streaming environments.

Conclusion

This work provides the first $O(1)$-approximation algorithm for dynamic correlation clustering with $O(\log^2 n)$ amortized update time that is robust against adaptive adversaries. By leveraging local stability and sparse-dense decomposition, it offers a practical and theoretically sound solution for large-scale dynamic clustering tasks.

Summary updated

BibTeX
@inproceedings{braverman2025fully,
  author = {Vladimir Braverman and Prathamesh Dharangutte and Shreyas Pai and Vihan Shah and Chen Wang},
  title = {{Fully Dynamic Adversarially Robust Correlation Clustering in Polylogarithmic Update Time}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=Zqoq7L7o2E},
}
Figure