Counterfactual State Explanations for Reinforcement Learning Agents via Generative Deep Learning
Not on the map. Why?
Abstract (arXiv)
Counterfactual explanations, which deal with "why not?" scenarios, can provide insightful explanations to an AI agent's behavior. In this work, we focus on generating counterfactual explanations for deep reinforcement learning (RL) agents which operate in visual input environments like Atari. We introduce counterfactual state explanations, a novel example-based approach to counterfactual explanations based on generative deep learning. Specifically, a counterfactual state illustrates what minimal change is needed to an Atari game image such that the agent chooses a different action. We also evaluate the effectiveness of counterfactual states on human participants who are not machine learning experts. Our first user study investigates if humans can discern if the counterfactual state explanations are produced by the actual game or produced by a generative deep learning approach. Our second user study investigates if counterfactual state explanations can help non-expert participants identify a flawed agent; we compare against a baseline approach based on a nearest neighbor explanation which uses images from the actual game. Our results indicate that counterfactual state explanations have sufficient fidelity to the actual game images to enable non-experts to more effectively identify a flawed RL agent compared to the nearest neighbor baseline and to having no explanation at all.
Key facts. Cited by 38 papers in the map (data through 7 Oct 2026). Builds on 44 of its 63 references that are in the map. First posted on arXiv 29 Jan 2021.
Builds on
44 of 63 references.
References · 44
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2013Auto-Encoding Variational Bayescited by 3,980
- 2017Axiomatic Attribution for Deep Networkscited by 3,350
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
- 2013Visualizing and Understanding Convolutional Networkscited by 2,278
- 2015Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networkscited by 2,048
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,714
- 2017Learning Important Features Through Propagating Activation Differencescited by 1,454
- 2017Explanation in Artificial Intelligence: Insights from the Social Sciencescited by 1,201
32 more
- 2018Sanity Checks for Saliency Mapscited by 1,149
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
- 2014Striving for Simplicity: The All Convolutional Netcited by 983
- 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 612
- 2017Interpretable Explanations of Black Boxes by Meaningful Perturbationcited by 611
- 2019Model-Based Reinforcement Learning for Ataricited by 495
- 2017Wasserstein Auto-Encoderscited by 371
- 2015Adversarial Autoencoderscited by 359
- 2016Top-down Neural Attention by Excitation Backpropcited by 318
- 2019Counterfactual Visual Explanationscited by 312
- 2018Explanations based on the Missing: Towards Contrastive Explanations with Pertinent Negativescited by 261
- 2019On the "steerability" of generative adversarial networkscited by 247
- 2017Real Time Image Saliency for Black Box Classifierscited by 246
- 2018Programmatically Interpretable Reinforcement Learningcited by 192
- 2019Explainable Reinforcement Learning Through a Causal Lenscited by 177
- 2018Explaining Image Classifiers by Counterfactual Generationcited by 144
- 2017Visualizing and Understanding Atari Agentscited by 141
- 2017Fader Networks: Manipulating Images by Sliding Attributescited by 118
- 2019Towards Interpretable Reinforcement Learning Using Attention Augmented Agentscited by 82
- 2016Graying the black box: Understanding DQNscited by 68
- 2019Exploratory Not Explanatory: Counterfactual Analysis of Saliency Maps for Deep Reinforcement Learningcited by 60
- 2019Visualizing Deep Networks by Optimizing with Integrated Gradientscited by 59
- 2018Counterfactuals uncover the modular structure of deep generative modelscited by 51
- 2019Interestingness Elements for Explainable Reinforcement Learning: Understanding Agents' Capabilities and Limitationscited by 50
- 2018Establishing Appropriate Trust via Critical Statescited by 47
- 2018Contrastive Explanations for Reinforcement Learning in terms of Expected Consequencescited by 44
- 2020Semi-Supervised StyleGAN for Disentanglement Learningcited by 43
- 2018Learning Finite State Representations of Recurrent Policy Networkscited by 37
- 2017Enabling Robots to Communicate their Objectivescited by 34
- 2019Exploring Computational User Models for Agent Policy Summarizationcited by 29
- 2019Counterfactual States for Atari Agents via Generative Deep Learningcited by 14
- 2017Autoencoder-augmented Neuroevolution for Visual Doom Playingcited by 8
Built on by
Citing papers per year: 2021: 1; 2022: 9; 2023: 7; 2024: 12; 2025: 7; 2026: 2.
38 papers.
Sort:
By area:
- 2021If Only We Had Better Counterfactual Explanations: Five Key Deficits to Rectify in the Evaluation of Counterfactual XAI Techniquescited by 82
- 2023Adversarial attacks and defenses in explainable artificial intelligence: A surveycited by 47
- 2022A Survey of Explainable Reinforcement Learningcited by 31
- 2023Automated Cyber Defence: A Reviewcited by 19
- 2023GANterfactual-RL: Understanding Reinforcement Learning Agents' Strategies through Visual Counterfactual Explanationscited by 17
- 2023Explainable Multi-Agent Reinforcement Learning for Temporal Queriescited by 9
- 2024SAFE-RL: Saliency-Aware Counterfactual Explainer for Deep Reinforcement Learning Policiescited by 8
- 2024Safety Implications of Explainable Artificial Intelligence in End-to-End Autonomous Drivingcited by 7
- 2025A Statistical Case Against Empirical Human-AI Alignmentcited by 6
- 2022Local Explanations for Reinforcement Learningcited by 5
- 2022Experiential Explanations for Reinforcement Learningcited by 5
- 2024ACTER: Diverse and Actionable Counterfactual Sequences for Explaining and Diagnosing RL Policiescited by 4
26 more
- 2022A Survey on Explainable Reinforcement Learning: Concepts, Algorithms, Challengescited by 3
- 2023Counterfactual Explainer Framework for Deep Reinforcement Learning Models Using Policy Distillationcited by 3
- 2024Relevant Irrelevance: Generating Alterfactual Explanations for Image Classifierscited by 3
- 2024Towards Sample-Efficiency and Generalization of Transfer and Inverse Reinforcement Learning: A Comprehensive Literature Reviewcited by 3
- 2024SkillTree: Explainable Skill-Based Deep Reinforcement Learning for Long-Horizon Control Taskscited by 3
- 2025Integrating Counterfactual Simulations with Language Models for Explaining Multi-Agent Behaviourcited by 3
- 2022Gradient-based Counterfactual Explanations using Tractable Probabilistic Modelscited by 2
- 2022Outcome-Guided Counterfactuals for Reinforcement Learning Agents from a Jointly Trained Generative Latent Spacecited by 2
- 2023Causal State Distillation for Explainable Reinforcement Learningcited by 2
- 2024Abstracted Trajectory Visualization for Explainability in Reinforcement Learningcited by 2
- 2024XRL-Bench: A Benchmark for Evaluating and Comparing Explainable Reinforcement Learning Techniquescited by 2
- 2025Formal Models of Active Learning from Contrastive Examplescited by 2
- 2022Causal Explanation for Reinforcement Learning: Quantifying State and Temporal Importancecited by 1
- 2024CRUISE on Quantum Computing for Feature Selection in Recommender Systemscited by 1
- 2024Explaining Reinforcement Learning: A Counterfactual Shapley Values Approachcited by 1
- 2024Semifactual Explanations for Reinforcement Learningcited by 1
- 2024Counterfactual Explanations for Clustering Modelscited by 1
- 2025Explainable Reinforcement Learning Agents Using World Modelscited by 1
- 2025MACIE: Multi-Agent Causal Intelligence Explainer for Collective Behavior Understandingcited by 1
- 2022Measuring Interventional Robustness in Reinforcement Learningcited by 0
- 2022Global and Local Analysis of Interestingness for Competency-Aware Deep Reinforcement Learningcited by 0
- 2023IxDRL: A Novel Explainable Deep Reinforcement Learning Toolkit based on Analyses of Interestingnesscited by 0
- 2025Strategically Linked Decisions in Long-Term Planning and Reinforcement Learningcited by 0
- 2025STACHE: Local Black-Box Explanations for Reinforcement Learning Policiescited by 0
- 2026Command-Space Counterfactual Explanations for Pareto-Conditioned Reinforcement Learningcited by 0
- 2026Evaluating RL Explainability Methods by How Much They Help Fix Bugs in Agentscited by 0
- 2026Evaluating RL Explainability Methods by How Much They Help Fix Bugs in Agents18 Aug 2026
- 2026Command-Space Counterfactual Explanations for Pareto-Conditioned Reinforcement Learning15 Aug 2026
- 2025STACHE: Local Black-Box Explanations for Reinforcement Learning Policies10 Dec 2025
- 2025MACIE: Multi-Agent Causal Intelligence Explainer for Collective Behavior Understanding11 Nov 2025
- 2025Formal Models of Active Learning from Contrastive Examples18 Jun 2025
- 2025Integrating Counterfactual Simulations with Language Models for Explaining Multi-Agent Behaviour23 May 2025
- 2025Strategically Linked Decisions in Long-Term Planning and Reinforcement Learning22 May 2025
- 2025Explainable Reinforcement Learning Agents Using World Models12 May 2025
- 2025A Statistical Case Against Empirical Human-AI Alignment20 Feb 2025
- 2024SkillTree: Explainable Skill-Based Deep Reinforcement Learning for Long-Horizon Control Tasks19 Nov 2024
- 2024Towards Sample-Efficiency and Generalization of Transfer and Inverse Reinforcement Learning: A Comprehensive Literature Review15 Nov 2024
- 2024Counterfactual Explanations for Clustering Models19 Sep 2024
26 more
- 2024Semifactual Explanations for Reinforcement Learning9 Sep 2024
- 2024Explaining Reinforcement Learning: A Counterfactual Shapley Values Approach5 Aug 2024
- 2024CRUISE on Quantum Computing for Feature Selection in Recommender Systems3 Jul 2024
- 2024Relevant Irrelevance: Generating Alterfactual Explanations for Image Classifiers8 May 2024
- 2024SAFE-RL: Saliency-Aware Counterfactual Explainer for Deep Reinforcement Learning Policies28 Apr 2024
- 2024Safety Implications of Explainable Artificial Intelligence in End-to-End Autonomous Driving18 Mar 2024
- 2024XRL-Bench: A Benchmark for Evaluating and Comparing Explainable Reinforcement Learning Techniques20 Feb 2024
- 2024ACTER: Diverse and Actionable Counterfactual Sequences for Explaining and Diagnosing RL Policies9 Feb 2024
- 2024Abstracted Trajectory Visualization for Explainability in Reinforcement Learning5 Feb 2024
- 2023Causal State Distillation for Explainable Reinforcement Learning30 Dec 2023
- 2023IxDRL: A Novel Explainable Deep Reinforcement Learning Toolkit based on Analyses of Interestingness18 Jul 2023
- 2023Adversarial attacks and defenses in explainable artificial intelligence: A survey6 Jun 2023
- 2023Counterfactual Explainer Framework for Deep Reinforcement Learning Models Using Policy Distillation25 May 2023
- 2023Explainable Multi-Agent Reinforcement Learning for Temporal Queries17 May 2023
- 2023Automated Cyber Defence: A Review8 Mar 2023
- 2023GANterfactual-RL: Understanding Reinforcement Learning Agents' Strategies through Visual Counterfactual Explanations24 Feb 2023
- 2022A Survey on Explainable Reinforcement Learning: Concepts, Algorithms, Challenges12 Nov 2022
- 2022Global and Local Analysis of Interestingness for Competency-Aware Deep Reinforcement Learning11 Nov 2022
- 2022Causal Explanation for Reinforcement Learning: Quantifying State and Temporal Importance24 Oct 2022
- 2022Experiential Explanations for Reinforcement Learning10 Oct 2022
- 2022Measuring Interventional Robustness in Reinforcement Learning19 Sep 2022
- 2022Outcome-Guided Counterfactuals for Reinforcement Learning Agents from a Jointly Trained Generative Latent Space15 Jul 2022
- 2022Gradient-based Counterfactual Explanations using Tractable Probabilistic Models16 May 2022
- 2022A Survey of Explainable Reinforcement Learning17 Feb 2022
- 2022Local Explanations for Reinforcement Learning8 Feb 2022
- 2021If Only We Had Better Counterfactual Explanations: Five Key Deficits to Rectify in the Evaluation of Counterfactual XAI Techniques26 Feb 2021
- 2025Explainable Reinforcement Learning Agents Using World Models12 May 2025
- 2021If Only We Had Better Counterfactual Explanations: Five Key Deficits to Rectify in the Evaluation of Counterfactual XAI Techniquescited by 82
- 2023Adversarial attacks and defenses in explainable artificial intelligence: A surveycited by 47
- 2022A Survey of Explainable Reinforcement Learningcited by 31
- 2023Automated Cyber Defence: A Reviewcited by 19
- 2023GANterfactual-RL: Understanding Reinforcement Learning Agents' Strategies through Visual Counterfactual Explanationscited by 17
- 2023Explainable Multi-Agent Reinforcement Learning for Temporal Queriescited by 9
- 2024SAFE-RL: Saliency-Aware Counterfactual Explainer for Deep Reinforcement Learning Policiescited by 8
- 2025A Statistical Case Against Empirical Human-AI Alignmentcited by 6
- 2022Local Explanations for Reinforcement Learningcited by 5
- 2022Experiential Explanations for Reinforcement Learningcited by 5
- 2024ACTER: Diverse and Actionable Counterfactual Sequences for Explaining and Diagnosing RL Policiescited by 4
- 2022A Survey on Explainable Reinforcement Learning: Concepts, Algorithms, Challengescited by 3
12 most cited of 33 All 33 (JSON)
- 2026Command-Space Counterfactual Explanations for Pareto-Conditioned Reinforcement Learning15 Aug 2026
- 2025STACHE: Local Black-Box Explanations for Reinforcement Learning Policies10 Dec 2025
- 2025MACIE: Multi-Agent Causal Intelligence Explainer for Collective Behavior Understanding11 Nov 2025
- 2025Formal Models of Active Learning from Contrastive Examples18 Jun 2025
- 2025Strategically Linked Decisions in Long-Term Planning and Reinforcement Learning22 May 2025
- 2025A Statistical Case Against Empirical Human-AI Alignment20 Feb 2025
- 2024SkillTree: Explainable Skill-Based Deep Reinforcement Learning for Long-Horizon Control Tasks19 Nov 2024
- 2024Counterfactual Explanations for Clustering Models19 Sep 2024
- 2024Semifactual Explanations for Reinforcement Learning9 Sep 2024
- 2024Explaining Reinforcement Learning: A Counterfactual Shapley Values Approach5 Aug 2024
- 2024CRUISE on Quantum Computing for Feature Selection in Recommender Systems3 Jul 2024
- 2024Relevant Irrelevance: Generating Alterfactual Explanations for Image Classifiers8 May 2024
12 newest of 33 All 33 (JSON)