Faster k-Medoids Clustering: Improving the PAM, CLARA, and CLARANS Algorithms
Not on the map. Why?
Abstract (arXiv)
Clustering non-Euclidean data is difficult, and one of the most used algorithms besides hierarchical clustering is the popular algorithm Partitioning Around Medoids (PAM), also simply referred to as k-medoids. In Euclidean geometry the mean-as used in k-means-is a good estimator for the cluster center, but this does not hold for arbitrary dissimilarities. PAM uses the medoid instead, the object with the smallest dissimilarity to all others in the cluster. This notion of centrality can be used with any (dis-)similarity, and thus is of high relevance to many domains such as biology that require the use of Jaccard, Gower, or more complex distances. A key issue with PAM is its high run time cost. We propose modifications to the PAM algorithm to achieve an O(k)-fold speedup in the second SWAP phase of the algorithm, but will still find the same results as the original PAM algorithm. If we slightly relax the choice of swaps performed (at comparable quality), we can further accelerate the algorithm by performing up to k swaps in each iteration. With the substantially faster SWAP, we can now also explore alternative strategies for choosing the initial medoids. We also show how the CLARA and CLARANS algorithms benefit from these modifications. It can easily be combined with earlier approaches to use PAM and CLARA on big data (some of which use PAM as a subroutine, hence can immediately benefit from these improvements), where the performance with high k becomes increasingly important. In experiments on real data with k=100, we observed a 200-fold speedup compared to the original PAM SWAP algorithm, making PAM applicable to larger data sets as long as we can afford to compute a distance matrix, and in particular to higher k (at k=2, the new SWAP was only 1.5 times faster, as the speedup is expected to increase with k).
Key facts. Cited by 44 papers in the map (data through 14 Oct 2026). First posted on arXiv 12 Oct 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 6; 2022: 9; 2023: 9; 2024: 9; 2025: 10; 2026: 1.
44 papers.
Sort:
By area:
- 2022Stop using the elbow criterion for k-means and how to choose the number of clusters insteadcited by 25
- 2024Generalized Coverage for More Robust Low-Budget Active Learningcited by 16
- 2024Data-Efficient Learning via Clustering-Based Sensitivity Sampling: Foundation Models and Beyondcited by 15
- 2024Uncertainty Herding: One Active Learning Method for All Label Budgetscited by 15
- 2021SPOT: A framework for selection of prototypes using optimal transportcited by 13
- 2024Agglomerative Token Clusteringcited by 13
- 2025Regist3R: Incremental Registration with Stereo Foundation Modelcited by 9
- 2021Transferring Experience from Simulation to the Real World for Precise Pick-And-Place Tasks in Highly Cluttered Scenescited by 6
- 2023CARL-G: Clustering-Accelerated Representation Learning on Graphscited by 6
- 2023Medoid Silhouette clustering with automatic cluster number selectioncited by 5
- 2023Learning Interpretable Queries for Explainable Image Classification with Information Pursuitcited by 5
- 2022Clustering by Direct Optimization of the Medoid Silhouettecited by 4
32 more
- 2025Random Forest Autoencoders for Guided Representation Learningcited by 4
- 2022Tackling Provably Hard Representative Selection via Graph Neural Networkscited by 2
- 2022Memory Classifiers: Two-stage Classification for Robustness in Machine Learningcited by 2
- 2022No Pattern, No Recognition: a Survey about Reproducibility and Distortion Issues of Text Clustering and Topic Modelingcited by 2
- 2023Simple, Scalable and Effective Clustering via One-Dimensional Projectionscited by 2
- 2023BanditPAM++: Faster k-medoids Clusteringcited by 2
- 2024Flexible ViG: Learning the Self-Saliency for Flexible Object Recognitioncited by 2
- 2024Navigating Trade-offs: Policy Summarization for Multi-Objective Reinforcement Learningcited by 2
- 2025SynQuE: Estimating Synthetic Dataset Quality Without Annotationscited by 2
- 2021Data augmentation and feature selection for automatic model recommendation in computational physicscited by 1
- 2022Bayesian nonparametric mixture inconsistency for the number of components: How worried should we be in practice?cited by 1
- 2023Generating Multidimensional Clusters With Support Linescited by 1
- 2023Data Aggregation for Hierarchical Clusteringcited by 1
- 2023An algorithm for forensic toolmark comparisonscited by 1
- 2024Automating Weak Label Generation for Data Programming with Clinicians in the Loopcited by 1
- 2024A multi-criteria decision support system to evaluate the effectiveness of training courses on citizens' employabilitycited by 1
- 2025Diverse Mini-Batch Selection in Reinforcement Learning for Efficient Chemical Exploration in de novo Drug Designcited by 1
- 2025Addressing the Cold-Start Problem for Personalized Combination Drug Screeningcited by 1
- 2025KM-GPT: An Automated Pipeline for Reconstructing Individual Patient Data from Kaplan-Meier Plotscited by 1
- 2021Chaotic-to-Fine Clustering for Unlabeled Plant Disease Imagescited by 0
- 2021dFDA-VeD: A Dynamic Future Demand Aware Vehicle Dispatching Systemcited by 0
- 2021A local approach to parameter space reduction for regression and classification taskscited by 0
- 2022SECLEDS: Sequence Clustering in Evolving Data Streams via Multiple Medoids and Medoid Votingcited by 0
- 2022Energy Trees: Regression and Classification With Structured and Mixed-Type Covariatescited by 0
- 2022ProtoBandit: Efficient Prototype Selection via Multi-Armed Banditscited by 0
- 2023Sparse Partitioning Around Medoidscited by 0
- 2024A Scalable k-Medoids Clustering via Whale Optimization Algorithmcited by 0
- 2025CoSeP: Complementary Separability Pruning via Class-Separability Clusteringcited by 0
- 2025Minimizing the energy depletion in wireless rechargeable sensor networks using bi-level metaheuristic charging schemescited by 0
- 2025Forest-Guided Clustering -- Shedding Light into the Random Forest Black Boxcited by 0
- 2025An upper bound on the silhouette evaluation metric for clusteringcited by 0
- 2026Robust stochastic first order methods in heavy-tailed noise via medoid mini-batch gradient samplingcited by 0
- 2026Robust stochastic first order methods in heavy-tailed noise via medoid mini-batch gradient sampling8 May 2026
- 2025SynQuE: Estimating Synthetic Dataset Quality Without Annotations6 Nov 2025
- 2025KM-GPT: An Automated Pipeline for Reconstructing Individual Patient Data from Kaplan-Meier Plots15 Sep 2025
- 2025An upper bound on the silhouette evaluation metric for clustering10 Sep 2025
- 2025Addressing the Cold-Start Problem for Personalized Combination Drug Screening9 Sep 2025
- 2025Forest-Guided Clustering -- Shedding Light into the Random Forest Black Box25 Jul 2025
- 2025Diverse Mini-Batch Selection in Reinforcement Learning for Efficient Chemical Exploration in de novo Drug Design26 Jun 2025
- 2025Minimizing the energy depletion in wireless rechargeable sensor networks using bi-level metaheuristic charging schemes22 May 2025
- 2025CoSeP: Complementary Separability Pruning via Class-Separability Clustering19 May 2025
- 2025Regist3R: Incremental Registration with Stereo Foundation Model16 Apr 2025
- 2025Random Forest Autoencoders for Guided Representation Learning18 Feb 2025
- 2024Uncertainty Herding: One Active Learning Method for All Label Budgets30 Dec 2024
32 more
- 2024A multi-criteria decision support system to evaluate the effectiveness of training courses on citizens' employability2 Dec 2024
- 2024Navigating Trade-offs: Policy Summarization for Multi-Objective Reinforcement Learning7 Nov 2024
- 2024Agglomerative Token Clustering18 Sep 2024
- 2024A Scalable k-Medoids Clustering via Whale Optimization Algorithm30 Aug 2024
- 2024Generalized Coverage for More Robust Low-Budget Active Learning16 Jul 2024
- 2024Automating Weak Label Generation for Data Programming with Clinicians in the Loop10 Jul 2024
- 2024Flexible ViG: Learning the Self-Saliency for Flexible Object Recognition6 Jun 2024
- 2024Data-Efficient Learning via Clustering-Based Sensitivity Sampling: Foundation Models and Beyond27 Feb 2024
- 2023Learning Interpretable Queries for Explainable Image Classification with Information Pursuit16 Dec 2023
- 2023An algorithm for forensic toolmark comparisons19 Nov 2023
- 2023BanditPAM++: Faster k-medoids Clustering28 Oct 2023
- 2023Simple, Scalable and Effective Clustering via One-Dimensional Projections25 Oct 2023
- 2023Medoid Silhouette clustering with automatic cluster number selection7 Sep 2023
- 2023Sparse Partitioning Around Medoids5 Sep 2023
- 2023Data Aggregation for Hierarchical Clustering5 Sep 2023
- 2023CARL-G: Clustering-Accelerated Representation Learning on Graphs12 Jun 2023
- 2023Generating Multidimensional Clusters With Support Lines24 Jan 2023
- 2022Stop using the elbow criterion for k-means and how to choose the number of clusters instead23 Dec 2022
- 2022ProtoBandit: Efficient Prototype Selection via Multi-Armed Bandits4 Oct 2022
- 2022Clustering by Direct Optimization of the Medoid Silhouette26 Sep 2022
- 2022No Pattern, No Recognition: a Survey about Reproducibility and Distortion Issues of Text Clustering and Topic Modeling2 Aug 2022
- 2022Bayesian nonparametric mixture inconsistency for the number of components: How worried should we be in practice?29 Jul 2022
- 2022Energy Trees: Regression and Classification With Structured and Mixed-Type Covariates10 Jul 2022
- 2022SECLEDS: Sequence Clustering in Evolving Data Streams via Multiple Medoids and Medoid Voting24 Jun 2022
- 2022Memory Classifiers: Two-stage Classification for Robustness in Machine Learning10 Jun 2022
- 2022Tackling Provably Hard Representative Selection via Graph Neural Networks20 May 2022
- 2021A local approach to parameter space reduction for regression and classification tasks22 Jul 2021
- 2021dFDA-VeD: A Dynamic Future Demand Aware Vehicle Dispatching System10 Jun 2021
- 2021SPOT: A framework for selection of prototypes using optimal transport18 Mar 2021
- 2021Chaotic-to-Fine Clustering for Unlabeled Plant Disease Images18 Jan 2021
- 2021Transferring Experience from Simulation to the Real World for Precise Pick-And-Place Tasks in Highly Cluttered Scenes12 Jan 2021
- 2021Data augmentation and feature selection for automatic model recommendation in computational physics12 Jan 2021
- 2022Stop using the elbow criterion for k-means and how to choose the number of clusters insteadcited by 25
- 2024Generalized Coverage for More Robust Low-Budget Active Learningcited by 16
- 2024Data-Efficient Learning via Clustering-Based Sensitivity Sampling: Foundation Models and Beyondcited by 15
- 2024Uncertainty Herding: One Active Learning Method for All Label Budgetscited by 15
- 2021SPOT: A framework for selection of prototypes using optimal transportcited by 13
- 2024Agglomerative Token Clusteringcited by 13
- 2025Regist3R: Incremental Registration with Stereo Foundation Modelcited by 9
- 2021Transferring Experience from Simulation to the Real World for Precise Pick-And-Place Tasks in Highly Cluttered Scenescited by 6
- 2023CARL-G: Clustering-Accelerated Representation Learning on Graphscited by 6
- 2023Medoid Silhouette clustering with automatic cluster number selectioncited by 5
- 2023Learning Interpretable Queries for Explainable Image Classification with Information Pursuitcited by 5
- 2022Clustering by Direct Optimization of the Medoid Silhouettecited by 4
12 most cited of 41 All 41 (JSON)
- 2026Robust stochastic first order methods in heavy-tailed noise via medoid mini-batch gradient sampling8 May 2026
- 2025KM-GPT: An Automated Pipeline for Reconstructing Individual Patient Data from Kaplan-Meier Plots15 Sep 2025
- 2025An upper bound on the silhouette evaluation metric for clustering10 Sep 2025
- 2025Addressing the Cold-Start Problem for Personalized Combination Drug Screening9 Sep 2025
- 2025Forest-Guided Clustering -- Shedding Light into the Random Forest Black Box25 Jul 2025
- 2025Minimizing the energy depletion in wireless rechargeable sensor networks using bi-level metaheuristic charging schemes22 May 2025
- 2025CoSeP: Complementary Separability Pruning via Class-Separability Clustering19 May 2025
- 2025Regist3R: Incremental Registration with Stereo Foundation Model16 Apr 2025
- 2025Random Forest Autoencoders for Guided Representation Learning18 Feb 2025
- 2024Uncertainty Herding: One Active Learning Method for All Label Budgets30 Dec 2024
- 2024A multi-criteria decision support system to evaluate the effectiveness of training courses on citizens' employability2 Dec 2024
- 2024Agglomerative Token Clustering18 Sep 2024
12 newest of 41 All 41 (JSON)