Adversarial Counterfactual Visual Explanations

Guillaume Jeanneret, Loïc Simon, F. Jurie
2/14/2026

No official code found. Best implementation: guillaumejs2403/ACE (46 stars, MIT, PyTorch, last commit 2025-03-12).

Abstract

Counterfactual explanations and adversarial attacks have a related goal: flipping output labels with minimal perturbations regardless of their characteristics. Yet, adversarial attacks cannot be used directly in a counterfactual explanation perspective, as such perturbations are perceived as noise and not as actionable and understandable image modifications. Building on the robust learning literature, this paper proposes an elegant method to turn adversarial attacks into semantically meaningful perturbations, without modifying the classifiers to explain. The proposed approach hypothesizes that Denoising Diffusion Probabilistic Models are excellent regularizers for avoiding high-frequency and out-of-distribution perturbations when generating adversarial attacks. The paper's key idea is to build attacks through a diffusion model to polish them. This allows studying the target model regardless of its robustification level. Extensive experimentation shows the advantages of our counterfactual explanation approach over current State-of-the-Art in multiple testbeds.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

This repository contains the official code for the CVPR 2023 paper ``Adversarial Counterfactual Visual Explanations''

464Shell, PythonFeb 28, 20231 years agoMIT
counterfactual-explanationspytorch

Similar Papers

Cite this paper

@article{jeanneret2026adversarial,
  title  = {Adversarial Counterfactual Visual Explanations},
  author = {Guillaume Jeanneret and Loïc Simon and F. Jurie},
  year   = {2026},
  eprint = {2303.09962},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2303.09962},
  journal = {CVPR 2023 2023}
}

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

Discussion