Atoms and Pivot Based Correlation Clustering

David Rasmussen Lolck, Mikkel Thorup, Shuyi YanNeurIPS 2026

TL;DR

For nearly two decades, the classic "pivot" algorithm for correlation clustering has been beloved for its simplicity and linear-time speed, despite its worst-case performance capping out at a 3-approximation. This paper discovers why the pivot algorithm hits that ceiling: it ironically trips over clusters that are too obvious—ultra-dense, clique-like substructures called "atoms." By dynamically sweeping away these atoms before pivoting, the authors break the classic barrier with a fast $O(m \log n)$ combinatorial algorithm that performs great in both theory and practice.

What Problem Does This Paper Address?

Imagine trying to group items into clusters when all you have are noisy pairwise hints about which items are similar (edges) and dissimilar (missing edges), without knowing how many clusters exist beforehand. This is correlation clustering—an NP-hard objective where the goal is to minimize "disagreements" (separating similar items or grouping dissimilar ones).

Today, there is a stark divide between theory and practice. Recent theoretical breakthroughs using complex Linear Programming (LP) have pushed the worst-case approximation ratio down to $1.485 + \varepsilon$, meaning the cost is at most $\sim 1.485\times$ optimal. However, huge runtime constants make these LP methods largely impractical at scale. Practitioners instead rely on the 2008 pivot algorithm: pick a random node, form a cluster with all its immediate neighbors, rip them out of the graph, and repeat. It runs in $O(m)$ linear time and guarantees a 3-approximation in expectation. The authors ask: What actually drives the pivot algorithm to its worst-case factor of 3, and can we fix that blind spot without sacrificing speed and simplicity?

Methods

The authors focus on atoms: dense, clique-like subsets of vertices so tightly connected (specifically, "$\varepsilon$-good" clusters where each vertex has very few missing internal edges or stray external edges) that no optimal clustering can ever split them apart.

They design atom-pivot, a hybrid $O(m \log n)$ algorithm combining classic pivoting with dynamic atom detection:

  1. Dynamic Atom Hunting: Scanning the whole graph for atoms at every step is too slow. Instead, the algorithm maintains a multiset queue of candidate vertices. Because deleting vertices can make remaining clusters cleaner, whenever a cluster is removed, its outside neighbors get added to the queue. Using fast random neighborhood sampling (CHECK) followed by a deterministic filter (CLEAN), it locates atoms dynamically in $O(m \log n)$ total expected time.
  2. Careful Extraction: Simply ripping a found atom $K$ out of the graph can sever too many boundary edges and ruin the approximation. The algorithm first deterministically absorbs outsiders that have an overwhelming majority of neighbors inside $K$, and then probabilistically includes remaining boundary vertices based on their ratio of internal-to-external neighbors.
  3. Fallback to Pivot: Whenever the queue runs dry—meaning with high probability no ultra-dense clusters remain—the algorithm executes a standard random pivot step.
Figure 1: We let C denote a fixed optimal cluster. The horizontal grouping is based upon the number of vertices that belong to the same cluster. The column Edges(u, v, w) gives the sign(existence) of each of the edges (u, v), (v, w), (w, u). OPT, g and cost are all defined based on the signs of the edges, invariant under permutations either within or outside the optimal cluster (but not across).

Datasets

The authors evaluate their method on synthetic noisy planted-partition graphs. They generate 500 graphs, each with $n = 2,500$ vertices randomly partitioned into $k = 25$ ground-truth cliques. Every pair of vertices then has its edge state (present or absent) independently flipped with noise probability $\varepsilon$, sweeping $\varepsilon$ from $10^{-4}$ up to $10^0$ to observe how algorithms handle the transition from clean cliques to pure noise.

Key Insights and Ideas

  • Complementary Blind Spots: Paradoxically, the classic pivot algorithm performs worst on nearly perfect, disjoint cliques (say, a complete graph missing a tiny matching)—if it picks a pivot missing just one internal edge, it shears that vertex away from everyone else. Conversely, atom-finding algorithms thrive on near-cliques, but fail in noisy graphs by leaving everything as isolated singletons. Combining them neutralizes both weaknesses.
  • No Atoms Means Better Pivots: Using a refined triangle-charging scheme (g in the table above), the authors prove that the pivot algorithm cannot hit its worst-case factor of 3 unless atoms exist in the graph. Without $\varepsilon^2$-good-on-average clusters, a pivot step is strictly better than 3-approximate.
  • Standalone Preprocessing: Their probabilistic boundary-rounding technique extracts an $\varepsilon'$-good atom within a $(2 + O(\varepsilon'))$-approximation of optimal cost decrease, offering a clean, general-purpose preprocessing tool for correlation clustering.

Key Results

  • Theoretical Guarantee: atom-pivot achieves an expected 2.9995-approximation in $O(m \log n)$ time. While 2.9995 is a modest numerical shave off 3, its real triumph is structural: breaking the classic combinatorial barrier in near-linear time without touching heavy LP machinery.
  • Empirical Smoothness: On synthetic benchmarks, atom-pivot gets the best of both worlds. At low noise ($\varepsilon < 5 \cdot 10^{-3}$), both atom and atom-pivot hug the ground-truth lower bound, vastly outperforming standard pivot. Around $\varepsilon \approx 5 \cdot 10^{-3}$, pure atom hits a sharp phase transition where its disagreement cost skyrockets, whereas atom-pivot degrades more gracefully and smoothly converges to the robust performance of standard pivot in high-noise regimes ($\varepsilon > 10^{-2}$).

Limitations and Future Work

  • The authors note an unexplained empirical quirk during the phase transition ($\varepsilon \approx 5 \cdot 10^{-3}$ to $10^{-2}$): pure atom sees its cost spike slightly earlier than atom-pivot even though both share the same atom-detection parameterization, though they hypothesize this is because pivoting gracefully catches missed clusters rather than stranding them as singletons.
  • Beyond synthetic graphs, testing on large real-world network benchmarks is not explored in this paper, and tightening the theoretical constant further below 2.9995 via combinatorial means remains an open frontier.

Summary updated

Abstract

Correlation clustering seeks a partitioning of the vertices of a graph that minimizes the number of disagreements: edges between different clusters and non-edges within the same cluster. The classic *pivot-based correlation clustering* algorithm of Ailon, Charikar, and Chawla [JACM'08] achieves a factor-$3$ approximation. However, known worst-case examples attaining this bound rely on highly structured instances with exceptionally strong clusters, such as complete graphs minus a matching. In this work, we show that such worst-case behavior is inherently tied to these highly clique-like substructures. Building on the notion of *atoms* introduced by Cohen-Addad, Lattanzi, Mitrovic, Norouzi-Fard, Parotsidis, and Tarnawski [FOCS'23] — subsets of vertices that cannot be separated in any optimal clustering — we prove that the approximation ratio of $3$ can only be realized when the pivot algorithm makes errors on such atoms. Motivated by this insight, we propose a modified pivot algorithm that removes atoms prior to each pivot step. We prove that this yields an improved approximation ratio of $2.9995$ in expectation. Additionally, we evaluate our algorithm on synthetic datasets with varying amount of noise, demonstrating consistent empirical improvements over both the classic pivot algorithm and existing methods for identifying atoms.
BibTeX
@inproceedings{lolck2026atoms,
  author = {David Rasmussen Lolck and Mikkel Thorup and Shuyi Yan},
  title = {{Atoms and Pivot Based Correlation Clustering}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=LICZTK9DS7},
}
Figure