DeCoDEx: Confounder Detector Guidance for Improved Diffusion-based Counterfactual Explanations

Nima Fathi, Amar Kumar, Brennan Nichyporuk, Mohammad Havaei, Tal Arbel
5/15/2024
cs.CV

Official code: NimaFathi/DeCoDEx (3 stars, last commit 2025-01-30).

Abstract

Deep learning classifiers are prone to latching onto dominant confounders present in a dataset rather than on the causal markers associated with the target class, leading to poor generalization and biased predictions. Although explainability via counterfactual image generation has been successful at exposing the problem, bias mitigation strategies that permit accurate explainability in the presence of dominant and diverse artifacts remain unsolved. In this work, we propose the DeCoDEx framework and show how an external, pre-trained binary artifact detector can be leveraged during inference to guide a diffusion-based counterfactual image generator towards accurate explainability. Experiments on the CheXpert dataset, using both synthetic artifacts and real visual artifacts (support devices), show that the proposed method successfully synthesizes the counterfactual images that change the causal pathology markers associated with Pleural Effusion while preserving or ignoring the visual artifacts. Augmentation of ERM and Group-DRO classifiers with the DeCoDEx generated images substantially improves the results across underrepresented groups that are out of distribution for each class. The code is made publicly available at https://github.com/NimaFathi/DeCoDEx.

View on arXivView PDF

Code Implementations(1)

NimaFathi/DeCoDExOfficial100%

Official Github Repository for "Confounder Detector Guidance for Improved Diffusion-based Counterfactual Explanations"

31Shell, PythonFeb 8, 20241 years ago

Similar Papers

Cite this paper

@article{fathi2024decodex,
  title  = {DeCoDEx: Confounder Detector Guidance for Improved Diffusion-based Counterfactual Explanations},
  author = {Nima Fathi and Amar Kumar and Brennan Nichyporuk and Mohammad Havaei and Tal Arbel},
  year   = {2024},
  eprint = {2405.09288},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.09288v1}
}

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

Discussion