LocalKMeans: Convergence of Lloyd's Algorithm with Distributed Local Iterations

Harsh Vardhan, Heng Zhu, Avishek Ghosh, Arya Mazumdar
5/23/2025
stat.MLcs.LG

No confident code implementation found for this paper.

Abstract

In this paper, we analyze the classical $K$-means alternating-minimization algorithm, also known as Lloyd's algorithm (Lloyd, 1956), for a mixture of Gaussians in a data-distributed setting that incorporates local iteration steps. Assuming unlabeled data distributed across multiple machines, we propose an algorithm, LocalKMeans, that performs Lloyd's algorithm in parallel in the machines by running its iterations on local data, synchronizing only every $L$ of such local steps. We characterize the cost of these local iterations against the non-distributed setting, and show that the price paid for the local steps is a higher required signal-to-noise ratio. While local iterations were theoretically studied in the past for gradient-based learning methods, the analysis of unsupervised learning methods is more involved owing to the presence of latent variables, e.g. cluster identities, than that of an iterative gradient-based algorithm. To obtain our results, we adapt a virtual iterate method to work with a non-convex, non-smooth objective function, in conjunction with a tight statistical analysis of Lloyd steps.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{vardhan2025localkmeans,
  title  = {LocalKMeans: Convergence of Lloyd's Algorithm with Distributed Local Iterations},
  author = {Harsh Vardhan and Heng Zhu and Avishek Ghosh and Arya Mazumdar},
  year   = {2025},
  eprint = {2505.18420},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.18420v1}
}

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/2505.18420.svg)](https://codeofpaper.com/paper/2505.18420)

Discussion