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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Vardhan, Harsh, Zhu, Heng, Ghosh, Avishek, Mazumdar, Arya
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916756400898048
author Vardhan, Harsh
Zhu, Heng
Ghosh, Avishek
Mazumdar, Arya
author_facet Vardhan, Harsh
Zhu, Heng
Ghosh, Avishek
Mazumdar, Arya
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2505_18420
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LocalKMeans: Convergence of Lloyd's Algorithm with Distributed Local Iterations
Vardhan, Harsh
Zhu, Heng
Ghosh, Avishek
Mazumdar, Arya
Machine Learning
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.
title LocalKMeans: Convergence of Lloyd's Algorithm with Distributed Local Iterations
topic Machine Learning
url https://arxiv.org/abs/2505.18420