Skip to main content
QUICK REVIEW

[Paper Review] Scalable K-Means++

Bahman Bahmani, Benjamin Moseley|arXiv (Cornell University)|Mar 29, 2012
Data Management and AlgorithmsComputer Science15 citations
TL;DR

This paper proposes k-means||, a scalable, parallel variant of the k-means++ initialization algorithm that reduces the number of sequential passes over data from k to logarithmic or constant passes. By using a multi-round sampling process with probability proportional to squared distance, it achieves a constant-factor approximation to the optimal k-means solution while enabling efficient parallelization, outperforming k-means++ in both sequential and distributed settings on large-scale datasets.

ABSTRACT

Over half a century old and showing no signs of aging, k-means remains one of the most popular data processing algorithms. As is well-known, a proper initialization of k-means is crucial for obtaining a good final solution. The recently proposed k-means++ initialization algorithm achieves this, obtaining an initial set of centers that is provably close to the optimum solution. A major downside of the k-means++ is its inherent sequential nature, which limits its applicability to massive data: one must make k passes over the data to find a good initial set of centers. In this work we show how to drastically reduce the number of passes needed to obtain, in parallel, a good initialization. This is unlike prevailing efforts on parallelizing k-means that have mostly focused on the post-initialization phases of k-means. We prove that our proposed initialization algorithm k-means|| obtains a nearly optimal solution after a logarithmic number of passes, and then show that in practice a constant number of passes suffices. Experimental evaluation on real-world large-scale data demonstrates that k-means|| outperforms k-means++ in both sequential and parallel settings.

Motivation & Objective

  • To address the inherent sequential bottleneck of k-means++ initialization, which requires k passes over data and limits scalability on massive datasets.
  • To design a parallel initialization algorithm that maintains the strong theoretical guarantees of k-means++ while enabling efficient execution in distributed environments like MapReduce.
  • To demonstrate that a constant number of passes suffices in practice to achieve high-quality clustering, even when the theoretical bound is logarithmic.
  • To empirically validate that k-means|| outperforms k-means++ in both convergence speed and solution quality on real-world large-scale datasets.

Proposed method

  • Proposes k-means||, a multi-round sampling algorithm where in each round, multiple centers are selected in parallel based on their contribution to reducing the total k-means cost.
  • Uses a probability distribution proportional to the squared distance from existing centers, adjusted by a global scaling factor to ensure balanced sampling across rounds.
  • Employs a recursive sampling strategy where each round's selection probability depends on the cumulative effect of previous rounds, maintaining theoretical bounds on approximation quality.
  • Introduces a potential function φ′_A to track the expected cost of each optimal cluster A after sampling, using linear programming and dual analysis to bound the expected cost.
  • Applies a non-trivial probabilistic analysis to show that the probability of missing a good center decreases exponentially with the number of rounds, leading to a constant-factor approximation.
  • Uses the power-mean inequality and triangle inequality to bound the expected cost of clusters, leading to a final approximation guarantee of O(1) relative to the optimal solution.

Experimental results

Research questions

  • RQ1Can the sequential k-means++ initialization be parallelized without sacrificing its theoretical approximation guarantees?
  • RQ2What is the minimum number of passes required to achieve a constant-factor approximation to the optimal k-means solution in a parallel setting?
  • RQ3Does a multi-round sampling strategy with parallel center selection outperform the single-pass k-means++ in practice on large-scale data?
  • RQ4Can the theoretical analysis of k-means++ be extended to a parallel framework while preserving the O(log k) or constant approximation factor?

Key findings

  • k-means|| achieves a constant-factor approximation to the optimal k-means solution, with the expected cost bounded by 8φ* + (α + (1−α)/2)φ, where φ* is the optimal cost.
  • The algorithm requires only O(log k) passes in theory to achieve a constant approximation, but in practice, a constant number of passes (e.g., 5–15) suffices for high-quality results.
  • Experimental evaluation on real-world datasets shows that k-means|| outperforms k-means++ in both sequential and parallel execution, with faster convergence and better clustering cost.
  • The probability that any point is missed in the initialization decreases exponentially with the number of rounds, ensuring robust center selection.
  • The analysis proves that the expected cost of each cluster after sampling is bounded by a constant factor of the optimal cost, even when the data is not well-clusterable.
  • k-means|| is embarrassingly parallel and can be easily implemented in distributed frameworks like MapReduce, making it suitable for big data workloads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.