English

Provably faster randomized and quantum algorithms for $k$-means clustering via uniform sampling

Quantum Physics 2025-10-14 v3 Data Structures and Algorithms Machine Learning

Abstract

The kk-means algorithm (Lloyd's algorithm) is a widely used method for clustering unlabeled data. A key bottleneck of the kk-means algorithm is that each iteration requires time linear in the number of data points, which can be expensive in big data applications. This was improved in recent works proposing quantum and quantum-inspired classical algorithms to approximate the kk-means algorithm locally, in time depending only logarithmically on the number of data points (along with data dependent parameters) [q-means: A quantum algorithm for unsupervised machine learning, Kerenidis, Landman, Luongo, and Prakash, NeurIPS 2019; Do you know what qq-means?, Cornelissen, Doriguello, Luongo, Tang, QTML 2025]. In this work, we describe a simple randomized mini-batch kk-means algorithm and a quantum algorithm inspired by the classical algorithm. We demonstrate that the worst case guarantees of these algorithms can significantly improve upon the bounds for algorithms in prior work. Our improvements are due to a careful use of uniform sampling, which preserves certain symmetries of the kk-means problem that are not preserved in previous algorithms that use data norm-based sampling.

Keywords

Cite

@article{arxiv.2504.20982,
  title  = {Provably faster randomized and quantum algorithms for $k$-means clustering via uniform sampling},
  author = {Tyler Chen and Archan Ray and Akshay Seshadri and Dylan Herman and Bao Bach and Pranav Deshpande and Abhishek Som and Niraj Kumar and Marco Pistoia},
  journal= {arXiv preprint arXiv:2504.20982},
  year   = {2025}
}

Comments

Included a comparison with [Do you know what $q$-means?, Cornelissen, Doriguello, Luongo, Tang, QTML 2025]; added numerical experiments for the classical algorithms; updated theory and fixed typos

R2 v1 2026-06-28T23:15:43.879Z