mlsanityData to 7 Oct 2026

Counterfactual State Explanations for Reinforcement Learning Agents via Generative Deep Learning

arXiv 2101.12446 ↗First posted 29 Jan 2021cs.AI cs.HC cs.LGcited by 38

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

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
  4. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
  5. 2013Auto-Encoding Variational Bayescited by 3,980
  6. 2017Axiomatic Attribution for Deep Networkscited by 3,350
  7. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
  8. 2013Visualizing and Understanding Convolutional Networkscited by 2,278
  9. 2015Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networkscited by 2,048
  10. 2017Understanding Black-box Predictions via Influence Functionscited by 1,714
  11. 2017Learning Important Features Through Propagating Activation Differencescited by 1,454
  12. 2017Explanation in Artificial Intelligence: Insights from the Social Sciencescited by 1,201
32 more
  1. 2018Sanity Checks for Saliency Mapscited by 1,149
  2. 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
  3. 2014Striving for Simplicity: The All Convolutional Netcited by 983
  4. 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 612
  5. 2017Interpretable Explanations of Black Boxes by Meaningful Perturbationcited by 611
  6. 2019Model-Based Reinforcement Learning for Ataricited by 495
  7. 2017Wasserstein Auto-Encoderscited by 371
  8. 2015Adversarial Autoencoderscited by 359
  9. 2016Top-down Neural Attention by Excitation Backpropcited by 318
  10. 2019Counterfactual Visual Explanationscited by 312
  11. 2018Explanations based on the Missing: Towards Contrastive Explanations with Pertinent Negativescited by 261
  12. 2019On the "steerability" of generative adversarial networkscited by 247
  13. 2017Real Time Image Saliency for Black Box Classifierscited by 246
  14. 2018Programmatically Interpretable Reinforcement Learningcited by 192
  15. 2019Explainable Reinforcement Learning Through a Causal Lenscited by 177
  16. 2018Explaining Image Classifiers by Counterfactual Generationcited by 144
  17. 2017Visualizing and Understanding Atari Agentscited by 141
  18. 2017Fader Networks: Manipulating Images by Sliding Attributescited by 118
  19. 2019Towards Interpretable Reinforcement Learning Using Attention Augmented Agentscited by 82
  20. 2016Graying the black box: Understanding DQNscited by 68
  21. 2019Exploratory Not Explanatory: Counterfactual Analysis of Saliency Maps for Deep Reinforcement Learningcited by 60
  22. 2019Visualizing Deep Networks by Optimizing with Integrated Gradientscited by 59
  23. 2018Counterfactuals uncover the modular structure of deep generative modelscited by 51
  24. 2019Interestingness Elements for Explainable Reinforcement Learning: Understanding Agents' Capabilities and Limitationscited by 50
  25. 2018Establishing Appropriate Trust via Critical Statescited by 47
  26. 2018Contrastive Explanations for Reinforcement Learning in terms of Expected Consequencescited by 44
  27. 2020Semi-Supervised StyleGAN for Disentanglement Learningcited by 43
  28. 2018Learning Finite State Representations of Recurrent Policy Networkscited by 37
  29. 2017Enabling Robots to Communicate their Objectivescited by 34
  30. 2019Exploring Computational User Models for Agent Policy Summarizationcited by 29
  31. 2019Counterfactual States for Atari Agents via Generative Deep Learningcited by 14
  32. 2017Autoencoder-augmented Neuroevolution for Visual Doom Playingcited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 1; 2022: 9; 2023: 7; 2024: 12; 2025: 7; 2026: 2.

38 papers.

Sort:

By area:

  1. 2021If Only We Had Better Counterfactual Explanations: Five Key Deficits to Rectify in the Evaluation of Counterfactual XAI Techniquescited by 82
  2. 2023Adversarial attacks and defenses in explainable artificial intelligence: A surveycited by 47
  3. 2022A Survey of Explainable Reinforcement Learningcited by 31
  4. 2023Automated Cyber Defence: A Reviewcited by 19
  5. 2023GANterfactual-RL: Understanding Reinforcement Learning Agents' Strategies through Visual Counterfactual Explanationscited by 17
  6. 2023Explainable Multi-Agent Reinforcement Learning for Temporal Queriescited by 9
  7. 2024SAFE-RL: Saliency-Aware Counterfactual Explainer for Deep Reinforcement Learning Policiescited by 8
  8. 2024Safety Implications of Explainable Artificial Intelligence in End-to-End Autonomous Drivingcited by 7
  9. 2025A Statistical Case Against Empirical Human-AI Alignmentcited by 6
  10. 2022Local Explanations for Reinforcement Learningcited by 5
  11. 2022Experiential Explanations for Reinforcement Learningcited by 5
  12. 2024ACTER: Diverse and Actionable Counterfactual Sequences for Explaining and Diagnosing RL Policiescited by 4
26 more
  1. 2022A Survey on Explainable Reinforcement Learning: Concepts, Algorithms, Challengescited by 3
  2. 2023Counterfactual Explainer Framework for Deep Reinforcement Learning Models Using Policy Distillationcited by 3
  3. 2024Relevant Irrelevance: Generating Alterfactual Explanations for Image Classifierscited by 3
  4. 2024Towards Sample-Efficiency and Generalization of Transfer and Inverse Reinforcement Learning: A Comprehensive Literature Reviewcited by 3
  5. 2024SkillTree: Explainable Skill-Based Deep Reinforcement Learning for Long-Horizon Control Taskscited by 3
  6. 2025Integrating Counterfactual Simulations with Language Models for Explaining Multi-Agent Behaviourcited by 3
  7. 2022Gradient-based Counterfactual Explanations using Tractable Probabilistic Modelscited by 2
  8. 2022Outcome-Guided Counterfactuals for Reinforcement Learning Agents from a Jointly Trained Generative Latent Spacecited by 2
  9. 2023Causal State Distillation for Explainable Reinforcement Learningcited by 2
  10. 2024Abstracted Trajectory Visualization for Explainability in Reinforcement Learningcited by 2
  11. 2024XRL-Bench: A Benchmark for Evaluating and Comparing Explainable Reinforcement Learning Techniquescited by 2
  12. 2025Formal Models of Active Learning from Contrastive Examplescited by 2
  13. 2022Causal Explanation for Reinforcement Learning: Quantifying State and Temporal Importancecited by 1
  14. 2024CRUISE on Quantum Computing for Feature Selection in Recommender Systemscited by 1
  15. 2024Explaining Reinforcement Learning: A Counterfactual Shapley Values Approachcited by 1
  16. 2024Semifactual Explanations for Reinforcement Learningcited by 1
  17. 2024Counterfactual Explanations for Clustering Modelscited by 1
  18. 2025Explainable Reinforcement Learning Agents Using World Modelscited by 1
  19. 2025MACIE: Multi-Agent Causal Intelligence Explainer for Collective Behavior Understandingcited by 1
  20. 2022Measuring Interventional Robustness in Reinforcement Learningcited by 0
  21. 2022Global and Local Analysis of Interestingness for Competency-Aware Deep Reinforcement Learningcited by 0
  22. 2023IxDRL: A Novel Explainable Deep Reinforcement Learning Toolkit based on Analyses of Interestingnesscited by 0
  23. 2025Strategically Linked Decisions in Long-Term Planning and Reinforcement Learningcited by 0
  24. 2025STACHE: Local Black-Box Explanations for Reinforcement Learning Policiescited by 0
  25. 2026Command-Space Counterfactual Explanations for Pareto-Conditioned Reinforcement Learningcited by 0
  26. 2026Evaluating RL Explainability Methods by How Much They Help Fix Bugs in Agentscited by 0