NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Efficient Massively Parallel Constant-Factor Approximation Algorithm for the k-Means Problem

Vincent Cohen-Addad, Fabian Kuhn, Zahra ParsaeianarXiv 2025 · DOI

TL;DR

This paper introduces the first constant-factor approximation algorithm for the general $k$-means problem that runs in sub-logarithmic time ($o(\log n)$ rounds) within the Massively Parallel Computation (MPC) model. By combining a novel parallel primal-dual approach with locality-sensitive hashing, the authors achieve a round complexity of $O(\log \log n \cdot \log \log \log n)$ while maintaining high scalability for massive datasets.

What Problem Does This Paper Address?

Clustering is a cornerstone of data mining, and the $k$-means objective—minimizing the sum of squared distances to cluster centers—is its most famous formulation. However, as datasets grow to billions of points, traditional sequential algorithms fail.

The challenge lies in the Massively Parallel Computation (MPC) model, which simulates frameworks like MapReduce or Spark. In this model, data is distributed across many machines, each with limited memory. The goal is to minimize "rounds" of communication. While previous work could solve $k$-means in $O(\log n)$ rounds, or in $O(1)$ rounds for very small $k$, the general case (where $k$ might be large) remained stuck at the logarithmic barrier. This paper aims to break that barrier, providing a fast, high-quality solution for arbitrary $k$-means instances.

Methods

The authors build their solution on a classic foundation: the Jain-Vazirani primal-dual framework. This framework typically solves the "Facility Location" problem and then reduces $k$-means to it. To make this work in a massively parallel setting, they introduce several key innovations:

  1. LSH-Based Metric Approximation: Since machines cannot store all $n^2$ pairwise distances, the authors use Locality-Sensitive Hashing (LSH) to build a sparse graph (a "spanner") that approximates the Euclidean metric. This allows machines to perform neighborhood queries using only $O(n^{1+\epsilon})$ total memory.
  2. Fast Parallel Primal-Dual Updates: In sequential algorithms, dual variables are increased slowly and uniformly. To speed this up, the authors develop a method to "jump" these variables aggressively. They identify "problematic clients"—those whose distance scales might cause the algorithm to overpay for facilities—and handle them separately to maintain feasibility.
  3. MPC Ruling Sets: To select cluster centers without excessive communication, the algorithm employs ruling set techniques. This is a symmetry-breaking method that ensures centers are sufficiently far apart while still covering the dataset effectively.
  4. Lagrangian Multiplier Preserving (LMP) Property: Crucially, their Facility Location algorithm satisfies the LMP property. This mathematical guarantee ensures that the approximation quality isn't lost when transforming the Facility Location solution back into a $k$-means solution.

Datasets

This is a theoretical computer science paper focused on algorithmic complexity and provable guarantees. Consequently, no empirical datasets or benchmarks were used for training or evaluation. The results are established through rigorous mathematical proofs.

Key Insights and Ideas

  • Breaking the Logarithmic Barrier: The "aha moment" is realizing that you don't need to increase dual variables in $O(\log n)$ discrete steps. By carefully analyzing the relationship between client distances and facility radii, you can fix many variables simultaneously.
  • The Power of LMP: Not all Facility Location approximations are created equal. By ensuring the LMP property, the authors provide a bridge that allows parallel progress on Facility Location to translate directly into progress on $k$-means.
  • Robustness to Approximation: The algorithm is designed to be "robust." Even though the LSH-based graph and the parallel updates only provide approximate values for distances and costs, the overall framework is stable enough to still yield a constant-factor final result.

Key Results

  • Round Complexity: The algorithm runs in $O(\log \log n \cdot \log \log \log n)$ rounds. This is nearly exponentially faster than the previous $O(\log n)$ standard.
  • Approximation Quality: It provides an $O(1)$-approximate solution, meaning the clustering cost is within a fixed constant factor of the absolute mathematical optimum.
  • Scalability: The algorithm is "fully scalable," meaning the memory per machine can be as small as $O(n^\sigma)$ for any constant $\sigma > 0$, and the total global memory is only slightly superlinear ($O(n^{1+\epsilon})$).

Limitations and Future Work

  • Global Memory: While the algorithm is efficient, it still requires $O(n^{1+\epsilon})$ total memory. The authors note that achieving a truly linear $O(n)$ global memory footprint remains an open challenge.
  • Constant Factor Size: While the approximation is "constant," the paper focuses on the existence of this constant rather than optimizing its size. In practice, the constant might be large, and future work could focus on tightening it.
  • The $O(1)$ Round Holy Grail: Recently, some "bicriteria" approximations (which use slightly more than $k$ centers) achieved $O(1)$ rounds. Achieving a true $O(1)$-round constant-factor approximation for the standard $k$-means problem (using exactly $k$ centers) is still the ultimate goal in this field.

Summary updated

BibTeX
@misc{cohenaddad2025efficient,
  author = {Vincent Cohen-Addad and Fabian Kuhn and Zahra Parsaeian},
  title = {{An Efficient Massively Parallel Constant-Factor Approximation Algorithm for the k-Means Problem}},
  year = {2025},
  eprint = {2507.14089},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.14089},
}
Figure