Mini-batch k-means terminates within O(d/ε) iterations
Mini-batch k-means terminates within O(d/ε) iterations
复制标题
DOI:
10.48550/arxiv.2304.00419
复制
发表时间:
2023
期刊:
影响因子:
--
通讯作者:
Gregory Schwartzman
中科院分区:
文献类型:
--
作者:
Gregory Schwartzman
We answer the question: "Does local progress (on batches) imply global progress (on the entire dataset) for mini-batch k-means?". Specifically, we consider minibatch k-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/ε)), it must terminate within O(d/ε) iterations with high probability, where d is the dimension of the input, and ε is a threshold parameter for termination. This is true regardless of how the centers are initialized. When the algorithm is initialized with the k-means++ initialization scheme, it achieves an approximation ratio of O(log k) (the same as the full-batch version). Finally, we show the applicability of our results to the mini-batch k-means algorithm implemented in the scikit-learn (sklearn) python library.