Abstract: The increasing needs of clustering massive datasets and the high cost of running clustering algorithms poses difficult problems for users. In this context it is important to determine if a data set is clusterable, that is, it may be partitioned efficiently into well-differentiated groups containing similar objects. We approach data clusterability from an ultrametric-based perspective. A novel approach to determine the ultrametricity of a dataset is proposed via a special type of matrix product, which allows us to evaluate the clusterability of the dataset. Furthermore, we show that by applying our technique to a dissimilarity space will generate the sub-dominant ultrametric of the dissimilarity.
Introduction
Clustering is a fundamental tool for exploratory data analysis, yet it is often computationally expensive. Before applying complex algorithms to massive datasets, it is critical to ask: does the data actually possess a clusterable structure? Many datasets lack meaningful groupings, and running algorithms like k-means on such data can produce arbitrary and misleading results. In their research, Dan Simovici and Kaixun Hua propose a robust, matrix-based formalization of clusterability that leverages the mathematical properties of ultrametric spaces.
Methodology: Ultrametricity and the Min-Max Product
The core of this approach lies in the relationship between clustering and ultrametrics. In a standard metric space, the triangle inequality holds: $d(x, y) \le d(x, z) + d(z, y)$. However, an ultrametric space satisfies a much stronger condition: $d(x, y) \le \max\{d(x, z), d(z, y)\}$. This "strong" triangle inequality implies that every triangle is isosceles and any two spheres are either disjoint or identical, making ultrametricity the mathematical "gold standard" for perfect hierarchical clustering.
To measure how close a dataset is to this ideal, the authors introduce a specialized "min-max" matrix product. For a dissimilarity matrix $A$, the product is defined as $c_{ij} = \min\{\max\{a_{ik}, b_{kj}\} \mid 1 \le k \le n\}$.
When a dissimilarity matrix is repeatedly multiplied by itself using this product, it eventually stabilizes into a matrix $A^*$ that represents the subdominant ultrametric (the largest ultrametric smaller than the original distances). The number of iterations required to reach this state is defined as the stabilization power ($m(A)$).
The Clusterability Index
The authors define a Clusterability Index ($clust(D)$) as the ratio of the number of points $n$ to the stabilization power $m(A)$. A lower stabilization power indicates that the data is "closer" to an ultrametric structure, resulting in a higher clusterability score. This operation acts as a filter that eliminates redundant distance information, causing the histogram of distances to "collapse" or equalize into fewer, more distinct bars in clusterable data.
Experimental Results
The method was evaluated using classic real-world benchmarks and synthetic lattice data. The results demonstrate a clear threshold for identifying clusterable data.
As shown in the table above, datasets with well-defined structures, such as Iris and Faithful, consistently showed $clust(D) > 5$. In contrast, datasets lacking clear clustering structure, such as USArrests or Cars, yielded values $\le 5$. In synthetic tests, as the "gap" between clusters increased, the stabilization power decreased and the clusterability index rose, confirming that the measure aligns with intuitive notions of group separation.
Conclusion
This ultrametric-based approach provides an elegant way to quantify data structure before committing to expensive clustering operations. While the matrix approach is mathematically robust, future work will need to address the computational complexity of the min-max product for truly massive datasets. Additionally, the authors suggest exploring how high-dimensionality naturally affects ultrametricity, which could have significant implications for big data clustering.
Summary updated