Algorithm-Agnostic Interpretations for Clustering

Christian A. Scholbeck, Henri Funk, Giuseppe CasalicchioarXiv 2022 · DOI

Clustering is often described as the "wild west" of machine learning. Unlike supervised learning, which relies on clear labels for guidance, clustering algorithms must find patterns in the dark. While sophisticated tools exist to explain why a neural network classifies an image as a "cat," explaining why a specific data point ended up in "Cluster 3" typically involves interpreting distorted 2D projections like PCA or t-SNE. These methods often strip away the meaning of the original features, leaving researchers with "pretty plots" that lack actionable insight.

In their paper, "Algorithm-Agnostic Interpretations for Clustering," Christian A. Scholbeck, Henri Funk, and Giuseppe Casalicchio propose a suite of tools to bring the clarity of model-agnostic interpretation to unsupervised learning.

The Interpretability Gap

High-dimensional data is notoriously difficult to visualize. The standard approach—dimensionality reduction—destroys data integrity. When axes become complex linear combinations of original features (e.g., "age" mixed with "income"), it becomes impossible to determine which specific variable drove a cluster assignment. While "interpretable clustering" algorithms exist, they often sacrifice performance for transparency. This research addresses the gap: how to interpret the results of any clustering algorithm without losing the meaning of the original features.

A Suite of Agnostic Tools

The authors adapt successful "model-agnostic" techniques from supervised learning to the clustering domain. By treating a trained clustering outcome as a fixed "black box," they observe how assignments change when input features are manipulated.

  1. PFIC (Permutation Feature Importance for Clustering): Measures feature importance by shuffling values and observing how many points "jump" to different clusters.
  2. ICEC (Individual Conditional Expectation for Clustering): Examines a single data point to see how changing one feature alters its probability of belonging to a specific cluster.
  3. PDC (Partial Dependence for Clustering): A global version of ICEC that averages individual effects across the dataset to show the general relationship between a feature and cluster membership.

Crucially, these methods rely on reassigning points to existing clusters rather than reclustering the entire dataset, avoiding the stochastic noise and computational cost of re-running algorithms.

The Importance of Macro-Averaging

In clustering, clusters are rarely uniform in size. Using standard "micro" accuracy to measure feature importance often ignores the features that define small, rare, but potentially vital clusters. The authors demonstrate that Macro F1 scores are essential for a fair interpretation.

PFIC results showing feature importance summarized by macro-averaging and individual class contributions.

As shown in the figure above, summarizing scores by macro-averaging ensures that the importance of features is not overshadowed by the sheer volume of the largest clusters, providing a more balanced view of what defines the entire structure.

Visualizing High-Dimensional Boundaries

PDC and ICEC plots allow researchers to see "decision boundaries" in high-dimensional space. These visualizations reveal the exact thresholds where a feature value causes a point to flip from one cluster to another, effectively mapping the internal logic of the clustering algorithm.

PDC and ICEC visualizations mapping cluster assignments and decision boundaries across feature spaces.

Empirical Validation

The researchers evaluated these methods across simulated and real-world datasets, including the Wisconsin Diagnostic Breast Cancer (WDBC) dataset. Key findings include:

  • Feature Selection: On the WDBC dataset, PFIC identified that dropping the 26 least important features only reduced clustering "accuracy" (relative to ground truth) by 3%, while dropping the 4 most important features caused a 40% drop.
  • Consistency: The methods proved truly algorithm-agnostic, providing consistent interpretations whether the underlying model was k-means or a Gaussian Mixture Model.

Conclusion

By treating clustering as a fixed-model problem, Scholbeck et al. provide a robust framework for understanding unsupervised results. These methods allow for automated feature selection and the identification of complex feature interactions, moving clustering from a "black box" process toward a transparent, interpretable science.

Summary updated

BibTeX
@misc{scholbeck2022algorithm,
  author = {Christian A. Scholbeck and Henri Funk and Giuseppe Casalicchio},
  title = {{Algorithm-Agnostic Interpretations for Clustering}},
  year = {2022},
  eprint = {2209.10578},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.10578},
}
Figure