Proceedings

Exact Acceleration of K-Means++ and K-Means||

Download BibTeX Cite

Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence. Main Track. Pages 2928-2935.

https://doi.org/10.24963/ijcai.2021/403

© 2021 International Joint Conferences on Artificial Intelligence

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.

  1. [Arthur and Vassilvitskii, 2007] David Arthur and Sergei Vassilvitskii. k-means++: The Advantages of Careful Seeding. In ACM-SIAM symposium on Discrete algo- rithms, volume 8, pages 1027-1035, 2007.
  2. [Bachem et al., 2015] Olivier Bachem, Mario Lucic, and An- dreas Krause. Coresets for Nonparametric Estimation -the Case of DP-Means. In ICML, volume 37, pages 209-217, 2015.
  3. [Bachem et al., 2016a] Olivier Bachem, Mario Lucic, Hamed Hassani, and Andreas Krause. Fast and Provably Good Seedings for k-Means. In NeurIPS, pages 55-63. 2016.
  4. [Bachem et al., 2016b] Olivier Bachem, Mario Lucic, S Hamed Hassani, and Andreas Krause. Approximate K- means++ in Sublinear Time. In AAAI, pages 1459-1467, 2016.
  5. [Bachem et al., 2017] Olivier Bachem, Mario Lucic, and An- dreas Krause. Distributed and Provably Good Seedings for k-Means in Constant Rounds. In ICML, volume 70, pages 292-300, 2017.
  6. [Bahmani et al., 2012] Bahman Bahmani, Benjamin Mose- ley, Andrea Vattani, Ravi Kumar, and Sergei Vassilvitskii. Scalable K-means++. VLDB Endowment, 5(7):622-633, mar 2012.
  7. [Beygelzimer et al., 2006] Alina Beygelzimer, S Kakade, and John Langford. Cover trees for nearest neighbor. In ICML, pages 97-104, 2006.
  8. [Bottou and Bengio, 1995] Léon Bottou and Yoshua Bengio. Convergence Properties of the K-Means Algorithms. In NeurIPS, pages 585-592, 1995.
  9. [Curtin et al., 2013] Ryan R. Curtin, William B. March, Parikshit Ram, David V. Anderson, Alexander G. Gray, and Charles L. Isbell. Tree-Independent Dual-Tree Algo- rithms. In ICML, volume 28, pages 1435-1443, 2013.
  10. [Curtin, 2017] Ryan R Curtin. A Dual-Tree Algorithm for Fast k -means Clustering With Large k. In SDM, pages 300-308. jun 2017.
  11. [Ding et al., 2015] Yufei Ding, Yue Zhao, Xipeng Shen, Madanlal Musuvathi, and Todd Mytkowicz. Yinyang K- means: A Drop-in Replacement of the Classic K-means with Consistent Speedup. In ICML, pages 579-587, 2015.
  12. [Dooley and Kale, 2006] Isaac Dooley and Laxmikant Kale. Quantifying the Interference Caused by Subnormal Floating-Point Values. In Proceedings of the Workshop on Operating System Interference in High Performance Ap- plications, sep 2006.
  13. [Efraimidis and Spirakis, 2006] Pavlos S. Efraimidis and Paul G. Spirakis. Weighted random sampling with a reser- voir. Information Processing Letters, 97(5):181-185, mar 2006.
  14. [Elkan, 2003] Charles Elkan. Using the Triangle Inequality to Accelerate k-Means. In ICML, pages 147-153, 2003.
  15. [Fog, 2016] Agner Fog. Instruction tables: Lists of in- struction latencies, throughputs and micro-operation break- downs for Intel, AMD and VIA CPUs. 2016.
  16. [Hamerly, 2010] Greg Hamerly. Making k-means even faster. In SDM, pages 130-140, 2010.
  17. [Izbicki and Shelton, 2015] Mike Izbicki and Christian R Shelton. Faster Cover Trees. In ICML, volume 37, 2015.
  18. [Jegelka et al., 2009] Stefanie Jegelka, Suvrit Sra, and Arindam Banerjee. Approximation Algorithms for Tensor Clustering. In ATL, pages 368-383, 2009.
  19. [Newling and Fleuret, 2016] James Newling and François Fleuret. Fast k-means with accurate bounds. In ICML, pages 936-944, 2016.
  20. [Newling and Fleuret, 2017] James Newling and François Fleuret. K-Medoids For K-Means Seeding. In NeurIPS, pages 5195-5203. 2017.
  21. [Nielsen and Nock, 2015] Frank Nielsen and Richard Nock. Total Jensen divergences: Definition, properties and clus- tering. In ICASSP, pages 2016-2020, apr 2015.
  22. [Nock et al., 2008] Richard Nock, Panu Luosto, and Jyrki Kivinen. Mixed Bregman Clustering with Approximation Guarantees. In ECMLPKDD, pages 154-169, 2008.
  23. [Pelleg and Moore, 1999] Dan Pelleg and Andrew Moore. Accelerating Exact K-means Algorithms with Geometric Reasoning. In KDD, pages 277-281, 1999.
  24. [Phillips, 2002] Steven J. Phillips. Acceleration of K-Means and Related Clustering Algorithms. In Proc. 4th Int. Workshop on Algorithm Engineering and Experiments (ALENEX 2002), pages 166-177, 2002.
  25. [Raff and Nicholas, 2018] Edward Raff and Charles Nicholas. Toward Metric Indexes for Incremental Inser- tion and Querying. arXiv, 2018.
  26. [Raff et al., 2020] Edward Raff, Bobby Filar, and James Holt. Getting Passive Aggressive About False Positives: Patch- ing Deployed Malware Detectors. In 2020 International Conference on Data Mining Workshops (ICDMW), pages 506-515. IEEE, nov 2020.
  27. [Raff, 2017] Edward Raff. JSAT: Java Statistical Analysis Tool, a Library for Machine Learning. JMLR, 18(23):1-5, 2017.
  28. [Ryšavý and Hamerly, 2016] Petr Ryšavý and Greg Hamerly. Geometric methods to accelerate k-means algorithms. In SDM, pages 324-332, jun 2016.
  29. [Sculley, 2010] D. Sculley. Web-scale k-means clustering. In Proceedings of the 19th international conference on World wide web, pages 1177-1178, 2010.
  30. [Si et al., 2017] Si Si, Cho-Jui Hsieh, and Inderjit S Dhillon. Memory Efficient Kernel Approximation. JMLR, 18(20):1-32, 2017.
  31. [Yianilos, 1993] P.N. Yianilos. Data structures and algo- rithms for nearest neighbor search in general metric spaces. In ACM-SIAM Symposium on Discrete algorithms, pages 311-321, 1993.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards