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

Gregory Schwartzman
4/2/2023
cs.LGcs.AIcs.DS

No confident code implementation found for this paper.

Abstract

We answer the question: "Does local progress (on batches) imply global progress (on the entire dataset) for mini-batch $k$-means?". Specifically, we consider mini-batch $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 $\tildeΩ((d/ε)^2)$, 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.

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!

Cite this paper

@article{schwartzman2023minibatch,
  title  = {Mini-batch k-means terminates within $O(d/ε)$ iterations},
  author = {Gregory Schwartzman},
  year   = {2023},
  eprint = {2304.00419},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.00419v1}
}

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

Discussion