DiG-IN: Diffusion Guidance for Investigating Networks - Uncovering Classifier Differences, Neuron Visualisations, and Visual Counterfactual Explanations

Maximilian Augustin, Yannic Neuhaus, Matthias Hein
2/14/2026

No official code found. Best implementation: M4xim4l/DiG-IN (10 stars, last commit 2024-10-09).

Abstract

While deep learning has led to huge progress in complex image classification tasks like ImageNet, unexpected failure modes, e.g. via spurious features, call into question how reliably these classifiers work in the wild. Furthermore, for safety-critical tasks the black-box nature of their decisions is problematic, and explanations or at least methods which make decisions plausible are needed urgently. In this paper, we address these problems by generating images that optimize a classifier-derived objective using a framework for guided image generation. We analyze the decisions of image classifiers by visual counterfactual explanations (VCEs), detection of systematic mistakes by analyzing images where classifiers maximally disagree, and visualization of neurons and spurious features. In this way, we validate existing observations, e.g. the shape bias of adversarially robust models, as well as novel failure modes, e.g. systematic errors of zero-shot CLIP classifiers. Moreover, our VCEs outperform previous work while being more versatile.

View on arXivView PDF

Code Implementations(1)

M4xim4l/DiG-INCommunity65%

DiG-IN: Diffusion Guidance for Investigating Networks - Uncovering Classifier Differences, Neuron Visualisations, and Visual Counterfactual Explanations

101PythonMar 30, 20242 years ago

Similar Papers

Cite this paper

@article{augustin2026digin,
  title  = {DiG-IN: Diffusion Guidance for Investigating Networks - Uncovering Classifier Differences, Neuron Visualisations, and Visual Counterfactual Explanations},
  author = {Maximilian Augustin and Yannic Neuhaus and Matthias Hein},
  year   = {2026},
  eprint = {2311.17833},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2311.17833},
  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/2311.17833.svg)](https://codeofpaper.com/paper/2311.17833)

Discussion