Counterfactual Explanations for k-means and Gaussian Clustering
Not on the map. Why?
Abstract (arXiv)
Counterfactuals have been recognized as an effective approach to explain classifier decisions. Nevertheless, they have not yet been considered in the context of clustering. In this work, we propose the use of counterfactuals to explain clustering solutions. First, we present a general definition for counterfactuals for model-based clustering that includes plausibility and feasibility constraints. Then we consider the counterfactual generation problem for k-means and Gaussian clustering assuming Euclidean distance. Our approach takes as input the factual, the target cluster, a binary mask indicating actionable or immutable features and a plausibility factor specifying how far from the cluster boundary the counterfactual should be placed. In the k-means clustering case, analytical mathematical formulas are presented for computing the optimal solution, while in the Gaussian clustering case (assuming full, diagonal, or spherical covariances) our method requires the numerical solution of a nonlinear equation with a single parameter only. We demonstrate the advantages of our approach through illustrative examples and quantitative experimental comparisons.
Key facts. Cited by 3 papers in the map (data through 13 Oct 2026). Builds on 8 of its 13 references that are in the map. First posted on arXiv 17 Jan 2025.
Builds on
8 of 13 references.
References · 8
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,055
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,088
- 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 614
- 2019Interpretable Counterfactual Explanations Guided by Prototypescited by 223
- 2020Counterfactual Explanations and Algorithmic Recourses for Machine Learning: A Reviewcited by 174
- 2021Shallow decision trees for explainable k-means clusteringcited by 15
- 2022Global k-means++: an effective relaxation of the global k-means clustering algorithmcited by 4
- 2024Counterfactual Explanations for Clustering Modelscited by 1
Built on by
Citing papers per year: 2026: 3.
3 papers.