Fast and Eager k-Medoids Clustering: O(k) Runtime Improvement of 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 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
Citing papers per year: 2022: 5; 2023: 8; 2024: 6; 2025: 8; 2026: 8.
35 papers.
Sort:
- 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 15
- 2024Uncertainty Herding: One Active Learning Method for All Label Budgetscited by 12
- 2024A Rapid Review of Clustering Algorithmscited by 9
- 2023Intelligent sampling for surrogate modeling, hyperparameter optimization, and data analysiscited by 6
- 2023Medoid Silhouette clustering with automatic cluster number selectioncited by 5
- 2022Clustering by Direct Optimization of the Medoid Silhouettecited by 4
- 2025Random Forest Autoencoders for Guided Representation Learningcited by 4
- 2023A review of clustering models in educational data science towards fairness-aware learningcited by 3
- 2022No Pattern, No Recognition: a Survey about Reproducibility and Distortion Issues of Text Clustering and Topic Modelingcited by 2
- 2023UniForCE: The Unimodality Forest Method for Clustering and Estimation of the Number of Clusterscited by 2
- 2026Investigating Writing Professionals' Relationships with Generative AI: How Combined Perceptions of Rivalry and Collaboration Shape Work Practices and Outcomescited by 2
23 more
- 2022Socially Fair Center-based and Linear Subspace Clusteringcited by 1
- 2023Min-Max-Jump distance and its applicationscited by 1
- 2023Data Aggregation for Hierarchical Clusteringcited by 1
- 2023Mitigating Pilot Contamination and Enabling IoT Scalability in Massive MIMO Systemscited by 1
- 2024EKM: An exact, polynomial-time algorithm for the K-medoids problemcited by 1
- 2024Interactive Counterfactual Exploration of Algorithmic Harms in Recommender Systemscited by 1
- 2025Diverse Mini-Batch Selection in Reinforcement Learning for Efficient Chemical Exploration in de novo Drug Designcited by 1
- 2025Atlas-based Manifold Representations for Interpretable Riemannian Machine Learningcited by 1
- 2026In-Context Learning for the Imputation of Public Opinion Data with Large Language Modelscited by 1
- 2026ATLAS: Scaffold-Free Algorithm Synthesis by LLMs via Embedding-Guided Quality-Diversity Searchcited by 1
- 2022K-Means for Noise-Insensitive Multi-Dimensional Feature Learningcited by 0
- 2023Sparse Partitioning Around Medoidscited by 0
- 2024Re-localization acceleration with Medoid Silhouette Clusteringcited by 0
- 2025Forest-Guided Clustering -- Shedding Light into the Random Forest Black Boxcited by 0
- 2025Dimensionally Reduced Open-World Clustering: DROWCULAcited by 0
- 2025Density-Aware Farthest Point Samplingcited by 0
- 2025Effectiveness of High-Dimensional Distance Metrics on Solar Flare Time Seriescited by 0
- 2025CSMapping: Scalable Crowdsourced Semantic Mapping and Topology Inference for Autonomous Drivingcited by 0
- 2026Gaussian mixture models in Hilbert spaces via kernel methodscited by 0
- 2026Robust stochastic first order methods in heavy-tailed noise via medoid mini-batch gradient samplingcited by 0
- 2026LWM-CDE: A Representation Space for Wireless Data Reasoning and Transferabilitycited by 0
- 2026Complementary Attention Head Pruning for Efficient Transformerscited by 0
- 2026Scalable and Distributed Silhouette Approximationcited by 0
- 2026ATLAS: Scaffold-Free Algorithm Synthesis by LLMs via Embedding-Guided Quality-Diversity Search16 Aug 2026
- 2026Scalable and Distributed Silhouette Approximation2 Jul 2026
- 2026Complementary Attention Head Pruning for Efficient Transformers17 Jun 2026
- 2026In-Context Learning for the Imputation of Public Opinion Data with Large Language Models8 Jun 2026
- 2026LWM-CDE: A Representation Space for Wireless Data Reasoning and Transferability22 May 2026
- 2026Robust stochastic first order methods in heavy-tailed noise via medoid mini-batch gradient sampling8 May 2026
- 2026Gaussian mixture models in Hilbert spaces via kernel methods7 May 2026
- 2026Investigating Writing Professionals' Relationships with Generative AI: How Combined Perceptions of Rivalry and Collaboration Shape Work Practices and Outcomes9 Feb 2026
- 2025CSMapping: Scalable Crowdsourced Semantic Mapping and Topology Inference for Autonomous Driving3 Dec 2025
- 2025Effectiveness of High-Dimensional Distance Metrics on Solar Flare Time Series21 Oct 2025
- 2025Atlas-based Manifold Representations for Interpretable Riemannian Machine Learning20 Oct 2025
- 2025Density-Aware Farthest Point Sampling16 Sep 2025
23 more
- 2025Dimensionally Reduced Open-World Clustering: DROWCULA8 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
- 2025Random Forest Autoencoders for Guided Representation Learning18 Feb 2025
- 2024Uncertainty Herding: One Active Learning Method for All Label Budgets30 Dec 2024
- 2024Interactive Counterfactual Exploration of Algorithmic Harms in Recommender Systems10 Sep 2024
- 2024Re-localization acceleration with Medoid Silhouette Clustering30 Jul 2024
- 2024Generalized Coverage for More Robust Low-Budget Active Learning16 Jul 2024
- 2024EKM: An exact, polynomial-time algorithm for the K-medoids problem16 May 2024
- 2024A Rapid Review of Clustering Algorithms14 Jan 2024
- 2023UniForCE: The Unimodality Forest Method for Clustering and Estimation of the Number of Clusters18 Dec 2023
- 2023Mitigating Pilot Contamination and Enabling IoT Scalability in Massive MIMO Systems5 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
- 2023Intelligent sampling for surrogate modeling, hyperparameter optimization, and data analysis6 Jun 2023
- 2023Min-Max-Jump distance and its applications15 Jan 2023
- 2023A review of clustering models in educational data science towards fairness-aware learning9 Jan 2023
- 2022Stop using the elbow criterion for k-means and how to choose the number of clusters instead23 Dec 2022
- 2022Clustering by Direct Optimization of the Medoid Silhouette26 Sep 2022
- 2022Socially Fair Center-based and Linear Subspace Clustering22 Aug 2022
- 2022No Pattern, No Recognition: a Survey about Reproducibility and Distortion Issues of Text Clustering and Topic Modeling2 Aug 2022
- 2022K-Means for Noise-Insensitive Multi-Dimensional Feature Learning15 Feb 2022
- 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 15
- 2024Uncertainty Herding: One Active Learning Method for All Label Budgetscited by 12
- 2024A Rapid Review of Clustering Algorithmscited by 9
- 2023Intelligent sampling for surrogate modeling, hyperparameter optimization, and data analysiscited by 6
- 2023Medoid Silhouette clustering with automatic cluster number selectioncited by 5
- 2022Clustering by Direct Optimization of the Medoid Silhouettecited by 4
- 2025Random Forest Autoencoders for Guided Representation Learningcited by 4
- 2023A review of clustering models in educational data science towards fairness-aware learningcited by 3
- 2022No Pattern, No Recognition: a Survey about Reproducibility and Distortion Issues of Text Clustering and Topic Modelingcited by 2
- 2023UniForCE: The Unimodality Forest Method for Clustering and Estimation of the Number of Clusterscited by 2
- 2026Investigating Writing Professionals' Relationships with Generative AI: How Combined Perceptions of Rivalry and Collaboration Shape Work Practices and Outcomescited by 2
12 most cited of 35 All 35 (JSON)
- 2026ATLAS: Scaffold-Free Algorithm Synthesis by LLMs via Embedding-Guided Quality-Diversity Search16 Aug 2026
- 2026Scalable and Distributed Silhouette Approximation2 Jul 2026
- 2026Complementary Attention Head Pruning for Efficient Transformers17 Jun 2026
- 2026In-Context Learning for the Imputation of Public Opinion Data with Large Language Models8 Jun 2026
- 2026LWM-CDE: A Representation Space for Wireless Data Reasoning and Transferability22 May 2026
- 2026Robust stochastic first order methods in heavy-tailed noise via medoid mini-batch gradient sampling8 May 2026
- 2026Gaussian mixture models in Hilbert spaces via kernel methods7 May 2026
- 2026Investigating Writing Professionals' Relationships with Generative AI: How Combined Perceptions of Rivalry and Collaboration Shape Work Practices and Outcomes9 Feb 2026
- 2025CSMapping: Scalable Crowdsourced Semantic Mapping and Topology Inference for Autonomous Driving3 Dec 2025
- 2025Effectiveness of High-Dimensional Distance Metrics on Solar Flare Time Series21 Oct 2025
- 2025Atlas-based Manifold Representations for Interpretable Riemannian Machine Learning20 Oct 2025
- 2025Density-Aware Farthest Point Sampling16 Sep 2025
12 newest of 35 All 35 (JSON)