Efficient Testing for Correlation Clustering: Improved Algorithms and Optimal Bounds

Chengyuan Deng, Jie Gao, Songhua He, Chen WangICLR 2026

TL;DR

Researchers have developed a new suite of sublinear-time algorithms that can determine if a massive network is "clusterable" (partitionable into groups of friends and enemies) with significantly fewer queries than previously possible. By leveraging Janson’s inequality—a tool from random graph theory—they improved the query complexity for general correlation clustering from $\tilde{O}(1/\epsilon^7)$ to a near-optimal $O(1/\epsilon^2)$ and established the first tight bounds for structural balance testing.

What Problem Does This Paper Address?

Many real-world networks—from social dynamics to financial transactions—can be modeled as "signed graphs" where edges are either positive (similar/friendly) or negative (dissimilar/hostile). Correlation clustering seeks to partition these vertices so that positive edges stay within clusters and negative edges go between them. A "perfect" clustering has zero cost, but finding the optimal partition for a huge graph is computationally expensive (often $O(n)$ or worse).

In the era of massive datasets, we often do not need the exact partition; we just want to know: Is this graph clusterable, or is it a mess? This is the domain of property testing. The goal is to decide if a graph is "close" to being perfectly clusterable or "$\epsilon$-far" (meaning you would have to flip at least $\epsilon \binom{n}{2}$ edges to fix it) using a tiny, constant number of queries that does not depend on the total number of vertices $n$.

Prior state-of-the-art algorithms were theoretically sublinear but practically slow, requiring $\tilde{O}(1/\epsilon^7)$ queries. This paper aims to close the gap between theory and practice with much tighter, more efficient bounds.

Methods

The authors propose three primary algorithmic approaches to tackle different variations of the problem:

  1. General Clusterability: Instead of complex optimization, the algorithm simply samples $O(1/\epsilon)$ vertices and inspects their induced subgraph. It looks for "bad triangles" (two positive edges and one negative edge). If it finds one, it rejects the graph.
  2. Fixed $k$-Clusterability: To test if a graph fits into exactly $k$ clusters, the algorithm samples a small subset of vertices and greedily attempts to sort them into $k$ buckets based on their relationships.
  3. Structural Balance ($k=2$): For the specific case of two clusters (common in social science to represent "us vs. them" dynamics), the authors sample triangles directly.

The theoretical breakthrough in this work relies on Janson’s Inequality. Traditionally, researchers used the "Graph Removal Lemma," which leads to enormous "tower-type" complexity bounds. Janson’s Inequality allows the authors to handle the dependencies that arise when sampled "witness" structures (like bad triangles) share vertices, leading to much sharper probabilistic bounds.

Key Insights

  • Janson > Chernoff: Standard Chernoff bounds assume independence. In property testing, if you sample vertices, the edges between them are correlated. Janson’s inequality provides a more "fine-grained" way to analyze these local dependencies, which is why the authors could slash the query complexity so drastically.
  • The Power of the Triangle: The paper reinforces the idea that global clusterability is fundamentally tied to local "consistency." In a clusterable graph, "the enemy of my enemy is my friend." By looking for violations of this local rule, you can infer global structure.
  • Tightness for $k=2$: They proved that for structural balance, $O(1/\epsilon)$ queries are both necessary and sufficient, providing the first set of tight bounds in this field.

Key Results

The new algorithms provide a massive speedup. For a typical error parameter ($\epsilon = 0.01$), the previous state-of-the-art would require roughly $10^{14}$ operations. The new algorithm requires only $10^4$—the difference between waiting 2.5 hours and less than a second.

Comparison of query complexity bounds for correlation clustering tasks.

As shown in the bounds comparison:

  • General Clustering: Improved from $\tilde{O}(1/\epsilon^7)$ to $O(1/\epsilon^2)$.
  • Structural Balance ($k=2$): Improved from $O(1/\epsilon^2)$ to a tight $\Theta(1/\epsilon)$.

Empirically, the algorithms were evaluated on 140 synthetic graph instances (using perturbation schemes like Uniform Noise and Cluster Swaps) and six real-world datasets from the SNAP collection. In these tests, the algorithms achieved 100% accuracy in distinguishing clusterable vs. non-clusterable graphs while using significantly fewer samples than baseline methods.

Limitations and Future Work

  • Dense vs. Sparse Graphs: The current algorithms are designed for the "adjacency matrix model," which assumes the graph is relatively dense. In very sparse graphs, a graph could be "far" from clusterable without having many local "bad triangles," making these sampling methods less effective.
  • Partial Labeling: The study assumes we can query any edge $(u, v)$. Future work could explore "general labeled graphs" where only a subset of edges are labeled, which is more common in incomplete real-world datasets.

Summary updated

BibTeX
@inproceedings{deng2026efficient,
  author = {Chengyuan Deng and Jie Gao and Songhua He and Chen Wang},
  title = {{Efficient Testing for Correlation Clustering: Improved Algorithms and Optimal Bounds}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=3AFchYEwRQ},
}
Figure