Exact Acceleration of K-Means++ and K-Means||
Abstract
K-Means++ and its distributed variant K-Means|| have become de facto tools for selecting the initial seeds of K-means. While alternatives have been developed, the effectiveness, ease of implementation,and theoretical grounding of the K-means++ and || methods have made them difficult to "best" from a holistic perspective. We focus on using triangle inequality based pruning methods to accelerate both of these algorithms to yield comparable or better run-time without sacrificing any of the benefits of these approaches. For both algorithms we are able to reduce distance computations by over 500×. For K-means++ this results in up to a 17×speedup in run-time and a551×speedup for K-means||. We achieve this with simple, but carefully chosen, modifications to known techniques which makes it easy to integrate our approach into existing implementations of these algorithms.
BibTeX
@inproceedings{raff2021exact,
author = {Edward Raff},
title = {{Exact Acceleration of K-Means++ and K-Means||}},
booktitle = {International Joint Conference on Artificial Intelligence},
year = {2021},
doi = {10.24963/ijcai.2021/403},
}Ask Althea to put this paper to the test.
| A New Rejection Sampling Approach to k-means++ With Improved Trade-Offs | arXiv · 2025 |
| Fast and Accurate $k$-means++ via Rejection Sampling | arXiv · 2020 |
| A Faster k-means++ Algorithm | arXiv · 2022 |
| LSDS++ : Dual Sampling for Accelerated k-means++ | ICML · 2023 |
| Fast and Provably Good Seedings for k-Means | NeurIPS · 2016 |
| Approximate K-Means++ in Sublinear Time | AAAI · 2016 |