NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Geometric Approach to $k$k-Means Clustering

Jiazhen Hong, Qian Wei, Yudong Chen, Yuqian Zhang · DOI

Abstract: $k$-means clustering is a fundamental problem in many scientific and engineering domains. The optimization problem associated with $k$-means 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 $k$-means 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.

Introduction

$k$-means is one of the most fundamental and widely used clustering formulations in machine learning. The standard approach to solving it is Lloyd's algorithm, which iteratively updates cluster centers and assignments. However, the $k$-means objective function is non-convex, meaning Lloyd's algorithm is highly sensitive to initialization and is only guaranteed to find a local minimum. These local minima can be significantly worse than the true global optimum.

While previous research has focused on better initialization (e.g., $k$-means++) or heuristic fine-tuning, these methods often lack theoretical guarantees for escaping bad local minima once trapped. This paper introduces a systematic way to escape these traps by exploiting their underlying geometric structure.

Geometric Structure of Local Minima

Recent theoretical findings suggest that local minima in $k$-means share a common geometric structure. Mis-specified clusters in a local solution typically fall into two categories:

  1. One-fit-many: A single fitted cluster center is placed in the middle of multiple true clusters.
  2. Many-fit-one: Multiple fitted cluster centers split a single true cluster.
Geometric structure of local minima: 'one-fit-many' (yellow) and 'many-fit-one' (green) clusters.

Because a local minimum must contain both types of errors to maintain the total number of clusters $k$, algorithms can actively hunt for these specific topological signatures to correct them.

The Fission-Fusion $k$-means (FFkm) Framework

To address these geometric flaws, the authors propose the Fission-Fusion $k$-means (FFkm) framework. It iteratively performs the following steps:

  • Step 1 (Detect): Identify a "one-fit-many" cluster and a pair of "many-fit-one" clusters.
  • Step 2 (Fission & Fusion): Split the "one-fit-many" center into two distinct centers (Fission) and merge the two "many-fit-one" centers into a single center (Fusion).
  • Step 3 (Refine): Run the standard Lloyd's algorithm to settle the updated centers into a better local minimum.
The Fission-Fusion process: splitting a 'one-fit-many' center and merging 'many-fit-one' centers to escape local minima.

The framework supports various detection subroutines. Geometry-based methods use spatial metrics like Standard Deviation (SD) or Pairwise Distance (PD) between centers. Objective-based methods evaluate how splitting or merging would change the overall $k$-means objective value.

Experimental Evaluation

The authors evaluated FFkm on synthetic benchmarks, real-world datasets (Iris, HAR, ISOLET, etc.), and image data for color quantization.

Key Results

  • Unbalanced Data Mastery: On challenging unbalanced synthetic datasets, geometry-based FFkm (SD+PD) achieved a 100% success rate in recovering ground truth, while standard Lloyd's and objective-based baselines (like I-$k$-means-+) had a 0% success rate. Objective-based methods often fail here because they prioritize splitting large, dense clusters over finding small, sparse ones.
  • Real-World Performance: Across standard ML benchmarks, FFkm consistently achieved lower Sum of Squared Errors (SSE) than $k$-means++, successfully avoiding local traps. It also demonstrated efficiency, frequently executing faster than competitive baselines.
  • Image Compression: In color quantization tasks, FFkm preserved distinct minority colors (e.g., a small red roof in a landscape) that standard $k$-means typically blended away into muddy local minima.

Conclusion and Future Work

FFkm provides a robust, geometrically-grounded method for escaping the local minima that plague standard clustering algorithms. Under a theoretical Stochastic Ball Model, FFkm is proven to recover ground truth in $O(k)$ iterations, whereas Lloyd's algorithm might require exponential restarts.

Future work includes analyzing FFkm under more general settings, such as clusters with varying shapes and heavy overlaps, and integrating the framework with spectral clustering to leverage dynamic affinity graphs.

Summary updated

BibTeX
@article{hong2025geometric,
  author = {Jiazhen Hong and Qian Wei and Yudong Chen and Yuqian Zhang},
  title = {{A Geometric Approach to $k$k-Means Clustering}},
  journal = {IEEE Transactions on Knowledge and Data Engineering},
  year = {2025},
  doi = {10.1109/tkde.2025.3616858},
}
Figure