Stability-Based Model Selection

Tilman Lange, Mikio L. Braun, Volker Roth, Joachim M. Buhmann

Introduction

In supervised learning, cross-validation serves as the gold standard for model assessment. By hiding a portion of the labels, training the model, and evaluating its predictions on the hidden set, we can reliably estimate how well the model generalizes. However, in unsupervised learning (such as clustering), there are no ground-truth labels to hide.

This absence of labels leads to a notorious challenge known as Model Order Selection: determining the "correct" number of clusters ($k$) in a dataset. Existing methods often rely on specific geometric assumptions—such as assuming clusters must be spherical—or lack a solid theoretical link to generalization. This paper introduces a unified framework for model selection based on stability, proposing that a model generalizes well if it produces consistent results across different subsets of the same data. This stability-based measure provides a mathematically grounded way to determine the optimal number of clusters in unsupervised and semi-supervised learning.

The Principle of Stability

The authors propose a core premise: generalization is equivalent to stability. If you split your dataset into two halves and run the exact same clustering algorithm on both, a robust and "good" model should produce nearly identical partitions.

To operationalize this, the authors developed a framework with several key components:

  • The Stability Measure: The framework defines a cost based on the "disagreement" between a labeling function trained on one subset and the labels assigned to another subset. In the supervised case, the authors mathematically prove that this stability measure is an upper bound on the 2-fold cross-validation error, bridging the theoretical gap between supervised and unsupervised learning.
  • The Predictor ($h$): To compare two different subsets in an unsupervised setting, the method uses a "predictor" (such as a nearest-neighbor or nearest-centroid rule) to map the cluster labels from the first set onto the second set. The choice of predictor should logically match the clustering algorithm used (e.g., nearest-centroid for $k$-means).
  • Handling Permutations: Cluster labels are arbitrary across different runs; "Cluster 1" in trial A might be "Cluster 2" in trial B. To resolve this, the authors use the Hungarian Method to find the optimal permutation of labels that minimizes disagreement.
  • Normalization: Because stability naturally increases as the number of clusters ($k$) increases, the score is normalized against a "random predictor." This ensures that different values of $k$ can be compared fairly.

Experimental Validation

The paper evaluates the stability method across three distinct datasets to test its robustness and versatility:

  1. 3 Gaussians (Toy): Three well-separated, bell-shaped point clouds used to verify the method against standard benchmarks.
  2. 3 Rings (Toy): Three concentric ring-shaped clusters. This serves as a "stress test" because the clusters are non-spherical, a geometry that causes traditional methods like the Gap Statistic to fail.
  3. Golub et al. Leukemia Data: A real-world microarray dataset containing gene expression levels from 72 patients with different types of leukemia (AML, B-cell ALL, and T-cell ALL).

Key Results and Superiority on Complex Shapes

The most striking results emerge from the "3 Rings" dataset. Because the stability measure does not rely on geometric assumptions (unlike the Gap Statistic, which assumes a hyper-rectangle null distribution), it only cares about the reproducibility of the clusters.

Stability index comparisons for different datasets and clustering algorithms.

When paired with Path-Based Clustering, the stability measure correctly identified $k=3$ for the concentric rings. Competing methods like the Gap Statistic and Prediction Strength failed entirely, often suggesting $k=1$ because they could not handle the non-spherical geometry. If an inappropriate algorithm like $k$-means is used on the rings, the stability index correctly reflects the algorithm's confusion, minimizing at an incorrect $k=7$.

Clustering solutions corresponding to the stability indices, showing the success of Path-Based clustering on complex shapes.

Beyond toy datasets, the method proved biologically accurate on the Leukemia dataset. The stability measure suggested $k=3$ (matching the three biological subtypes: AML, B-cell ALL, and T-cell ALL) or $k=2$ (matching the broader AML vs. ALL distinction). In contrast, most competing methods over-estimated the number of clusters or failed to provide a clear signal.

Limitations and Future Work

While powerful, the stability-based approach has a few limitations:

  • Computational Cost: The method relies on a resampling scheme that iteratively splits the data. For very large datasets or highly complex clustering algorithms, this can become computationally expensive.
  • Predictor Dependency: The stability score is heavily influenced by the choice of the classification predictor ($h$). A poorly chosen predictor that does not align with the clustering algorithm's logic could lead to unreliable results.
  • Theoretical Bounds: While the authors suggest that estimating stability is feasible if the hypothesis set has a finite VC-dimension, a formal proof for this specific estimation was left for future work.

Ultimately, by treating an algorithm's own output as a pseudo-label and measuring self-consistency, this paper provides a highly flexible, geometry-independent tool for model selection in unsupervised learning.

Summary updated

BibTeX
@inproceedings{lange2002stability,
  author = {Tilman Lange and Mikio L. Braun and Volker Roth and Joachim M. Buhmann},
  title = {{Stability-Based Model Selection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2002},
}
Figure