MACE: An Efficient Model-Agnostic Framework for Counterfactual Explanation

Wenzhuo Yang, Jia Li, Caiming Xiong, Steven C. H. Hoi
5/31/2022
cs.AIcs.LG

Official code: salesforce/OmniXAI (975 stars, Jupyter Notebook, BSD-3-Clause, last commit 2026-06-02).

Abstract

Counterfactual explanation is an important Explainable AI technique to explain machine learning predictions. Despite being studied actively, existing optimization-based methods often assume that the underlying machine-learning model is differentiable and treat categorical attributes as continuous ones, which restricts their real-world applications when categorical attributes have many different values or the model is non-differentiable.

Show full abstract

To make counterfactual explanation suitable for real-world applications, we propose a novel framework of Model-Agnostic Counterfactual Explanation (MACE), which adopts a newly designed pipeline that can efficiently handle non-differentiable machine-learning models on a large number of feature values. in our MACE approach, we propose a novel RL-based method for finding good counterfactual examples and a gradient-less descent method for improving proximity. Experiments on public datasets validate the effectiveness with better validity, sparsity and proximity.

View on arXivView PDF

Code Implementations(1)

salesforce/OmniXAIOfficial100%
BSD-3-Clause

OmniXAI: A Library for eXplainable AI

975108Jupyter Notebook, PythonFeb 17, 20226 months agoBSD-3-Clause
explainable-aiexplainable-mlexplanationinterpretable-machine-learningmachine-learning

Similar Papers

Cite this paper

@article{yang2022mace,
  title  = {MACE: An Efficient Model-Agnostic Framework for Counterfactual Explanation},
  author = {Wenzhuo Yang and Jia Li and Caiming Xiong and Steven C. H. Hoi},
  year   = {2022},
  eprint = {2205.15540},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.15540}
}

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

Discussion