Abstract
In computer science theory, clustering problems such as $k$-means are famously NP-hard. However, practitioners routinely apply clustering algorithms to massive datasets with significant success. This paper investigates this discrepancy by formalizing the concept of clusterability—the measure of how "strong" or "conclusive" a dataset's clustering structure is. The authors demonstrate that while clustering is hard in the worst case, datasets with clear, robust structures are computationally easy to partition. This study surveys various definitions of clusterability, analyzes their consistency, and explores the computational complexity of both clustering and evaluating clusterability itself.
Introduction
The gap between the theoretical complexity of clustering and its practical utility suggests that the "hard" cases of NP-hardness are often datasets that lack a meaningful clustering structure to begin with. If a dataset is worth clustering, it likely possesses a geometric structure that algorithms can exploit. This paper seeks to answer four fundamental questions:
- How should clusterability be formally defined?
- Are different definitions of clusterability consistent with one another?
- Does high clusterability reduce the computational complexity of finding an optimal clustering?
- How difficult is it to determine if a dataset is clusterable?
Formalizing Clusterability
The authors analyze clusterability through three primary theoretical lenses, each capturing a different intuition about what makes a "good" cluster:
1. Center Perturbation (Novel Definition)
This measure suggests that a dataset is clusterable if its optimal clustering is robust. Specifically, if slightly moving the cluster centers does not significantly increase the total "loss" or error of the clustering, the dataset is considered clusterable. This definition focuses on the stability of the solution.
2. Separability
Based on the work of Ostrovsky et al., this definition looks at the "drop" in loss when increasing the number of clusters. A dataset is $(k, \epsilon)$-separable if the optimal loss with $k$ clusters is significantly lower than the optimal loss with $k-1$ clusters. If $k$ clusters provide a much better fit than $k-1$, the data is said to have a natural $k$-clustering structure.
3. Worst Pair Ratio (WPR)
A quality-based measure that compares the "split" (the minimum distance between points in different clusters) to the "width" (the maximum distance between points within the same cluster). A high WPR indicates that clusters are compact and well-separated.
Key Insights and Theoretical Results
The "Easy-to-Cluster" Phenomenon
The most significant finding is that for nearly every formal definition of clusterability, "well-clusterable" data is "feasibly clusterable." The authors prove that if a dataset possesses a clear structure, near-optimal clusterings can be found in polynomial time. This implies that the computational barriers of NP-hardness primarily apply to ambiguous or messy data where no clear clustering exists.
Theorem 1 (Center Perturbation): If a dataset is robust to center perturbations, a near-optimal clustering can be found in polynomial time using an algorithm based on sampling subsets of points ($\ell$-sequences).
Theorem 3 (WPR): If the "split" is greater than the "width" ($WPR > 1$), the unique optimal clustering can be identified in $O(n^2 \log n)$ time using a simple single-linkage hierarchical algorithm.
The Inconsistency of Definitions
Surprisingly, the authors find that these intuitive notions of clusterability are pairwise inconsistent. A dataset that is deemed "perfectly clusterable" under the WPR definition might be considered "poorly clusterable" under the Separability definition. This suggests that there is no single "correct" way to define a clusterable dataset; rather, different definitions capture different geometric properties.
The Meta-Hardness of Evaluation
While clustering well-structured data is efficient, the authors identify a "meta-hardness" problem: determining if a dataset is well-structured is usually NP-hard.
- Theorem 10: Determining if a dataset is $(k, \epsilon)$-separable is NP-hard.
- Theorem 11: Determining if a dataset has a specific Variance Ratio is NP-hard.
This creates a paradox where we can easily cluster a dataset if it is clusterable, but we cannot easily verify if it meets the criteria for that efficiency.
Limitations and Future Directions
- Sensitivity to Noise: Measures like the Worst Pair Ratio are extremely fragile. A single outlier can drastically change the WPR, making a clearly structured dataset appear unclusterable.
- Geometric Constraints: The current study focuses primarily on Euclidean space ($\mathbb{R}^m$). While some results may generalize, the specific geometric properties of other metric spaces remain an area for further study.
- Property Testing: The authors suggest that future work should move toward "property testing." Instead of calculating an exact clusterability score, algorithms could ask if a dataset is "close" to being clusterable, which may be computationally more tractable.
Conclusion
This research provides a theoretical foundation for why clustering works in practice despite its theoretical complexity. By proving that structure leads to efficiency, the authors shift the focus from worst-case analysis to the properties of the data itself. However, the inconsistency between definitions and the hardness of evaluating clusterability remain significant challenges for the development of a universal theory of clustering.
Summary updated