Model-Based Counterfactual Explanations Incorporating Feature Space Attributes for Tabular Data

Yuta Sumiya, Hayaru shouno
4/20/2024
cs.LG

Official code: sumugit/FastDCFlow (2 stars, last commit 2025-11-18).

Abstract

Machine-learning models, which are known to accurately predict patterns from large datasets, are crucial in decision making. Consequently, counterfactual explanations-methods explaining predictions by introducing input perturbations-have become prominent. These perturbations often suggest ways to alter the predictions, leading to actionable recommendations. However, the current techniques require resolving the optimization problems for each input change, rendering them computationally expensive. In addition, traditional encoding methods inadequately address the perturbations of categorical variables in tabular data. Thus, this study propose FastDCFlow, an efficient counterfactual explanation method using normalizing flows. The proposed method captures complex data distributions, learns meaningful latent spaces that retain proximity, and improves predictions. For categorical variables, we employed TargetEncoding, which respects ordinal relationships and includes perturbation costs. The proposed method outperformed existing methods in multiple metrics, striking a balance between trade offs for counterfactual explanations. The source code is available in the following repository: https://github.com/sumugit/FastDCFlow.

View on arXivView PDF

Code Implementations(1)

sumugit/FastDCFlowOfficial100%

This repository is related to our paper titled "FastDCFlow: Fast and Diverse Counterfactual Explanations Using Normalizing Flows"

20R, ShellSep 6, 202311 months ago

Similar Papers

Cite this paper

@article{sumiya2024modelbased,
  title  = {Model-Based Counterfactual Explanations Incorporating Feature Space Attributes for Tabular Data},
  author = {Yuta Sumiya and Hayaru shouno},
  year   = {2024},
  eprint = {2404.13224},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.13224v1}
}

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

Discussion