The Gaussian Discriminant Variational Autoencoder (GdVAE): A Self-Explainable Model with Counterfactual Explanations

Anselm Haselhoff, Kevin Trelenberg, Fabian Küppers, Jonas Schneider
9/19/2024
cs.CVcs.LG

No official code found. Best implementation: trustinai/gdvaecode (3 stars, Apache-2.0, last commit 2024-09-20).

Abstract

Visual counterfactual explanation (CF) methods modify image concepts, e.g, shape, to change a prediction to a predefined outcome while closely resembling the original query image. Unlike self-explainable models (SEMs) and heatmap techniques, they grant users the ability to examine hypothetical "what-if" scenarios. Previous CF methods either entail post-hoc training, limiting the balance between transparency and CF quality, or demand optimization during inference. To bridge the gap between transparent SEMs and CF methods, we introduce the GdVAE, a self-explainable model based on a conditional variational autoencoder (CVAE), featuring a Gaussian discriminant analysis (GDA) classifier and integrated CF explanations. Full transparency is achieved through a generative classifier that leverages class-specific prototypes for the downstream task and a closed-form solution for CFs in the latent space. The consistency of CFs is improved by regularizing the latent space with the explainer function. Extensive comparisons with existing approaches affirm the effectiveness of our method in producing high-quality CF explanations while preserving transparency. Code and models are public.

View on arXivView PDF

Code Implementations(1)

trustinai/gdvaecodeCommunity100%
Apache-2.0

Official implementation of GdVAE

31Jupyter NotebookJul 6, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{haselhoff2024gaussian,
  title  = {The Gaussian Discriminant Variational Autoencoder (GdVAE): A Self-Explainable Model with Counterfactual Explanations},
  author = {Anselm Haselhoff and Kevin Trelenberg and Fabian Küppers and Jonas Schneider},
  year   = {2024},
  eprint = {2409.12952},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.12952v1},
  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/2409.12952.svg)](https://codeofpaper.com/paper/2409.12952)

Discussion