Probabilistically Plausible Counterfactual Explanations with Normalizing Flows

Patryk Wielopolski, Oleksii Furman, Jerzy Stefanowski, Maciej Zięba
5/27/2024
cs.LGcs.AIstat.ME

No confident code implementation found for this paper.

Abstract

We present PPCEF, a novel method for generating probabilistically plausible counterfactual explanations (CFs). PPCEF advances beyond existing methods by combining a probabilistic formulation that leverages the data distribution with the optimization of plausibility within a unified framework. Compared to reference approaches, our method enforces plausibility by directly optimizing the explicit density function without assuming a particular family of parametrized distributions. This ensures CFs are not only valid (i.e., achieve class change) but also align with the underlying data's probability density. For that purpose, our approach leverages normalizing flows as powerful density estimators to capture the complex high-dimensional data distribution. Furthermore, we introduce a novel loss that balances the trade-off between achieving class change and maintaining closeness to the original instance while also incorporating a probabilistic plausibility term. PPCEF's unconstrained formulation allows for efficient gradient-based optimization with batch processing, leading to orders of magnitude faster computation compared to prior methods. Moreover, the unconstrained formulation of PPCEF allows for the seamless integration of future constraints tailored to specific counterfactual properties. Finally, extensive evaluations demonstrate PPCEF's superiority in generating high-quality, probabilistically plausible counterfactual explanations in high-dimensional tabular settings. This makes PPCEF a powerful tool for not only interpreting complex machine learning models but also for improving fairness, accountability, and trust in AI systems.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wielopolski2024probabilistically,
  title  = {Probabilistically Plausible Counterfactual Explanations with Normalizing Flows},
  author = {Patryk Wielopolski and Oleksii Furman and Jerzy Stefanowski and Maciej Zięba},
  year   = {2024},
  eprint = {2405.17640},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.17640v2}
}

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

Discussion