A Theoretical Framework for Explaining Reinforcement Learning with Shapley Values

Daniel Beechey, Thomas M. S. Smith, Özgür Şimşek
5/12/2025
cs.LG

No official code found. Best implementation: djeb20/sverl (0 stars, last commit 2025-09-21).

Abstract

Reinforcement learning agents can achieve super-human performance in complex decision-making tasks, but their behaviour is often difficult to understand and explain. This lack of explanation limits deployment, especially in safety-critical settings where understanding and trust are essential. We identify three core explanatory targets that together provide a comprehensive view of reinforcement learning agents: behaviour, outcomes, and predictions. We develop a unified theoretical framework for explaining these three elements of reinforcement learning agents through the influence of individual features that the agent observes in its environment. We derive feature influences by using Shapley values, which collectively and uniquely satisfy a set of well-motivated axioms for fair and consistent credit assignment. The proposed approach, Shapley Values for Explaining Reinforcement Learning (SVERL), provides a single theoretical framework to comprehensively and meaningfully explain reinforcement learning agents. It yields explanations with precise semantics that are not only interpretable but also mathematically justified, enabling us to identify and correct conceptual issues in prior explanations. Through illustrative examples, we show how SVERL produces useful, intuitive explanations of agent behaviour, outcomes, and predictions, which are not apparent from observing agent behaviour alone.

View on arXivView PDF

Code Implementations(1)

djeb20/sverlCommunity74%

A theoretical framework for explaining reinforcement learning with Shapley values

01PythonApr 1, 20251 years ago

Similar Papers

Cite this paper

@article{beechey2025theoretical,
  title  = {A Theoretical Framework for Explaining Reinforcement Learning with Shapley Values},
  author = {Daniel Beechey and Thomas M. S. Smith and Özgür Şimşek},
  year   = {2025},
  eprint = {2505.07797},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.07797v2}
}

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

Discussion