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 -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 -medoids clustering, respectively. -medoids clustering has recently grown in popularity due to the discovery of more efficient -medoids algorithms. In particular, recent research has proposed BanditPAM, a randomized -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 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 each iteration. Second, we demonstrate that BanditPAM has additional structure that permits the reuse of information 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 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.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
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
Cited by top-tier papers2
- OneBatchPAM: A Fast and Frugal K-Medoids AlgorithmAntoine de Mathelin, Nicolas Enrique Cecchi, François Deheeger, Mathilde Mougeot et al.AAAI 2025 · 3 citations
- 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
- Global Optimal K-Medoids Clustering of One Million SamplesJiayang Ren, Kaixun Hua, Yankai CaoNeurIPS 2022 · 14 citations
- 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
- MABSplit: Faster Forest Training Using Multi-Armed BanditsMo Tiwari, Ryan Kang, Jaeyong Lee, Chris Piech et al.NeurIPS 2022 · 5 citations
Related papers
- Fast -Means via Data-Aware Grouping and Gap-Optimized Lower BoundXiaogang Huang, Dan Zhuang, Jianbao Chen, Tiefeng Ma et al.ICDE 2026
- Fast and Accurate -means++ via Rejection SamplingVincent Cohen-Addad, Silvio Lattanzi, Ashkan Norouzi-Fard, Christian Sohler et al.NeurIPS 2020 · 32 citations
- Improved Guarantees for k-means++ and k-means++ ParallelKonstantin Makarychev, Aravind Reddy, Liren ShanNeurIPS 2020 · 34 citations
- Simple, Scalable and Effective Clustering via One-Dimensional ProjectionsMoses Charikar, Monika Henzinger, Lunjia Hu, Maximilian Vötsch et al.NeurIPS 2023 · 6 citations
- Quantum (Inspired) D2-sampling with ApplicationsPoojan Chetan Shah, Ragesh JaiswalICLR 2025
