Clustering Stable Instances of Euclidean k-means

Aravindan Vijayaraghavan, Abhratanu Dutta, Alex Wang

Introduction

While the $k$-means clustering problem is notoriously NP-hard in the worst case, practitioners routinely find success using simple heuristics like Lloyd's algorithm. This disconnect is often summarized by the "Clustering is Difficult only when it does Not Matter" (CDNM) thesis: if a dataset has a clear, meaningful clustering, it shouldn't be computationally hard to find.

This paper tackles the challenge of formalizing what makes a clustering "meaningful" in Euclidean space. Previous theoretical attempts focused on multiplicative stability, but in the physical world, measurement errors are usually additive (e.g., a sensor is off by $\pm 1$ cm, regardless of the total distance). The authors ask: If an optimal clustering is robust to small additive movements of every point, can we design an algorithm guaranteed to find it?

The Concept of Additive Perturbation Stability

To answer this, the researchers introduce the notion of $\epsilon$-Additive Perturbation Stability ($\epsilon$-APS). An instance is considered stable if moving every point by a small distance $\delta$ (proportional to the distance between cluster means) does not change the optimal $k$-means solution.

Illustration of additive perturbation, where points and means are shifted by a small distance.

Additive stability is a highly natural fit for Euclidean space. While multiplicative stability is scale-invariant, Euclidean distance is not. Additive stability much better captures the "uncertainty" or "noise" inherent in physical measurements and real-world data collection.

Geometric Characterization: The "Cone" Geometry

One of the paper's most striking technical contributions is proving that stable instances must possess a specific "angular separation" property.

The "cone" geometry and margin $\rho$ required for stable instances.

Essentially, points belonging to a cluster must be "well-behaved" relative to the axes connecting cluster means. They must lie within a "cone" pointing toward their cluster mean, creating a clear corridor between different clusters. If a point is too far "sideways" from the line connecting its mean to a rival mean, a small additive nudge could easily push it closer to the rival, violating the stability assumption. For general $k$ clusters, this geometry also implies a necessary margin ($\rho$) between these cone areas.

A Graph-Based Algorithmic Approach

Instead of relying on the iterative refinement used in standard heuristics like Lloyd's algorithm, the authors propose a novel graph-based approach to recover the optimal clustering:

  1. Graph Construction: Build a graph where points are connected by an edge if they are within a specific distance threshold $r$.
  2. Iteration: Iterate through possible values of $r$, which are derived from the pairwise distances present in the dataset.
  3. Component Extraction: Find the $k$ largest connected components in the graph.
  4. Final Assignment: Use the means of these connected components as initial centers to perform a final distance-based assignment of all points.

Robustness to Outliers: The authors also extend this method into a "Robust Algorithm." By pruning low-degree vertices from the graph before finding the connected components, the algorithm can successfully ignore outliers that might otherwise skew the cluster means.

Empirical Validation and Key Results

The authors evaluated their approach on four standard benchmark datasets from the UCI Machine Learning Repository: Wine, Iris, Banknote Authentication, and Letter Recognition. They tested both raw and unit-range normalized versions to see how their geometric assumptions held up in practice.

  • Theoretical Guarantees: For $k=2$, the algorithm runs in polynomial time for any $\epsilon$-stable instance. For general $k$, it provably recovers the optimal clustering if the data exhibits the specific margin of separation ($\rho$).
  • Efficiency: The algorithm runs in $O(n^2kd)$ time, making it efficient for most practical, moderately-sized applications.
  • Superior Initialization: The graph-based method provides a significantly better starting point for Lloyd's algorithm than the standard $k$-means++ heuristic. It often reaches the optimal cost in just one additional iteration.
  • Empirical Performance: On the UCI datasets, the proposed algorithm consistently achieved $k$-means costs lower than or equal to $k$-means++. For instance, on the normalized Wine dataset, their algorithm achieved a cost of 48.99, compared to an average of 65.50 for $k$-means++.
  • Real-world Stability: Crucially, the authors found that real-world datasets actually satisfy their geometric "cone" conditions for reasonable values of $\epsilon$ (typically between 0.01 and 0.1), confirming that their theoretical model aligns well with reality.

Limitations and Future Work

While the results are promising, the authors note a few limitations. First, for general $k$, the algorithm requires an additional "margin" ($\rho$) between clusters. While common in learning theory, this condition might be stronger than strictly necessary. Second, the $O(n^2)$ factor in the runtime—stemming from checking all pairs of points for the graph threshold $r$—could become a computational bottleneck for truly massive datasets containing millions of points.

Finally, an open question remains: the authors conjecture that for high values of $k$, clustering might remain computationally hard even with additive stability if no additional margin is present. Proving this lower bound is a key task for future research.

Summary updated

BibTeX
@inproceedings{vijayaraghavan2017clustering,
  author = {Aravindan Vijayaraghavan and Abhratanu Dutta and Alex Wang},
  title = {{Clustering Stable Instances of Euclidean k-means}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=B14Erub_br},
}
Figure