Cluster Stability for Finite Samples

Ohad Shamir, Naftali TishbyNeurIPS 2007

TL;DR

This paper rescues "cluster stability" from a theoretical crisis. While previous research suggested that stability becomes a useless metric as datasets grow larger, Shamir and Tishby prove that the rate at which a clustering model becomes stable is what actually matters for picking the right number of clusters, ensuring the method remains valid even for massive datasets.

Introduction: The Crisis in Cluster Stability

In unsupervised learning, choosing the "right" number of clusters ($k$) is notoriously difficult. A popular strategy is cluster stability: if you run a clustering algorithm on two different random samples from the same source and get nearly identical results, the clustering is considered "stable" and likely meaningful.

However, a major theoretical bombshell (Ben-David et al., 2006) recently suggested that stability is a flawed tool. They proved that as the sample size ($m$) goes to infinity, almost any clustering model with a unique objective-function minimizer will eventually become perfectly stable. If every choice of $k$ eventually looks stable, how can we use stability to choose between them? This paper aims to bridge the gap between this "asymptotic universal stability" theory and the fact that stability works quite well in practice.

Methods and Theoretical Framework

The authors shift the perspective from absolute stability to generalization. They argue that stability is essentially a measure of how well a clustering model captures the underlying distribution rather than just the specific noise in a finite sample.

Key technical components include:

  • A Bayesian Framework: They use a PAC-Bayesian approach to show that more stable algorithms provide tighter generalization bounds.
  • Convergence Rates (Theorem 2): This is the heart of the paper. They prove that even if two stability measures both head toward zero as $m \to \infty$, we can still distinguish between them with high probability if their rates of convergence differ.
  • Analytical Case Study: They provide a rigorous mathematical proof for a specific scenario—a mixture of three Gaussians—showing that $k=3$ is fundamentally more stable (and converges faster) than $k=2$ or $k=4$.
1D Gaussian mixture case study showing distribution, convergence rates, and failure rates.

Datasets and Empirical Validation

The authors validate their theory using both synthetic and real-world data to ensure their theoretical claims hold up in practice:

  • Synthetic Gaussian Mixtures: 1D and 2D distributions with varying degrees of separation between clusters.
  • Segmented Rings: A classic non-linear clustering challenge used to test spectral clustering.
  • Phoneme Dataset: A real-world dataset consisting of 4,500 log-periodograms of five different English phonemes, projected into 3D using PCA.
Empirical results on 2D Gaussian mixtures, segmented rings, and the Phoneme dataset.

Key Insights

  • It’s the Rate, Not the Destination: The "aha moment" is realizing that while all models eventually become stable, "good" models (the correct $k$) become stable much faster than "bad" ones.
  • Stability as Generalization: By linking stability to learning theory, the authors provide a principled reason why stable models are better: they are less likely to be artifacts of a specific sample.
  • Scaling Matters: They suggest that by appropriately scaling stability measures (e.g., multiplying by $\sqrt{m}$), the metric becomes insensitive to sample size, allowing for consistent model selection across different scales of data.
  • The "Universal Stability" Myth: The authors argue that the previous negative results were technically correct but practically irrelevant because they ignored the finite-sample behavior where the real "work" of model selection happens.

Key Results

  • Theoretical Guarantee (Theorem 3): Proves that for their Gaussian mixture model, the probability of picking the wrong number of clusters decreases exponentially with $\sqrt{m}$.
  • Empirical Consistency: In experiments with sample sizes ranging from $2^5$ to $2^{22}$ (over 4 million points), the "failure rate" in picking the correct $k$ did not increase. In fact, for well-separated clusters, the failure rate dropped to zero.
  • Real-world Performance: On the Phoneme dataset, the stability-based algorithm correctly identified the most stable models, demonstrating that the theory holds up even when the data doesn't perfectly match idealized Gaussian distributions.

Limitations and Future Work

  • Specific Proofs: While the general intuition is broad, the rigorous proofs for specific stability values (Lemma 1) are currently tied to 1D Gaussian mixtures.
  • Generalization of Theory: The authors acknowledge that while they have shown these conditions hold for a "wide class of clustering settings," deriving a universal theorem that covers every possible clustering algorithm and distribution is a task for future work.
  • Computational Cost: Calculating stability requires running clustering algorithms multiple times on different subsamples, which can be computationally expensive for very large $m$, even if the theory holds.

Summary updated

BibTeX
@inproceedings{shamir2007cluster,
  author = {Ohad Shamir and Naftali Tishby},
  title = {{Cluster Stability for Finite Samples}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2007},
  url = {https://openreview.net/forum?id=BkZbzKW_-B},
}
Figure