K*-Means: A Parameter-free Clustering Algorithm

Clustering is a widely used and powerful machine learning technique, but its effectiveness is often limited by the need to specify the number of clusters, k, or by relying on thresholds that implicitly determine k. We introduce k*-means, a novel clustering algorithm that eliminates the need to set k or any other parameters. Instead, it uses the minimum description length principle to automatically determine the optimal number of clusters, k*, by splitting and merging clusters while also optimising the standard k-means objective. We prove that k*-means is guaranteed to converge and demonstrate experimentally that it significantly outperforms existing methods in scenarios where k is unknown. We also show that it is accurate in estimating k, and that empirically its runtime is competitive with existing methods, and scales well with dataset size.
View on arXiv@article{mahon2025_2505.11904, title={ K*-Means: A Parameter-free Clustering Algorithm }, author={ Louis Mahon and Mirella Lapata }, journal={arXiv preprint arXiv:2505.11904}, year={ 2025 } }