Model Selection for Semi-Supervised Clustering

Mojgan Pourrajabi, Davoud Moulavi, Ricardo J. G. B. Campello, Arthur Zimek, Jörg Sander, Randy GoebelEDBT 2014

Introduction

Semi-supervised clustering leverages small amounts of labeled data—often in the form of "must-link" or "cannot-link" constraints—to guide the discovery of patterns in unlabeled datasets. While this approach significantly improves clustering accuracy, it introduces a new challenge: model selection. Choosing the right parameters, such as the number of clusters ($k$) or density thresholds ($MinPts$), has historically been a manual or heuristic-driven process. This paper introduces CVCP (Cross-Validation for finding Clustering Parameters), a formal framework designed to objectively select optimal clustering parameters while avoiding the pitfalls of information leakage.

The Challenge: Information Leakage and Transitive Closure

In supervised learning, cross-validation is the gold standard for model selection. However, applying it to semi-supervised clustering is non-trivial. Constraints are inherently interconnected; for example, if a model knows that point A must link to B and B must link to C, the knowledge that A must link to C is redundant. This property, known as transitive closure, creates a risk of information leakage. If a "test" constraint can be inferred from the "training" set via transitivity, the evaluation becomes over-optimistic and fails to measure true generalization.

The CVCP Methodology

The authors propose a robust framework that treats the clustering task as a classification problem over constraints. The core of CVCP is a specialized cross-validation loop designed to handle the dependencies of semi-supervised data.

The CVCP framework flowchart, illustrating the process from constraint partitioning to final parameter selection.

1. Constraint Partitioning

To prevent leakage, CVCP employs a graph-based partitioning method. It ensures that constraints in the test fold are independent of those in the training folds. By isolating these components, the framework ensures that the model is evaluated on its ability to generalize to truly unseen relationships.

2. The Evaluation Loop

For every candidate parameter setting:

  • The clustering algorithm is trained using constraints from $n-1$ folds.
  • The resulting partition is treated as a classifier: if two points in a test constraint are in the same cluster, the model "predicts" a must-link relationship.
  • Performance is measured using the F-measure, comparing these predictions against the actual test constraints.

Key Insights: Internal vs. External Correlation

A pivotal finding of this research is that the "internal" performance (how well the model satisfies provided constraints) is a highly reliable proxy for "external" quality (how well the clusters align with the true, hidden ground-truth labels).

Correlation between internal CVCP classification scores and external clustering performance across different parameter settings.

As shown in the experimental results, the internal CVCP scores track the actual clustering performance with high precision (often achieving correlation coefficients $r > 0.9$). This validation confirms that even a small set of constraints can effectively guide the selection of parameters that optimize the global structure of the data.

Experimental Results and Performance

The framework was tested on diverse datasets, including the ALOI image library and various UCI benchmarks (Iris, Wine, Ecoli). The results demonstrated several key advantages:

  • Outperforming Unsupervised Baselines: In tests with the MPCKmeans algorithm, CVCP consistently outperformed the Silhouette Coefficient, the industry standard for unsupervised model selection. This indicates that a small amount of supervision, when used for parameter tuning, is more effective than purely geometric heuristics.
  • Robustness: CVCP proved effective across varying volumes of supervision (from 5% to 20% of labels), showing it does not require massive datasets to provide accurate guidance.
  • Algorithm Sensitivity: The study highlighted that model selection is critical because algorithms are sensitive to data shape. For instance, density-based methods like FOSC-OPTICSDend outperformed centroid-based methods on non-globular datasets like Zyeast.

Conclusion and Future Work

CVCP provides a much-needed formal foundation for parameter selection in semi-supervised clustering. By solving the problem of transitive closure in cross-validation, it allows researchers to move away from "guessing" parameters and toward data-driven optimization. Future research directions include reducing the computational overhead of the $n$-fold loop and integrating CVCP with active learning to identify which specific constraints would most improve the model selection process.

Summary updated

BibTeX
@inproceedings{pourrajabi2014model,
  author = {Mojgan Pourrajabi and Davoud Moulavi and Ricardo J. G. B. Campello and Arthur Zimek and Jörg Sander and Randy Goebel},
  title = {{Model Selection for Semi-Supervised Clustering}},
  booktitle = {EDBT},
  year = {2014},
  doi = {10.5441/002/edbt.2014.31},
}
Figure