TL;DR
This paper introduces CEREAL, a novel framework for evaluating unsupervised clustering quality using very few labeled data points. CEREAL combines active learning with semi-supervised learning and pseudo-labeling to efficiently estimate clustering metrics like NMI, significantly outperforming existing methods in reducing estimation error.
What Problem Does This Paper Address?
Evaluating the quality of unsupervised clustering is crucial for data analysis, but reliable metrics like Normalized Mutual Information (NMI) typically require a significant amount of labeled data for ground truth. Obtaining these labels is often expensive and time-consuming, creating a bottleneck for exploratory data analysis. Existing few-sample evaluation methods, adapted from classification, struggle with the unique properties of clustering and often rely solely on limited labeled data, leading to biased or inefficient estimations. This paper addresses this gap by proposing a more robust and efficient approach to clustering evaluation with minimal human annotation.
Methods
CEREAL builds upon the active sampling paradigm but introduces several key innovations tailored for clustering evaluation:
- NMI-Based Acquisition Functions: Instead of generic uncertainty measures, CEREAL uses acquisition functions specifically designed to estimate NMI. These functions consider the distinct properties of clustering and the uncertainties from a learned surrogate model, accounting for potential differences in the number of clusters between the test clustering and the reference. Two variants, Soft NMI and Hard NMI, are proposed depending on the output format of the clustering algorithm.
- Semi-Supervised Surrogate Model: The surrogate model, which guides the active sampling process, is trained using both the limited labeled data and the abundant unlabeled data. This leverages techniques from semi-supervised learning, such as FixMatch, to build a more robust and informative model.
- Pseudo-Labeling: The trained semi-supervised surrogate model is used to assign "pseudo-labels" to the unlabeled data. This allows the framework to effectively utilize the entire dataset for a more accurate estimation of the evaluation metric, rather than being limited to the sparsely labeled data.
- Extension to Pairwise Annotations: The framework is extended to handle pairwise annotations (i.e., whether two points belong to the same cluster or not), which can be more intuitive for annotators when the number of clusters is large. This involves adapting the L2C framework.
Datasets
The experiments were conducted on three datasets:
- MNIST: A dataset of handwritten digit images.
- CIFAR-10: A dataset of images of animals and objects.
- Newsgroup: A dataset of text from news articles.
For vision datasets (MNIST and CIFAR-10), images were represented using CLIP embeddings. For the Newsgroup dataset, text was represented using SimCSE embeddings. All representations were then reduced to 128 dimensions using PCA. The ground truth class labels for these datasets served as the reference clustering.
Key Insights and Ideas
- Leveraging Unlabeled Data is Crucial: The combination of semi-supervised learning (FixMatch) and pseudo-labeling is shown to be critical for CEREAL's success. Using either component alone can actually hurt performance, highlighting the synergistic benefit of using unlabeled data effectively.
- NMI-Specific Acquisition Matters: Designing acquisition functions tailored to NMI, rather than generic uncertainty measures, leads to significantly better performance in clustering evaluation. This is because it directly addresses the goal of estimating a specific clustering metric.
- Active Sampling Can Be Biased: Traditional active sampling methods, even those designed for "active testing," can suffer from biases, often underestimating NMI. This leads to higher estimation errors (AEC) compared to methods that are less prone to such biases.
- Robustness Across Settings: CEREAL demonstrates robustness to different clustering algorithms (K-Means, spectral clustering, BIRCH) and evaluation metrics (NMI, AMI, ARI), suggesting its general applicability.
- Pairwise Annotations Offer an Alternative: While requiring more labels than clusterwise annotations, pairwise annotations can still be used to approximate NMI, offering flexibility when cluster-level labeling is difficult.
Key Results
- CEREAL reduces the Area Under the Absolute Error Curve (AEC) by up to 57% compared to the best sampling baseline and up to 65% compared to uniform sampling.
- The framework is robust, showing significant error reduction (up to 83% across clustering algorithms and 75% across evaluation metrics) compared to random sampling.
- CEREAL can effectively estimate metrics like ARI, which is a pairwise evaluation metric.
- When extended to pairwise annotations, CEREAL can approximate NMI, though it requires more labels than clusterwise annotations to achieve similar accuracy.
Limitations and Future Work
- Computational Cost: While CEREAL is sample-efficient, the active sampling pipeline itself can be computationally intensive, especially with large datasets or complex surrogate models.
- Surrogate Model Choice: The performance of CEREAL is influenced by the quality of the surrogate model. The paper uses a standard MLP, but more powerful models could potentially yield further improvements.
- Future Work: The authors suggest exploring more powerful few-shot surrogate models, such as BERT for text or vision transformers for images, to enhance the active learning step. They also propose developing more sophisticated sampling strategies for pairwise annotations to further reduce sample requirements.
Summary updated