mlsanityData to 14 Oct 2026

Faster k-Medoids Clustering: Improving the PAM, CLARA, and CLARANS Algorithms

arXiv 1810.05691 ↗First posted 12 Oct 2018cs.LG stat.MLcited by 44

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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 6; 2022: 9; 2023: 9; 2024: 9; 2025: 10; 2026: 1.

44 papers.

Sort:

By area:

  1. 2022Stop using the elbow criterion for k-means and how to choose the number of clusters insteadcited by 25
  2. 2024Generalized Coverage for More Robust Low-Budget Active Learningcited by 16
  3. 2024Data-Efficient Learning via Clustering-Based Sensitivity Sampling: Foundation Models and Beyondcited by 15
  4. 2024Uncertainty Herding: One Active Learning Method for All Label Budgetscited by 15
  5. 2021SPOT: A framework for selection of prototypes using optimal transportcited by 13
  6. 2024Agglomerative Token Clusteringcited by 13
  7. 2025Regist3R: Incremental Registration with Stereo Foundation Modelcited by 9
  8. 2021Transferring Experience from Simulation to the Real World for Precise Pick-And-Place Tasks in Highly Cluttered Scenescited by 6
  9. 2023CARL-G: Clustering-Accelerated Representation Learning on Graphscited by 6
  10. 2023Medoid Silhouette clustering with automatic cluster number selectioncited by 5
  11. 2023Learning Interpretable Queries for Explainable Image Classification with Information Pursuitcited by 5
  12. 2022Clustering by Direct Optimization of the Medoid Silhouettecited by 4
32 more
  1. 2025Random Forest Autoencoders for Guided Representation Learningcited by 4
  2. 2022Tackling Provably Hard Representative Selection via Graph Neural Networkscited by 2
  3. 2022Memory Classifiers: Two-stage Classification for Robustness in Machine Learningcited by 2
  4. 2022No Pattern, No Recognition: a Survey about Reproducibility and Distortion Issues of Text Clustering and Topic Modelingcited by 2
  5. 2023Simple, Scalable and Effective Clustering via One-Dimensional Projectionscited by 2
  6. 2023BanditPAM++: Faster k-medoids Clusteringcited by 2
  7. 2024Flexible ViG: Learning the Self-Saliency for Flexible Object Recognitioncited by 2
  8. 2024Navigating Trade-offs: Policy Summarization for Multi-Objective Reinforcement Learningcited by 2
  9. 2025SynQuE: Estimating Synthetic Dataset Quality Without Annotationscited by 2
  10. 2021Data augmentation and feature selection for automatic model recommendation in computational physicscited by 1
  11. 2022Bayesian nonparametric mixture inconsistency for the number of components: How worried should we be in practice?cited by 1
  12. 2023Generating Multidimensional Clusters With Support Linescited by 1
  13. 2023Data Aggregation for Hierarchical Clusteringcited by 1
  14. 2023An algorithm for forensic toolmark comparisonscited by 1
  15. 2024Automating Weak Label Generation for Data Programming with Clinicians in the Loopcited by 1
  16. 2024A multi-criteria decision support system to evaluate the effectiveness of training courses on citizens' employabilitycited by 1
  17. 2025Diverse Mini-Batch Selection in Reinforcement Learning for Efficient Chemical Exploration in de novo Drug Designcited by 1
  18. 2025Addressing the Cold-Start Problem for Personalized Combination Drug Screeningcited by 1
  19. 2025KM-GPT: An Automated Pipeline for Reconstructing Individual Patient Data from Kaplan-Meier Plotscited by 1
  20. 2021Chaotic-to-Fine Clustering for Unlabeled Plant Disease Imagescited by 0
  21. 2021dFDA-VeD: A Dynamic Future Demand Aware Vehicle Dispatching Systemcited by 0
  22. 2021A local approach to parameter space reduction for regression and classification taskscited by 0
  23. 2022SECLEDS: Sequence Clustering in Evolving Data Streams via Multiple Medoids and Medoid Votingcited by 0
  24. 2022Energy Trees: Regression and Classification With Structured and Mixed-Type Covariatescited by 0
  25. 2022ProtoBandit: Efficient Prototype Selection via Multi-Armed Banditscited by 0
  26. 2023Sparse Partitioning Around Medoidscited by 0
  27. 2024A Scalable k-Medoids Clustering via Whale Optimization Algorithmcited by 0
  28. 2025CoSeP: Complementary Separability Pruning via Class-Separability Clusteringcited by 0
  29. 2025Minimizing the energy depletion in wireless rechargeable sensor networks using bi-level metaheuristic charging schemescited by 0
  30. 2025Forest-Guided Clustering -- Shedding Light into the Random Forest Black Boxcited by 0
  31. 2025An upper bound on the silhouette evaluation metric for clusteringcited by 0
  32. 2026Robust stochastic first order methods in heavy-tailed noise via medoid mini-batch gradient samplingcited by 0