Fast k-means Seeding Under The Manifold Hypothesis
Abstract
Lay Summary
Clustering is a fundamental problem in machine learning, where the goal is to divide a dataset into groups so that similar objects end up together. The k-means formulation is the most widely used version of this problem, but it is computationally hard to solve exactly. Most existing algorithms are data oblivious - they provide worst-case guarantees that hold for any input, even pathological ones rarely seen in practice - and ignore the structure of real-world data. In our work, we leverage a well-established observation, the manifold hypothesis, that high-dimensional data in practice tends to lie near a much lower-dimensional surface. We show that when data satisfies this, key geometric properties of the clustering problem (such as how much the cost improves as you use more clusters) follow predictable scaling laws determined by this hidden low dimensionality. We exploit these regularities to design a fast seeding algorithm based on rejection sampling, which efficiently approximates the expensive initialisation step of k-means++ and efficiently finds near-optimal clusterings, achieving new tradeoffs between solution quality and runtime. We validate our assumptions across image, text, and tabular datasets spanning diverse domains, finding strikingly consistent behaviour throughout.