K*-Means: A Parameter-free Clustering Algorithm
Louis Mahon, Mirella Lapata
TL;DR
k$^*$means delivers a parameter-free clustering framework that automatically determines the optimal number of clusters $k^*$ by optimizing a minimum description length (MDL) objective while performing standard $k$-means updates. It extends Lloyd’s algorithm with per-cluster substructures and two mechanisms, maybe-split and maybe-merge, to adapt $k$ during training, and it provides a formal convergence proof. Empirically, it outperforms other methods that do not require a pre-specified $k$ in synthetic scenarios and across diverse real datasets, achieving competitive or near-oracle clustering accuracy while offering faster-than-many-parameter-tuned baselines. The approach scales well with data size and offers a principled, information-theoretic criterion for model selection that avoids manual parameter tuning, making it particularly suitable when the true number of clusters is unknown.
Abstract
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.
