Explaining Reinforcement Learning: A Counterfactual Shapley Values Approach

Yiwei Shi, Qi Zhang, Kevin McAreavey, Weiru Liu
8/5/2024
cs.AI

No confident code implementation found for this paper.

Abstract

This paper introduces a novel approach Counterfactual Shapley Values (CSV), which enhances explainability in reinforcement learning (RL) by integrating counterfactual analysis with Shapley Values. The approach aims to quantify and compare the contributions of different state dimensions to various action choices. To more accurately analyze these impacts, we introduce new characteristic value functions, the ``Counterfactual Difference Characteristic Value" and the ``Average Counterfactual Difference Characteristic Value." These functions help calculate the Shapley values to evaluate the differences in contributions between optimal and non-optimal actions. Experiments across several RL domains, such as GridWorld, FrozenLake, and Taxi, demonstrate the effectiveness of the CSV method. The results show that this method not only improves transparency in complex RL systems but also quantifies the differences across various decisions.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{shi2024explaining,
  title  = {Explaining Reinforcement Learning: A Counterfactual Shapley Values Approach},
  author = {Yiwei Shi and Qi Zhang and Kevin McAreavey and Weiru Liu},
  year   = {2024},
  eprint = {2408.02529},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.02529v2}
}

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

Discussion