Algorithm-Agnostic Feature Attributions for Clustering

Christian A. Scholbeck, Henri Funk, Giuseppe Casalicchio

Introduction

Clustering is often considered the "wild west" of machine learning. Unlike supervised learning, which benefits from established interpretability tools like SHAP or LIME, clustering results frequently remain black boxes. Researchers at LMU Munich and the Munich Center for Machine Learning (MCML) have introduced the FACT (Feature Attributions for Clustering) framework to address this gap, providing a standardized, algorithm-agnostic approach to understanding cluster assignments.

The FACT Framework

The FACT framework moves away from common pitfalls such as dimensionality reduction (which obscures original features) or supervised surrogates (which add unnecessary complexity). Instead, it relies on a four-stage process: Sampling, Intervention, Reassignment, and Aggregation.

A critical distinction in this framework is the concept of reassignment versus reclustering. To explain a model, one must observe how the existing cluster boundaries react to data manipulation, rather than re-running the clustering algorithm, which would cause "concept drift" and change the clusters themselves.

Comparison of Supervised Learning (SL) methods and the FACT framework.

SMART and IDEA Methods

FACT introduces two primary tools inspired by supervised learning techniques, mapping them to the unsupervised domain:

  • SMART (Scoring Metric After Permutation): Analogous to Permutation Feature Importance (PFI), SMART shuffles feature values to measure their impact on cluster stability. By utilizing Macro-averaging (Macro-F1), SMART ensures that features defining small, niche clusters are not overlooked, a significant improvement over previous micro-averaged metrics.
  • IDEA (Isolated Effect on Assignment): Inspired by Partial Dependence (PD) and Individual Conditional Expectation (ICE) plots, IDEA visualizes how changing a feature to a constant value shifts the probability (soft label) or certainty (hard label) of cluster membership.

Experimental Validation

The authors validated FACT using both synthetic simulations and the Wisconsin Diagnostic Breast Cancer (WDBC) dataset.

  • Synthetic Data: IDEA plots successfully recovered the underlying marginal densities of the data, demonstrating that the method accurately captures the algorithm's perception of data distribution.
  • WDBC Dataset: SMART identified key "worst-case" cell characteristics driving malignancy clusters. Using only the top four features identified by SMART maintained a high F1 score (0.85), while using the least important features led to a collapse in clustering quality (F1 of 0.33).

Conclusion and Limitations

FACT provides a robust foundation for interpretable clustering by preserving data integrity and remaining algorithm-agnostic. However, it requires an assignment function to handle new data points, which may necessitate nearest-neighbor approximations for transductive algorithms like DBSCAN. Additionally, while FACT explains how a model works, it does not inherently validate the quality of the clusters themselves. Future work may focus on reducing the computational cost of IDEA plots for massive datasets.

Summary updated

BibTeX
@inproceedings{scholbeck2023algorithm,
  author = {Christian A. Scholbeck and Henri Funk and Giuseppe Casalicchio},
  title = {{Algorithm-Agnostic Feature Attributions for Clustering}},
  booktitle = {xAI},
  year = {2023},
  doi = {10.1007/978-3-031-44064-9\_13},
}
Figure