Causality-based Counterfactual Explanation for Classification Models

Tri Dung Duong, Qian Li, Guandong Xu
5/3/2021
cs.LG

Official code: tridungduong16/MultiObjective-SCM-CounterfactualExplanation (6 stars, Python, last commit 2022-02-15).

Abstract

Counterfactual explanation is one branch of interpretable machine learning that produces a perturbation sample to change the model's original decision. The generated samples can act as a recommendation for end-users to achieve their desired outputs.

Show full abstract

Most of the current counterfactual explanation approaches are the gradient-based method, which can only optimize the differentiable loss functions with continuous variables. Accordingly, the gradient-free methods are proposed to handle the categorical variables, which however have several major limitations: 1) causal relationships among features are typically ignored when generating the counterfactuals, possibly resulting in impractical guidelines for decision-makers; 2) the counterfactual explanation algorithm requires a great deal of effort into parameter tuning for dertermining the optimal weight for each loss functions which must be conducted repeatedly for different datasets and settings. In this work, to address the above limitations, we propose a prototype-based counterfactual explanation framework (ProCE). ProCE is capable of preserving the causal relationship underlying the features of the counterfactual data. In addition, we design a novel gradient-free optimization based on the multi-objective genetic algorithm that generates the counterfactual explanations for the mixed-type of continuous and categorical features. Numerical experiments demonstrate that our method compares favorably with state-of-the-art methods and therefore is applicable to existing prediction models. All the source codes and data are available at \url{https://github.com/tridungduong16/multiobj-scm-cf}.

View on arXivView PDF

Code Implementations(1)

Generating counterfactual samples for machine learning model with SCM and prototypes.

62Python, ShellJan 24, 20214 years ago
counterfactual-explanationsinterpretable-machine-learningmultiobjective-optimization

Similar Papers

Cite this paper

@article{duong2021causalitybased,
  title  = {Causality-based Counterfactual Explanation for Classification Models},
  author = {Tri Dung Duong and Qian Li and Guandong Xu},
  year   = {2021},
  eprint = {2105.00703},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.00703}
}

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/2105.00703.svg)](https://codeofpaper.com/paper/2105.00703)

Discussion