Lune

NeurIPS2023Top-tier venue

BanditPAM++: Faster k-medoids Clustering

Mo Tiwari, Ryan Kang, Donghyun Lee, Sebastian Thrun, Ilan Shomorony, Martin J. Zhang

Abstract

Clustering is a fundamental task in data science with wide-ranging applications. In kk-medoids clustering, cluster centers must be actual datapoints and arbitrary distance metrics may be used; these features allow for greater interpretability of the cluster centers and the clustering of exotic objects in kk-medoids clustering, respectively. kk-medoids clustering has recently grown in popularity due to the discovery of more efficient kk-medoids algorithms. In particular, recent research has proposed BanditPAM, a randomized kk-medoids algorithm with state-of-the-art complexity and clustering accuracy. In this paper, we present BanditPAM++, which accelerates BanditPAM via two algorithmic improvements, and is O(k)O(k) faster than BanditPAM in complexity and substantially faster than BanditPAM in wall-clock runtime. First, we demonstrate that BanditPAM has a special structure that allows the reuse of clustering information within\textit{within} each iteration. Second, we demonstrate that BanditPAM has additional structure that permits the reuse of information across\textit{across} different iterations. These observations inspire our proposed algorithm, BanditPAM++, which returns the same clustering solutions as BanditPAM but often several times faster. For example, on the CIFAR10 dataset, BanditPAM++ returns the same results as BanditPAM but runs over 10×\times faster. Finally, we provide a high-performance C++ implementation of BanditPAM++, callable from Python and R, that may be of interest to practitioners at https://github.com/motiwari/BanditPAM. Auxiliary code to reproduce all of our experiments via a one-line script is available at https://github.com/ThrunGroup/BanditPAM_plusplus_experiments.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • OneBatchPAM: A Fast and Frugal K-Medoids Algorithm cites BanditPAM: Almost Linear Time k-Medoids Clustering via Multi-Armed Bandits
  • OneBatchPAM: A Fast and Frugal K-Medoids Algorithm cites Global Optimal K-Medoids Clustering of One Million Samples
  • MABSplit: Faster Forest Training Using Multi-Armed Bandits cites BanditPAM: Almost Linear Time k-Medoids Clustering via Multi-Armed Bandits
  • Fast Local Search Algorithms for Clustering with Adaptive Sampling and Bandit Strategies cites BanditPAM: Almost Linear Time k-Medoids Clustering via Multi-Armed Bandits
  • Fast Local Search Algorithms for Clustering with Adaptive Sampling and Bandit Strategies cites Global Optimal K-Medoids Clustering of One Million Samples
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. OneBatchPAM: A Fast and Frugal K-Medoids AlgorithmAntoine de Mathelin, Nicolas Enrique Cecchi, François Deheeger, Mathilde Mougeot et al.AAAI 2025 · 3 citations
  2. Fast Local Search Algorithms for Clustering with Adaptive Sampling and Bandit StrategiesJunyu Huang, Zhen Zhang, Beirong Cui, Jianxin Wang et al.NeurIPS 2025

Builds on3

  1. Global Optimal K-Medoids Clustering of One Million SamplesJiayang Ren, Kaixun Hua, Yankai CaoNeurIPS 2022 · 14 citations
  2. BanditPAM: Almost Linear Time k-Medoids Clustering via Multi-Armed BanditsMo Tiwari, Martin Jinye Zhang, James Mayclin, Sebastian Thrun et al.NeurIPS 2020 · 13 citations
  3. MABSplit: Faster Forest Training Using Multi-Armed BanditsMo Tiwari, Ryan Kang, Jaeyong Lee, Chris Piech et al.NeurIPS 2022 · 5 citations

Related papers

  1. Fast kk-Means via Data-Aware Grouping and Gap-Optimized Lower BoundXiaogang Huang, Dan Zhuang, Jianbao Chen, Tiefeng Ma et al.ICDE 2026
  2. Fast and Accurate kk-means++ via Rejection SamplingVincent Cohen-Addad, Silvio Lattanzi, Ashkan Norouzi-Fard, Christian Sohler et al.NeurIPS 2020 · 32 citations
  3. Improved Guarantees for k-means++ and k-means++ ParallelKonstantin Makarychev, Aravind Reddy, Liren ShanNeurIPS 2020 · 34 citations
  4. Simple, Scalable and Effective Clustering via One-Dimensional ProjectionsMoses Charikar, Monika Henzinger, Lunjia Hu, Maximilian Vötsch et al.NeurIPS 2023 · 6 citations
  5. Quantum (Inspired) D2-sampling with ApplicationsPoojan Chetan Shah, Ragesh JaiswalICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines