ECINN: Efficient Counterfactuals from Invertible Neural Networks
Not on the map. Why?
Abstract (arXiv)
Counterfactual examples identify how inputs can be altered to change the predicted class of a classifier, thus opening up the black-box nature of, e.g., deep neural networks. We propose a method, ECINN, that utilizes the generative capacities of invertible neural networks for image classification to generate counterfactual examples efficiently. In contrast to competing methods that sometimes need a thousand evaluations or more of the classifier, ECINN has a closed-form expression and generates a counterfactual in the time of only two evaluations. Arguably, the main challenge of generating counterfactual examples is to alter only input features that affect the predicted outcome, i.e., class-dependent features. Our experiments demonstrate how ECINN alters class-dependent image regions to change the perceptual and predicted class of the counterfactuals. Additionally, we extend ECINN to also produce heatmaps (ECINNh) for easy inspection of, e.g., pairwise class-dependent changes in the generated counterfactual examples. Experimentally, we find that ECINNh outperforms established methods that generate heatmap-based explanations.
Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). Builds on 35 of its 49 references that are in the map. First posted on arXiv 25 Mar 2021.
Builds on
35 of 49 references.
References · 35
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2017Axiomatic Attribution for Deep Networkscited by 3,350
- 2017Progressive Growing of GANs for Improved Quality, Stability, and Variationcited by 2,967
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
- 2013Visualizing and Understanding Convolutional Networkscited by 2,278
- 2016Density estimation using Real NVPcited by 2,029
- 2018Glow: Generative Flow with Invertible 1x1 Convolutionscited by 1,539
- 2017Learning Important Features Through Propagating Activation Differencescited by 1,454
- 2019Self-training with Noisy Student improves ImageNet classificationcited by 1,304
23 more
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
- 2014NICE: Non-linear Independent Components Estimationcited by 1,052
- 2014Striving for Simplicity: The All Convolutional Netcited by 983
- 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 774
- 2017One pixel attack for fooling deep neural networkscited by 579
- 2015Evaluating the visualization of what a Deep Neural Network has learnedcited by 416
- 2018Invertible Residual Networkscited by 364
- 2019Counterfactual Visual Explanationscited by 312
- 2018Explanations based on the Missing: Towards Contrastive Explanations with Pertinent Negativescited by 261
- 2019Interpretable Counterfactual Explanations Guided by Prototypescited by 223
- 2017Visualizing Deep Neural Network Decisions: Prediction Difference Analysiscited by 166
- 2018Explaining Image Classifiers by Counterfactual Generationcited by 144
- 2019Preserving Causal Constraints in Counterfactual Explanations for Machine Learning Classifierscited by 143
- 2021Benchmarking and Survey of Explanation Methods for Black Box Modelscited by 136
- 2019Semi-Supervised Learning with Normalizing Flowscited by 76
- 2021Contrastive Explanations for Model Interpretabilitycited by 75
- 2020SCOUT: Self-aware Discriminant Counterfactual Explanationscited by 52
- 2020DECE: Decision Explorer with Counterfactual Explanations for Machine Learning Modelscited by 38
- 2019CERTIFAI: Counterfactual Explanations for Robustness, Transparency, Interpretability, and Fairness of Artificial Intelligence modelscited by 34
- 2020ViCE: Visual Counterfactual Explanations for Machine Learning Modelscited by 34
- 2020Counterfactual Explanation Based on Gradual Construction for Deep Networkscited by 12
- 2019Question-Conditioned Counterfactual Image Generation for VQAcited by 5
- 2020Generative Classifiers as a Basis for Trustworthy Image Classificationcited by 3
Built on by
Citing papers per year: 2021: 2; 2022: 9; 2023: 6; 2024: 6; 2025: 3.
26 papers.
Sort:
By area:
- 2022Diffusion Causal Models for Counterfactual Estimationcited by 87
- 2022Diffusion Models for Counterfactual Explanationscited by 79
- 2021Counterfactual Interventions Reveal the Causal Effect of Relative Clause Representations on Agreement Predictioncited by 58
- 2023Adversarial Counterfactual Visual Explanationscited by 47
- 2022Making Heads or Tails: Towards Semantically Consistent Visual Counterfactualscited by 30
- 2023Towards Trustworthy and Aligned Machine Learning: A Data-centric Survey with Causality Perspectivescited by 30
- 2022Diffeomorphic Counterfactuals with Generative Modelscited by 29
- 2023Counterfactual Learning on Graphs: A Surveycited by 22
- 2023Latent Diffusion Counterfactual Explanationscited by 17
- 2024Global Counterfactual Directionscited by 15
- 2022Do Users Benefit From Interpretable Vision? A User Study, Baseline, And Datasetcited by 13
- 2024Gumbel Counterfactual Generation From Language Modelscited by 13
14 more
- 2022Causality-Inspired Taxonomy for Explainable Artificial Intelligencecited by 9
- 2023CeFlow: A Robust and Efficient Counterfactual Explanation Framework for Tabular Data using Normalizing Flowscited by 8
- 2024TABCF: Counterfactual Explanations for Tabular Data Using a Transformer-Based VAEcited by 8
- 2021On Quantitative Evaluations of Counterfactualscited by 7
- 2022Fighting Money Laundering with Statistics and Machine Learningcited by 5
- 2024The Gaussian Discriminant Variational Autoencoder (GdVAE): A Self-Explainable Model with Counterfactual Explanationscited by 5
- 2022When less is more: Simplifying inputs aids neural network understandingcited by 4
- 2024Causal Generative Explainers using Counterfactual Inference: A Case Study on the Morpho-MNIST Datasetcited by 4
- 2024Explainable AI needs formalizationcited by 4
- 2025LeapFactual: Reliable Visual Counterfactual Explanation Using Conditional Flow Matchingcited by 4
- 2022A Rigorous Study Of The Deep Taylor Decompositioncited by 3
- 2023On Modifying a Neural Network's Perceptioncited by 1
- 2025Counterfactual Visual Explanation via Causally-Guided Adversarial Steeringcited by 1
- 2025Galaxy Morphology Classification with Counterfactual Explanationcited by 1
- 2025Galaxy Morphology Classification with Counterfactual Explanation16 Oct 2025
- 2025LeapFactual: Reliable Visual Counterfactual Explanation Using Conditional Flow Matching16 Oct 2025
- 2025Counterfactual Visual Explanation via Causally-Guided Adversarial Steering14 Jul 2025
- 2024Gumbel Counterfactual Generation From Language Models11 Nov 2024
- 2024TABCF: Counterfactual Explanations for Tabular Data Using a Transformer-Based VAE14 Oct 2024
- 2024Explainable AI needs formalization22 Sep 2024
- 2024The Gaussian Discriminant Variational Autoencoder (GdVAE): A Self-Explainable Model with Counterfactual Explanations19 Sep 2024
- 2024Global Counterfactual Directions18 Apr 2024
- 2024Causal Generative Explainers using Counterfactual Inference: A Case Study on the Morpho-MNIST Dataset21 Jan 2024
- 2023Latent Diffusion Counterfactual Explanations10 Oct 2023
- 2023Towards Trustworthy and Aligned Machine Learning: A Data-centric Survey with Causality Perspectives31 Jul 2023
- 2023Counterfactual Learning on Graphs: A Survey3 Apr 2023
14 more
- 2023CeFlow: A Robust and Efficient Counterfactual Explanation Framework for Tabular Data using Normalizing Flows26 Mar 2023
- 2023Adversarial Counterfactual Visual Explanations17 Mar 2023
- 2023On Modifying a Neural Network's Perception5 Mar 2023
- 2022A Rigorous Study Of The Deep Taylor Decomposition14 Nov 2022
- 2022Causality-Inspired Taxonomy for Explainable Artificial Intelligence19 Aug 2022
- 2022Diffeomorphic Counterfactuals with Generative Models10 Jun 2022
- 2022Do Users Benefit From Interpretable Vision? A User Study, Baseline, And Dataset25 Apr 2022
- 2022Diffusion Models for Counterfactual Explanations29 Mar 2022
- 2022Making Heads or Tails: Towards Semantically Consistent Visual Counterfactuals24 Mar 2022
- 2022Diffusion Causal Models for Counterfactual Estimation21 Feb 2022
- 2022When less is more: Simplifying inputs aids neural network understanding14 Jan 2022
- 2022Fighting Money Laundering with Statistics and Machine Learning11 Jan 2022
- 2021On Quantitative Evaluations of Counterfactuals30 Oct 2021
- 2021Counterfactual Interventions Reveal the Causal Effect of Relative Clause Representations on Agreement Prediction14 May 2021
- 2022Diffusion Models for Counterfactual Explanationscited by 79
- 2023Adversarial Counterfactual Visual Explanationscited by 47
- 2023Latent Diffusion Counterfactual Explanationscited by 17
- 2024Global Counterfactual Directionscited by 15
- 2025LeapFactual: Reliable Visual Counterfactual Explanation Using Conditional Flow Matchingcited by 4
- 2025LeapFactual: Reliable Visual Counterfactual Explanation Using Conditional Flow Matching16 Oct 2025
- 2024Global Counterfactual Directions18 Apr 2024
- 2023Latent Diffusion Counterfactual Explanations10 Oct 2023
- 2023Adversarial Counterfactual Visual Explanations17 Mar 2023
- 2022Diffusion Models for Counterfactual Explanations29 Mar 2022
- 2022Diffusion Causal Models for Counterfactual Estimationcited by 87
- 2021Counterfactual Interventions Reveal the Causal Effect of Relative Clause Representations on Agreement Predictioncited by 58
- 2022Making Heads or Tails: Towards Semantically Consistent Visual Counterfactualscited by 30
- 2022Diffeomorphic Counterfactuals with Generative Modelscited by 29
- 2023Counterfactual Learning on Graphs: A Surveycited by 22
- 2022Do Users Benefit From Interpretable Vision? A User Study, Baseline, And Datasetcited by 13
- 2024Gumbel Counterfactual Generation From Language Modelscited by 13
- 2022Causality-Inspired Taxonomy for Explainable Artificial Intelligencecited by 9
- 2023CeFlow: A Robust and Efficient Counterfactual Explanation Framework for Tabular Data using Normalizing Flowscited by 8
- 2024TABCF: Counterfactual Explanations for Tabular Data Using a Transformer-Based VAEcited by 8
- 2021On Quantitative Evaluations of Counterfactualscited by 7
- 2022Fighting Money Laundering with Statistics and Machine Learningcited by 5
12 most cited of 20 All 20 (JSON)
- 2025Galaxy Morphology Classification with Counterfactual Explanation16 Oct 2025
- 2025Counterfactual Visual Explanation via Causally-Guided Adversarial Steering14 Jul 2025
- 2024Gumbel Counterfactual Generation From Language Models11 Nov 2024
- 2024TABCF: Counterfactual Explanations for Tabular Data Using a Transformer-Based VAE14 Oct 2024
- 2024Explainable AI needs formalization22 Sep 2024
- 2024The Gaussian Discriminant Variational Autoencoder (GdVAE): A Self-Explainable Model with Counterfactual Explanations19 Sep 2024
- 2024Causal Generative Explainers using Counterfactual Inference: A Case Study on the Morpho-MNIST Dataset21 Jan 2024
- 2023Counterfactual Learning on Graphs: A Survey3 Apr 2023
- 2023CeFlow: A Robust and Efficient Counterfactual Explanation Framework for Tabular Data using Normalizing Flows26 Mar 2023
- 2023On Modifying a Neural Network's Perception5 Mar 2023
- 2022A Rigorous Study Of The Deep Taylor Decomposition14 Nov 2022
- 2022Causality-Inspired Taxonomy for Explainable Artificial Intelligence19 Aug 2022
12 newest of 20 All 20 (JSON)