GANterfactual-RL: Understanding Reinforcement Learning Agents' Strategies through Visual Counterfactual Explanations

Tobias Huber, Maximilian Demmler, Silvan Mertes, Matthew L. Olson, Elisabeth André
2/24/2023
cs.LGcs.AI

No official code found. Best implementation: hcmlab/GANterfactual-RL (12 stars, MIT, last commit 2023-04-03).

Abstract

Counterfactual explanations are a common tool to explain artificial intelligence models. For Reinforcement Learning (RL) agents, they answer "Why not?" or "What if?" questions by illustrating what minimal change to a state is needed such that an agent chooses a different action. Generating counterfactual explanations for RL agents with visual input is especially challenging because of their large state spaces and because their decisions are part of an overarching policy, which includes long-term decision-making. However, research focusing on counterfactual explanations, specifically for RL agents with visual input, is scarce and does not go beyond identifying defective agents. It is unclear whether counterfactual explanations are still helpful for more complex tasks like analyzing the learned strategies of different agents or choosing a fitting agent for a specific task. We propose a novel but simple method to generate counterfactual explanations for RL agents by formulating the problem as a domain transfer problem which allows the use of adversarial learning techniques like StarGAN. Our method is fully model-agnostic and we demonstrate that it outperforms the only previous method in several computational metrics. Furthermore, we show in a user study that our method performs best when analyzing which strategies different agents pursue.

View on arXivView PDF

Code Implementations(1)

MIT

Counterfactual explanations for Reinforcement Learning agents on Atari

121Shell, PythonApr 14, 20223 years agoMIT

Similar Papers

Cite this paper

@article{huber2023ganterfactualrl,
  title  = {GANterfactual-RL: Understanding Reinforcement Learning Agents' Strategies through Visual Counterfactual Explanations},
  author = {Tobias Huber and Maximilian Demmler and Silvan Mertes and Matthew L. Olson and Elisabeth André},
  year   = {2023},
  eprint = {2302.12689},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.12689v1}
}

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

Discussion