Learning Model-Agnostic Counterfactual Explanations for Tabular Data

Martin Pawelczyk, Johannes Haug, Klaus Broelemann, Gjergji Kasneci
10/21/2019
cs.LGstat.ML

Official code: MartinPawelczyk/c-chvae (11 stars, last commit 2020-10-22).

Abstract

Counterfactual explanations can be obtained by identifying the smallest change made to a feature vector to qualitatively influence a prediction; for example, from 'loan rejected' to 'awarded' or from 'high risk of cardiovascular disease' to 'low risk'. Previous approaches often emphasized that counterfactuals should be easily interpretable to humans, motivating sparse solutions with few changes to the feature vectors. However, these approaches would not ensure that the produced counterfactuals be proximate (i.e., not local outliers) and connected to regions with substantial data density (i.e., close to correctly classified observations), two requirements known as counterfactual faithfulness. These requirements are fundamental when making suggestions to individuals that are indeed attainable. Our contribution is twofold. On one hand, we suggest to complement the catalogue of counterfactual quality measures [1] using a criterion to quantify the degree of difficulty for a certain counterfactual suggestion. On the other hand, drawing ideas from the manifold learning literature, we develop a framework that generates attainable counterfactuals. We suggest the counterfactual conditional heterogeneous variational autoencoder (C-CHVAE) to identify attainable counterfactuals that lie within regions of high data density.

View on arXivView PDF

Code Implementations(1)

116Python, Jupyter NotebookFeb 3, 20206 years ago

Similar Papers

Cite this paper

@article{pawelczyk2019learning,
  title  = {Learning Model-Agnostic Counterfactual Explanations for Tabular Data},
  author = {Martin Pawelczyk and Johannes Haug and Klaus Broelemann and Gjergji Kasneci},
  year   = {2019},
  eprint = {1910.09398},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.09398}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1910.09398.svg)](https://codeofpaper.com/paper/1910.09398)

Discussion