A Geometric Approach to $k$-means
Jiazhen Hong, Wei Qian, Yudong Chen, Yuqian Zhang
TL;DR
This work tackles the nonconvexity of the $k$-means objective by exploiting the geometric structure of local minima. It introduces Fission-Fusion $k$-means (FFkm), a framework that detects mis-specified clusters and applies non-local fission and fusion steps to escape bad locals, interleaved with Lloyd updates. Theoretical results show recovery of ground-truth centers in $O(k)$ iterations under a stochastic ball model with sufficient separation, contrasting Lloyd’s exponential dependence on random initializations. Empirically, FFkm demonstrates robust performance across synthetic benchmarks and real-world tasks such as color quantization, often outperforming standard Lloyd’s algorithm and several modern alternatives, and even handling mis-specification of the number of clusters. The approach unifies and clarifies the efficacy of various heuristic improvements, offering a flexible toolkit for improving $k$-means in diverse data regimes.
Abstract
\kmeans clustering is a fundamental problem in many scientific and engineering domains. The optimization problem associated with \kmeans clustering is nonconvex, for which standard algorithms are only guaranteed to find a local optimum. Leveraging the hidden structure of local solutions, we propose a general algorithmic framework for escaping undesirable local solutions and recovering the global solution or the ground truth clustering. This framework consists of iteratively alternating between two steps: (i) detect mis-specified clusters in a local solution, and (ii) improve the local solution by non-local operations. We discuss specific implementation of these steps, and elucidate how the proposed framework unifies many existing variants of \kmeans algorithms through a geometric perspective. We also present two natural variants of the proposed framework, where the initial number of clusters may be over- or under-specified. We provide theoretical justifications and extensive experiments to demonstrate the efficacy of the proposed approach.
