Diffusion Models for Counterfactual Explanations

Guillaume Jeanneret, Loïc Simon, Frédéric Jurie
3/29/2022
cs.CVcs.LG
diffusion-flow

Official code: guillaumejs2403/DiME (30 stars, Python, MIT, PyTorch, last commit 2025-03-12).

Abstract

Counterfactual explanations have shown promising results as a post-hoc framework to make image classifiers more explainable. In this paper, we propose DiME, a method allowing the generation of counterfactual images using the recent diffusion models.

Show full abstract

By leveraging the guided generative diffusion process, our proposed methodology shows how to use the gradients of the target classifier to generate counterfactual explanations of input instances. Further, we analyze current approaches to evaluate spurious correlations and extend the evaluation measurements by proposing a new metric: Correlation Difference. Our experimental validations show that the proposed algorithm surpasses previous State-of-the-Art results on 5 out of 6 metrics on CelebA.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Official Code for the ACCV 2022 paper Diffusion Models for Counterfactual Explanations

307Python, ShellSep 19, 20221 years agoMIT
counterfactual-explanationspytorch

Similar Papers

Cite this paper

@article{jeanneret2022diffusion,
  title  = {Diffusion Models for Counterfactual Explanations},
  author = {Guillaume Jeanneret and Loïc Simon and Frédéric Jurie},
  year   = {2022},
  eprint = {2203.15636},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.15636}
}

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

Discussion