SAFE-RL: Saliency-Aware Counterfactual Explainer for Deep Reinforcement Learning Policies

Amir Samadi, Konstantinos Koufos, Kurt Debattista, Mehrdad Dianati
4/28/2024
cs.LGcs.AI

Official code: Amir-Samadi/SAFE-RL (3 stars, last commit 2024-05-23).

Abstract

While Deep Reinforcement Learning (DRL) has emerged as a promising solution for intricate control tasks, the lack of explainability of the learned policies impedes its uptake in safety-critical applications, such as automated driving systems (ADS). Counterfactual (CF) explanations have recently gained prominence for their ability to interpret black-box Deep Learning (DL) models. CF examples are associated with minimal changes in the input, resulting in a complementary output by the DL model. Finding such alternations, particularly for high-dimensional visual inputs, poses significant challenges. Besides, the temporal dependency introduced by the reliance of the DRL agent action on a history of past state observations further complicates the generation of CF examples. To address these challenges, we propose using a saliency map to identify the most influential input pixels across the sequence of past observed states by the agent. Then, we feed this map to a deep generative model, enabling the generation of plausible CFs with constrained modifications centred on the salient regions. We evaluate the effectiveness of our framework in diverse domains, including ADS, Atari Pong, Pacman and space-invaders games, using traditional performance metrics such as validity, proximity and sparsity. Experimental results demonstrate that this framework generates more informative and plausible CFs than the state-of-the-art for a wide range of environments and DRL agents. In order to foster research in this area, we have made our datasets and codes publicly available at https://github.com/Amir-Samadi/SAFE-RL.

View on arXivView PDF

Code Implementations(1)

30Shell, PythonNov 14, 20232 years ago

Similar Papers

Cite this paper

@article{samadi2024saferl,
  title  = {SAFE-RL: Saliency-Aware Counterfactual Explainer for Deep Reinforcement Learning Policies},
  author = {Amir Samadi and Konstantinos Koufos and Kurt Debattista and Mehrdad Dianati},
  year   = {2024},
  eprint = {2404.18326},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.18326v1}
}

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

Discussion