LocalKMeans: Convergence of Lloyd's Algorithm with Distributed Local Iterations
Harsh Vardhan, Heng Zhu, Avishek Ghosh, Arya Mazumdar
TL;DR
This work develops LocalKMeans, a distributed Lloyd's algorithm that performs L local Lloyd iterations on each machine before syncing to reduce communication in a mixture of Gaussians setting. By adapting a virtual-iterate analysis to the non-convex Lloyd objective, it proves convergence guarantees for both the 2-cluster and K-cluster cases under suitable initialization and SNR conditions, yielding final misclustering bounds that include exp(-r^2), exp(-n), and d/n dependent terms. The method achieves substantial communication savings (a factor of L) while maintaining competitive clustering performance relative to centralized Lloyd's, at the cost of additional iterations, and demonstrates practical viability on synthetic and real datasets. Overall, the paper advances unsupervised distributed learning by providing rigorous convergence analysis for local-update schemes in clustering and showing tangible speedups in communication-constrained environments.
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.
