Abstract
We study the classic $k$-median and $k$-means clustering objectives in the beyond-worst-case scenario. We consider three well-studied notions of structured data that aim at characterizing real-world inputs: Distribution Stability, Spectral Separability, and Perturbation Resilience. We prove structural results showing that inputs satisfying at least one of the conditions are inherently local. Namely, for any such input, any local optimum is close both in term of structure and in term of objective value to the global optima. As a corollary, we obtain that the widely-used Local Search algorithm has strong performance guarantees for both the tasks of recovering the underlying optimal clustering and obtaining a clustering of small cost. This is a significant step toward understanding the success of local search heuristics in clustering applications.
Introduction: The Theory-Practice Gap
In theoretical computer science, $k$-means and $k$-median clustering are fundamental but notoriously difficult problems. They are NP-hard to solve exactly and even hard to approximate within a constant factor in the "worst-case." However, practitioners have successfully used simple heuristics like Local Search and Lloyd’s algorithm for decades with great success. This paper bridges this gap by moving beyond worst-case analysis to ask: What properties of real-world data make these hard problems easy for simple algorithms?
The authors investigate how Local Search behaves on "stable" data—instances where the optimal clustering is clearly superior to any other configuration, a common characteristic of real-world datasets.
The Local Search Algorithm
The paper focuses on a standard Local Search heuristic. Starting with an arbitrary set of $k$ centers, the algorithm iteratively attempts to improve the total cost by swapping out a small number of current centers for new ones.
The algorithm continues as long as a swap exists that reduces the cost by a non-negligible factor. The neighborhood size (the number of centers swapped) is a key parameter that determines both the runtime and the quality of the approximation guarantee.
Defining Data Stability
The authors provide a unified analysis across three distinct notions of data stability that attempt to capture the "well-structured" nature of real-world inputs:
- Distribution Stability: A condition where any clustering with cost close to the optimum must be structurally similar to the optimal clustering.
- Spectral Separability: A geometric condition where cluster centers are far apart relative to the "noise" (spectral norm) of the dataset.
- Perturbation Resilience: A condition where the optimal clustering remains unchanged even if the distances between points are slightly perturbed.
Theoretical Insights: The Locality of Stability
The most striking insight of this work is that stability is not just a global property; it imposes a strict local structure. In stable instances, the "landscape" of the cost function is much smoother, lacking the deep, deceptive local traps found in worst-case mathematical constructions.
As illustrated in Figure 1, the stability conditions force any local center $\mathcal{L}(i)$ to reside within a small region $IR_i$ around the optimal center $c_i^*$. This "locality" ensures that a local optimum is mathematically forced to be close to the global optimum in both cost and structure.
Key Results and Empirical Validation
The theoretical analysis yields several strong guarantees:
- PTAS Guarantees: Local Search is a Polynomial Time Approximation Scheme (PTAS) for distribution-stable and spectrally-separated instances, allowing one to reach within $(1+\epsilon)$ of the global optimum in polynomial time.
- Exact Recovery: For $\gamma$-perturbation resilient instances where $\gamma > 3$, any local optimum is proven to be the unique global optimum.
- Empirical Performance: The authors validated these findings on real-world benchmarks (e.g., Digits, Iris, Abalone) and synthetic Gaussian mixtures. On real data, Local Search with a neighborhood size of just 1 achieved costs within 0.002% to 2% of the estimated optimal value.
Conclusion
This research provides a unified framework for understanding why simple clustering heuristics work. By proving that stability conditions make clustering problems "local," the authors offer a theoretical justification for the success of Local Search in practice. Future work remains to bridge the gap between the large neighborhood sizes required by theoretical proofs and the high performance of size-1 swaps observed in empirical settings.
Summary updated