A Super Fast K-means for Indexing Vector Embeddings
Leonardo Kuffo, Sven Hepkema, Peter Boncz

TL;DR
SuperKMeans is a novel, highly efficient k-means variant for high-dimensional vector clustering that significantly accelerates clustering processes while maintaining high-quality centroids for similarity search, with practical early termination mechanisms.
Contribution
We introduce SuperKMeans, a fast and efficient k-means variant that reduces data access and computation overhead, and a novel early termination method to improve clustering speed without quality loss.
Findings
SuperKMeans is up to 7x faster than FAISS and Scikit-Learn on CPUs.
SuperKMeans is up to 4x faster than cuVS on GPUs.
The method maintains centroid quality for vector similarity search.
Abstract
We present SuperKMeans: a k-means variant designed for clustering collections of high-dimensional vector embeddings. SuperKMeans' clustering is up to 7x faster than FAISS and Scikit-Learn on modern CPUs and up to 4x faster than cuVS on GPUs (Figure 1), while maintaining the quality of the resulting centroids for vector similarity search tasks. SuperKMeans acceleration comes from reducing data-access and compute overhead by reliably and efficiently pruning dimensions that are not needed to assign a vector to a centroid. Furthermore, we present Early Termination by Recall, a novel mechanism that early-terminates k-means when the quality of the centroids for retrieval tasks stops improving across iterations. In practice, this further reduces runtimes without compromising retrieval quality. We open-source our implementation at https://github.com/cwida/SuperKMeans
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Clustering Algorithms Research · Data Management and Algorithms · Advanced Image and Video Retrieval Techniques
