knor: A NUMA-optimized In-memory, Distributed and Semi-external-memory
k-means Library
k-means is one of the most influential and utilized machine learning algorithms. Its computation limits the performance and scalability of many statistical analysis and machine learning tasks. We rethink and optimize k-means in terms of modern NUMA architectures to develop a novel parallelization scheme that delays and minimizes synchronization barriers. The () library has (i) in-memory (), (ii) distributed memory (), and (ii) semi-external memory () modules that radically improve the performance of k-means for varying memory and hardware budgets. boosts performance for single machine datasets by an order of magnitude or more. improves k-means' scalability on a memory budget using SSDs and a minimalistic triangle inequality pruning algorithm; scaling to billions of points on a single machine, using a fraction of the resources that distributed in-memory systems require. retains 's performance characteristics, while scaling in-memory through distributed computation in the cloud. We demonstrate outperforms distributed commercial products like HO, Turi (formerly Dato, GraphLab) and Spark's MLlib by more than an order of magnitude for datasets of to points.
View on arXiv