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

Better Guarantees for k-Means and Euclidean k-Median by Primal-Dual Algorithms

Sara Ahmadian, Ashkan Norouzi-Fard, Ola Svensson, Justin Ward

Abstract

This paper presents a significant advancement in clustering theory by improving the approximation guarantees for the $k$-means problem, which had remained stagnant for over a decade. By integrating a novel "lossless" rounding technique with an analysis tailored to Euclidean geometry, the authors reduce the approximation ratio for $k$-means from 9 to approximately 6.357.

Introduction

Clustering is fundamental to data science, with $k$-means being its most prominent variant. Despite its widespread use, $k$-means is NP-hard to solve optimally. For years, the best provable performance was a $(9 + \epsilon)$-approximation guarantee achieved through local search. The difficulty in improvement stems from the $k$-means objective—minimizing the sum of squared Euclidean distances—which does not satisfy the triangle inequality. This property hindered the application of Linear Programming (LP) relaxation techniques that were successful for other clustering problems like $k$-median. The authors bridge this gap by developing a framework that handles the unique challenges of squared distances.

Methodology

The authors utilize a primal-dual framework based on the Jain-Vazirani (JV) algorithm. Their approach involves three critical stages:

  1. Discretization: Converting the continuous problem into a discrete version with minimal accuracy loss by selecting a finite set of candidate centers.
  2. Parameterized Primal-Dual Growth: Modifying the JV algorithm with a parameter $\delta$ to control the aggressiveness of opening cluster centers, specifically optimized for the squared distances of $k$-means.
  3. Lossless Rounding: This core contribution addresses the "bipoint" solution problem. Traditional rounding often loses a factor of 2; the authors developed a method to interpolate between dual solutions to select exactly $k$ centers with negligible loss.
Primal and Dual LP formulations for the k-means problem.

Theoretical Insights

  • Euclidean Geometry as a Tool: The authors leverage the centroid property (the sum of squared distances is minimized at the mean) to bound connection costs during the algorithm's pruning phase, turning the lack of triangle inequality into a manageable geometric constraint.
  • Dual Stability: They introduced a procedure to transform dual solutions iteratively, ensuring stability and allowing for combination without significant loss in the approximation ratio.
  • Integrality Gap: The paper demonstrates that the standard LP relaxation for $k$-means is stronger than previously assumed, with an integrality gap bounded by their new ratio.

Key Results

The paper provides significantly improved approximation guarantees across several fundamental problems:

Problem Previous Best This Paper
Euclidean $k$-Means 9.000 ~6.357
Euclidean $k$-Median 2.675 ~2.633
General Metric $k$-Means 16.000 9.000

Beyond these ratios, the "lossless rounding" technique serves as a general-purpose algorithmic tool potentially applicable to other constrained optimization problems.

Conclusion

While the 6.357 ratio is a major step forward, it remains distant from the known NP-hardness lower bound of 1.0013. Future work involves determining if these tighter LP-based insights can be distilled into simpler, more deployable heuristics that match the efficiency of current local search methods.

Summary updated

BibTeX
@article{ahmadian2020better,
  author = {Sara Ahmadian and Ashkan Norouzi-Fard and Ola Svensson and Justin Ward},
  title = {{Better Guarantees for k-Means and Euclidean k-Median by Primal-Dual Algorithms}},
  journal = {SIAM Journal on Computing},
  year = {2020},
  url = {https://openreview.net/forum?id=WCnhsnNQBkA},
}
Figure