š¤ AI Summary
Computing the silhouette coefficient exactly requires Ī(n²) distance computations, rendering it infeasible for large-scale datasets, while existing approximation methods lack theoretical error guarantees. This work proposes the first sampling algorithm with a provable additive error bound of O(ε) and high-probability guarantee (1āĪ“) for efficiently estimating both local and global silhouette coefficients. By integrating random sampling with probabilistic analysis, the method yields a constant-round, sublinear-memory distributed implementation suitable for MapReduce and Massively Parallel Computation (MPC) models. Experimental results demonstrate that the approach achieves an optimal trade-off between accuracy and efficiency, enabling effective evaluation of clustering quality on datasets too large for exact computation.
š Abstract
The silhouette is one of the most widely used measures to assess the quality of a $k$-clustering of a dataset of $n$ elements. Its evaluation requires no information beyond the clustering assignment. In addition, the silhouette is extremely easy to interpret, providing a score to measure the quality of a clustering as a whole or for each element. The exact computation of the: (i) silhouette of each element of a dataset; and (ii) the global silhouette of the clustering; require $Ī(n^2)$ distance calculations, under general metrics. The quadratic complexity $Ī(n^2)$ is extremely prohibitive, especially on massive modern datasets. Surprisingly, existing approximate methods using $O(n^2)$ distance calculations are heuristics not offering provable and controllable guarantees on the quality of their results.
We introduce the first rigorous and efficient algorithms to estimate: (i) the (local) silhouette of each element of a dataset; and (ii) the (global) silhouette; of any metric $k$-clustering. Our methods, based on sampling, perform $O(nk\varepsilon^{-2}\ln (nk/Ī“))$ distance computations, and provide estimates with additive error $O(\varepsilon)$ with probability at least $1-Ī“$. That is, parameters $\varepsilon$ and $Ī“$ in $(0,1)$ control the trade-off between accuracy and efficiency. We also introduce a scalable and distributed design of our methods for the MapReduce and Massively Parallel Computing (MPC) frameworks. Our distributed algorithms use a constant number of rounds and sublinear local memory. Finally, we perform extensive experiments against state-of-the-art approaches. The results show that our new techniques yield the best trade-off between accuracy and efficiency for both local and global silhouette estimation. In addition, our methods scale efficiently to massive datasets for which an exact computation of the silhouette is not practical.