English

Mini-batch $k$-means terminates within $O(d/\epsilon)$ iterations

Machine Learning 2023-04-04 v1 Artificial Intelligence Data Structures and Algorithms

Abstract

We answer the question: "Does local progress (on batches) imply global progress (on the entire dataset) for mini-batch kk-means?". Specifically, we consider mini-batch kk-means which terminates only when the improvement in the quality of the clustering on the sampled batch is below some threshold. Although at first glance it appears that this algorithm might execute forever, we answer the above question in the affirmative and show that if the batch is of size Ω~((d/ϵ)2)\tilde{\Omega}((d/\epsilon)^2), it must terminate within O(d/ϵ)O(d/\epsilon) iterations with high probability, where dd is the dimension of the input, and ϵ\epsilon is a threshold parameter for termination. This is true regardless of how the centers are initialized. When the algorithm is initialized with the kk-means++ initialization scheme, it achieves an approximation ratio of O(logk)O(\log k) (the same as the full-batch version). Finally, we show the applicability of our results to the mini-batch kk-means algorithm implemented in the scikit-learn (sklearn) python library.

Cite

@article{arxiv.2304.00419,
  title  = {Mini-batch $k$-means terminates within $O(d/\epsilon)$ iterations},
  author = {Gregory Schwartzman},
  journal= {arXiv preprint arXiv:2304.00419},
  year   = {2023}
}

Comments

ICLR 2023

R2 v1 2026-06-28T09:44:53.700Z