CLAMS: A System for Zero-Shot Model Selection for Clustering

Prabhant Singh, Pieter Gijsbers, Murat Onur Yildirim, Elif Ceren Gok, Joaquin VanschorenarXiv 2024 · DOI

Introduction

Selecting an optimal clustering model is a persistent challenge in unsupervised learning. Unlike supervised tasks where cross-validation against ground-truth labels provides a clear performance metric, clustering lacks universal internal metrics that consistently align with true data structure. This often leads practitioners to rely on default algorithms like k-Means, which may not be suited for the specific geometry of their data.

The CLAMS Framework

The Clustering with Automated Machine Learning System (CLAMS) is designed to automate the selection of end-to-end clustering pipelines. It treats data preprocessing—including scaling, feature extraction, and dimensionality reduction—as integral components of the model search space alongside the clustering algorithms and their hyperparameters.

CLAMS-OT: Zero-Shot Recommendation via Optimal Transport

The core innovation of the system is CLAMS-OT, a zero-shot recommendation engine. Instead of performing an exhaustive search on every new dataset, CLAMS-OT identifies a similar dataset from a pre-computed meta-library and recommends the pipeline that performed best on that "neighbor."

The CLAMS-OT zero-shot recommendation workflow using Optimal Transport and Low-Rank approximations.

To measure dataset similarity, CLAMS-OT utilizes the Gromov-Wasserstein (GW) distance, a tool from Optimal Transport theory capable of comparing datasets with different feature spaces and sample sizes. To ensure scalability, the system employs a Low-Rank Gromov-Wasserstein (GWLR) approximation and Independent Component Analysis (ICA), reducing the computational complexity of similarity calculations from cubic to linear time.

Experimental Evaluation

The system was evaluated using 57 diverse datasets from OpenML, featuring up to 19,000 instances and 10,000 features. The meta-training phase involved an evolutionary search to find optimal pipelines for each library dataset, which were then used for zero-shot recommendations on unseen test data.

Results and Key Insights

CLAMS-OT significantly outperformed standard baseline algorithms. Performance was measured using Adjusted Mutual Information (AMI), and statistical significance was confirmed via Bayesian Wilcoxon signed-rank tests.

Average rank comparison of CLAMS-OT against standard clustering algorithms across 57 datasets.

As shown in the critical difference diagram, CLAMS-OT achieved the lowest (best) average rank compared to popular defaults like k-Means, Birch, and DBSCAN. This demonstrates that geometric similarity under Optimal Transport serves as an effective proxy for algorithm performance, allowing for high-quality model selection without the need for labels or expensive iterative searches.

Limitations and Future Directions

While CLAMS-OT offers a powerful zero-shot capability, its performance is bounded by the diversity of its meta-dataset. Datasets that are extreme outliers relative to the library may receive sub-optimal recommendations. Future work aims to reduce the similarity computation time—currently approximately 30 minutes for large datasets—through techniques like Wasserstein Embedding Networks and more efficient meta-data indexing.

Summary updated

BibTeX
@misc{singh2024clams,
  author = {Prabhant Singh and Pieter Gijsbers and Murat Onur Yildirim and Elif Ceren Gok and Joaquin Vanschoren},
  title = {{CLAMS: A System for Zero-Shot Model Selection for Clustering}},
  year = {2024},
  eprint = {2407.11286},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.11286},
}
Figure