Interpretable Counterfactual Explanations Guided by Prototypes
Arnaud Van Looveren, Janis Klaise
TL;DR
This work introduces a prototype-guided, model-agnostic framework for fast, interpretable counterfactual explanations. By incorporating a prototype loss with encoder- or kd-tree-based class representations and robust handling of categorical variables, the method steers perturbations toward interpretable counterfactuals and removes the gradient-evaluation bottleneck for black-box models. It also provides two instance-level interpretability metrics and demonstrates substantial speedups and improved local interpretability on MNIST and Wisconsin Breast Cancer, with extensions to categorical data via ABDM/MVDM embeddings. The approach is practical for real-world explanations and is released as an open-source library (alibi).
Abstract
We propose a fast, model agnostic method for finding interpretable counterfactual explanations of classifier predictions by using class prototypes. We show that class prototypes, obtained using either an encoder or through class specific k-d trees, significantly speed up the the search for counterfactual instances and result in more interpretable explanations. We introduce two novel metrics to quantitatively evaluate local interpretability at the instance level. We use these metrics to illustrate the effectiveness of our method on an image and tabular dataset, respectively MNIST and Breast Cancer Wisconsin (Diagnostic). The method also eliminates the computational bottleneck that arises because of numerical gradient evaluation for $\textit{black box}$ models.
