Solving the Correlation Cluster LP in Sublinear Time

Nairen Cao, Vincent Cohen-Addad, Shi Li, Euiwoong Lee, David Rasmussen Lolck, Alantha Newman, Mikkel Thorup, Lukas Vogl, Shuyi Yan, Hanwen Zhang

Abstract

Correlation clustering is a fundamental problem in unsupervised learning, yet its most powerful formulation—the cluster Linear Program (LP)—has historically been computationally prohibitive for large-scale datasets due to its exponential number of variables. This paper presents a breakthrough algorithm that solves the cluster LP to within a $(1 + \epsilon)$ factor in sublinear time, specifically $\tilde{O}(2^{\text{poly}(1/\epsilon)}n)$. By rounding this solution, the authors achieve a $(1.485 + \epsilon)$-approximation for correlation clustering in time linear to the number of vertices, a significant improvement over previous polynomial-time approaches.

Introduction

Correlation clustering seeks to partition a set of items based on pairwise similarity labels. Given a graph where edges are labeled as "similar" (+) or "dissimilar" (-), the goal is to find a partition that minimizes the number of disagreements: similar pairs placed in different clusters or dissimilar pairs placed in the same cluster.

While various heuristics and approximation algorithms exist, the "cluster LP" is recognized as the most potent theoretical tool for this problem. It assigns a variable to every possible subset of vertices, allowing for a highly granular optimization. However, because there are $2^n$ such subsets, solving the LP directly is impossible for even moderately sized $n$. Previous state-of-the-art methods achieved a $1.485$-approximation but required $O(n^{\text{poly}(1/\epsilon)})$ time. In the context of modern web-scale data, where $n$ may reach billions, such complexity is a non-starter. This work bridges the gap between high-quality approximation and extreme efficiency.

Algorithmic Framework

The authors' approach relies on transforming the exponential LP into a manageable covering problem solved via the Multiplicative Weights Update (MWU) framework. The algorithm is built upon four primary pillars:

1. Multiplicative Weights Update (MWU)

Instead of optimizing the entire LP at once, the algorithm iteratively builds a solution. In each iteration, it seeks "good" clusters that satisfy specific vertex constraints. The MWU framework ensures that by repeatedly adding these clusters, the global solution converges toward the optimum.

2. Preclustering for Structural Hints

A major challenge in sublinear algorithms is the inability to inspect the entire graph. To overcome this, the authors employ a preclustering step to identify "almost-cliques"—groups of vertices that are highly likely to belong to the same cluster in an optimal solution. This reduces the search space and provides the necessary structure for subsequent sampling steps to be effective.

3. Marginal Cost Estimation via Sampling

To identify which clusters to add during the MWU process, the algorithm must estimate the "marginal cost" of adding a vertex to a candidate cluster. In a sublinear regime, one cannot check every edge connected to a vertex. The authors demonstrate that by sampling a constant number of vertices from a candidate set, they can estimate these costs with sufficient precision to maintain the $(1 + \epsilon)$ approximation guarantee for the LP.

4. Amortized Updates

To achieve near-linear time complexity, the algorithm avoids redundant computations. It utilizes an amortized update strategy where a cluster's "ratio" (its quality metric) is only recomputed when it loses a significant fraction of its weight. This drastically reduces the computational overhead across iterations.

Theoretical Results

The paper provides rigorous mathematical proofs for the following results:

  • Sublinear Complexity: The algorithm finds a $(1 + \epsilon)$-approximate solution to the cluster LP in $\tilde{O}(2^{\text{poly}(1/\epsilon)}n)$ time. This is linear in the number of vertices $n$, rather than the number of edges $m$ or higher-order polynomials.
  • State-of-the-Art Approximation: By applying rounding techniques to the sublinear LP solution, the authors achieve a $(1.485 + \epsilon)$-approximation for the overall Correlation Clustering problem.
  • Model Versatility: The techniques are shown to be robust across different computational models, including the Sublinear Query Model and the Massively Parallel Computation (MPC) model. In the MPC setting, the algorithm runs in a constant number of rounds with limited memory per machine, making it suitable for distributed environments.

Discussion and Limitations

While this work represents a theoretical milestone, it introduces a "galactic constant" in the form of the $2^{\text{poly}(1/\epsilon)}$ term. For very small values of $\epsilon$, the running time grows rapidly, meaning the algorithm's current value is primarily foundational rather than immediately practical for all values of $\epsilon$.

Furthermore, the sublinear nature of the algorithm introduces a unique constraint: while it can output a valid clustering, it cannot calculate the total number of disagreements in sublinear time, as that would require $O(n^2)$ edge inspections. Future work may focus on improving the dependence on $1/\epsilon$ or extending these sublinear sampling techniques to more complex hierarchical clustering models.

Summary updated

BibTeX
@inproceedings{cao2025solving,
  author = {Nairen Cao and Vincent Cohen-Addad and Shi Li and Euiwoong Lee and David Rasmussen Lolck and Alantha Newman and Mikkel Thorup and Lukas Vogl and Shuyi Yan and Hanwen Zhang},
  title = {{Solving the Correlation Cluster LP in Sublinear Time}},
  booktitle = {STOC},
  year = {2025},
}
Figure