mlsanityData to 7 Oct 2026

Fast and Eager k-Medoids Clustering: O(k) Runtime Improvement of the PAM, CLARA, and CLARANS Algorithms

arXiv 2008.05171 ↗First posted 12 Aug 2020cs.LG cs.AI stat.MLcited by 35

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 clustering. In Euclidean geometry the mean-as used in k-means-is a good estimator for the cluster center, but this does not exist 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 and applications. A key issue with PAM is its high run time cost. We propose modifications to the PAM algorithm that 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 relax the choice of swaps performed (while retaining comparable quality), we can further accelerate the algorithm by eagerly performing additional swaps in each iteration. With the substantially faster SWAP, we can now explore faster initialization strategies, because (i) the classic ("BUILD") initialization now becomes the bottleneck, and (ii) our swap is fast enough to compensate for worse starting conditions. We also show how the CLARA and CLARANS algorithms benefit from the proposed modifications. While we do not study the parallelization of our approach in this work, 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,200, we observed a 458x respectively 1191x speedup compared to the original PAM SWAP algorithm, making PAM applicable to larger data sets, and in particular to higher k.

Key facts. Cited by 35 papers in the map (data through 7 Oct 2026). First posted on arXiv 12 Aug 2020.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 5; 2023: 8; 2024: 6; 2025: 8; 2026: 8.

35 papers.

Sort:

  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 15
  3. 2024Uncertainty Herding: One Active Learning Method for All Label Budgetscited by 12
  4. 2024A Rapid Review of Clustering Algorithmscited by 9
  5. 2023Intelligent sampling for surrogate modeling, hyperparameter optimization, and data analysiscited by 6
  6. 2023Medoid Silhouette clustering with automatic cluster number selectioncited by 5
  7. 2022Clustering by Direct Optimization of the Medoid Silhouettecited by 4
  8. 2025Random Forest Autoencoders for Guided Representation Learningcited by 4
  9. 2023A review of clustering models in educational data science towards fairness-aware learningcited by 3
  10. 2022No Pattern, No Recognition: a Survey about Reproducibility and Distortion Issues of Text Clustering and Topic Modelingcited by 2
  11. 2023UniForCE: The Unimodality Forest Method for Clustering and Estimation of the Number of Clusterscited by 2
  12. 2026Investigating Writing Professionals' Relationships with Generative AI: How Combined Perceptions of Rivalry and Collaboration Shape Work Practices and Outcomescited by 2
23 more
  1. 2022Socially Fair Center-based and Linear Subspace Clusteringcited by 1
  2. 2023Min-Max-Jump distance and its applicationscited by 1
  3. 2023Data Aggregation for Hierarchical Clusteringcited by 1
  4. 2023Mitigating Pilot Contamination and Enabling IoT Scalability in Massive MIMO Systemscited by 1
  5. 2024EKM: An exact, polynomial-time algorithm for the K-medoids problemcited by 1
  6. 2024Interactive Counterfactual Exploration of Algorithmic Harms in Recommender Systemscited by 1
  7. 2025Diverse Mini-Batch Selection in Reinforcement Learning for Efficient Chemical Exploration in de novo Drug Designcited by 1
  8. 2025Atlas-based Manifold Representations for Interpretable Riemannian Machine Learningcited by 1
  9. 2026In-Context Learning for the Imputation of Public Opinion Data with Large Language Modelscited by 1
  10. 2026ATLAS: Scaffold-Free Algorithm Synthesis by LLMs via Embedding-Guided Quality-Diversity Searchcited by 1
  11. 2022K-Means for Noise-Insensitive Multi-Dimensional Feature Learningcited by 0
  12. 2023Sparse Partitioning Around Medoidscited by 0
  13. 2024Re-localization acceleration with Medoid Silhouette Clusteringcited by 0
  14. 2025Forest-Guided Clustering -- Shedding Light into the Random Forest Black Boxcited by 0
  15. 2025Dimensionally Reduced Open-World Clustering: DROWCULAcited by 0
  16. 2025Density-Aware Farthest Point Samplingcited by 0
  17. 2025Effectiveness of High-Dimensional Distance Metrics on Solar Flare Time Seriescited by 0
  18. 2025CSMapping: Scalable Crowdsourced Semantic Mapping and Topology Inference for Autonomous Drivingcited by 0
  19. 2026Gaussian mixture models in Hilbert spaces via kernel methodscited by 0
  20. 2026Robust stochastic first order methods in heavy-tailed noise via medoid mini-batch gradient samplingcited by 0
  21. 2026LWM-CDE: A Representation Space for Wireless Data Reasoning and Transferabilitycited by 0
  22. 2026Complementary Attention Head Pruning for Efficient Transformerscited by 0
  23. 2026Scalable and Distributed Silhouette Approximationcited by 0