Global Counterfactual Directions

Bartlomiej Sobieski, Przemysław Biecek
4/18/2024
cs.LGcs.AIcs.CV

No official code found. Best implementation: sobieskibj/gcd (6 stars, last commit 2024-09-25).

Abstract

Despite increasing progress in development of methods for generating visual counterfactual explanations, especially with the recent rise of Denoising Diffusion Probabilistic Models, previous works consider them as an entirely local technique. In this work, we take the first step at globalizing them. Specifically, we discover that the latent space of Diffusion Autoencoders encodes the inference process of a given classifier in the form of global directions. We propose a novel proxy-based approach that discovers two types of these directions with the use of only single image in an entirely black-box manner. Precisely, g-directions allow for flipping the decision of a given classifier on an entire dataset of images, while h-directions further increase the diversity of explanations. We refer to them in general as Global Counterfactual Directions (GCDs). Moreover, we show that GCDs can be naturally combined with Latent Integrated Gradients resulting in a new black-box attribution method, while simultaneously enhancing the understanding of counterfactual explanations. We validate our approach on existing benchmarks and show that it generalizes to real-world use-cases.

View on arXivView PDF

Code Implementations(1)

sobieskibj/gcdCommunity100%

Official implementation of Global Counterfactual Directions accepted to ECCV 2024.

61PythonJul 8, 20242 years ago

Similar Papers

Cite this paper

@article{sobieski2024global,
  title  = {Global Counterfactual Directions},
  author = {Bartlomiej Sobieski and Przemysław Biecek},
  year   = {2024},
  eprint = {2404.12488},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.12488v3},
  journal = {ECCV 2024 2024}
}

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

Discussion