Fast Distributed k-Means with a Small Number of Rounds

Tom Hess, Ron Visbord, Sivan Sabato
1/31/2022
cs.DCcs.LG

Official code: selotape/distributed_k_means (4 stars, Python, last commit 2023-04-28).

Abstract

We propose a new algorithm for k-means clustering in a distributed setting, where the data is distributed across many machines, and a coordinator communicates with these machines to calculate the output clustering. Our algorithm guarantees a cost approximation factor and a number of communication rounds that depend only on the computational capacity of the coordinator.

Show full abstract

Moreover, the algorithm includes a built-in stopping mechanism, which allows it to use fewer communication rounds whenever possible. We show both theoretically and empirically that in many natural cases, indeed 1-4 rounds suffice. In comparison with the popular k-means|| algorithm, our approach allows exploiting a larger coordinator capacity to obtain a smaller number of rounds. Our experiments show that the k-means cost obtained by the proposed algorithm is usually better than the cost obtained by k-means||, even when the latter is allowed a larger number of rounds. Moreover, the machine running time in our approach is considerably smaller than that of k-means||. Code for running the algorithm and experiments is available at https://github.com/selotape/distributed_k_means.

View on arXivView PDF

Code Implementations(1)

40Python, ScalaJul 31, 20213 years ago

Similar Papers

Cite this paper

@article{hess2022fast,
  title  = {Fast Distributed k-Means with a Small Number of Rounds},
  author = {Tom Hess and Ron Visbord and Sivan Sabato},
  year   = {2022},
  eprint = {2201.13217},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.13217}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.13217.svg)](https://codeofpaper.com/paper/2201.13217)

Discussion