Skip to main content
QUICK REVIEW

[Paper Review] Contrastive Explanations for Reinforcement Learning via Embedded Self Predictions

Zhengxian Lin, Kim-Ho Lam|arXiv (Cornell University)|Oct 11, 2020
Explainable Artificial Intelligence (XAI)Computer Science14 references11 citations
TL;DR

This paper proposes the Embedded Self-Prediction (ESP) model, a deep reinforcement learning architecture that explains action preferences by contrasting human-understandable future predictions via generalized value functions (GVFs). It trains GVFs to be self-predicting of the agent’s optimal policy, enabling sound, contrastive explanations through integrated gradients and minimal sufficient explanations, validated in a complex real-time strategy game with insightful, human-interpretable results.

ABSTRACT

We investigate a deep reinforcement learning (RL) architecture that supports explaining why a learned agent prefers one action over another. The key idea is to learn action-values that are directly represented via human-understandable properties of expected futures. This is realized via the embedded self-prediction (ESP)model, which learns said properties in terms of human provided features. Action preferences can then be explained by contrasting the future properties predicted for each action. To address cases where there are a large number of features, we develop a novel method for computing minimal sufficient explanations from anESP. Our case studies in three domains, including a complex strategy game, show that ESP models can be effectively learned and support insightful explanations.

Motivation & Objective

  • To develop a deep RL agent that explains action preferences using human-understandable, contrastive future predictions rather than raw Q-values.
  • To address the challenge of explaining complex action preferences in high-dimensional state spaces by embedding meaningful, domain-provided features into the value function.
  • To ensure explanation soundness by training GVFs to be self-predicting of the agent’s own greedy policy.
  • To simplify explanations in high-feature settings using minimal sufficient explanations and integrated gradients for feature attribution.

Proposed method

  • The ESP model embeds generalized value functions (GVFs) into the action-value function, where each GVF predicts the expected discounted accumulation of a human-provided feature over future trajectories.
  • GVFs are trained to be self-predicting: the policy derived from the Q-function must align with the policy that maximizes the predicted GVF values.
  • The ESP-DQN algorithm is introduced with theoretical convergence guarantees in the tabular setting and empirical validation in deep RL.
  • Integrated gradients (IG) are applied to compute feature attributions that explain why one action is preferred over another, ensuring soundness in attribution.
  • Minimal sufficient explanations (MSE) are used to identify the smallest set of features that preserve the explanation’s validity, improving interpretability in high-dimensional feature spaces.
  • The framework is evaluated in three domains, including a complex real-time strategy game (StarCraft II), using both qualitative and quantitative analysis of GVF predictions and attributions.

Experimental results

Research questions

  • RQ1Can a deep RL agent provide contrastive explanations of action preferences using human-understandable future properties rather than raw Q-values?
  • RQ2How can GVFs be embedded into the Q-function in a way that ensures the agent's policy is consistent with the predicted future properties?
  • RQ3Can integrated gradients produce sound, faithful attributions of feature contributions to action preferences in the context of GVFs?
  • RQ4How can minimal sufficient explanations be computed to simplify complex, high-dimensional explanations without losing fidelity?
  • RQ5To what extent do the explanations produced by the ESP model align with domain knowledge and reveal both valid reasoning and flaws in the agent’s behavior?

Key findings

  • In the StarCraft II case study, the ESP model correctly identified that purchasing +8 marines leads to faster wins by reducing enemy Immortal damage and increasing friendly marine positioning near the enemy base.
  • The model revealed that sub-optimal actions led to higher expected damage and base destruction probabilities, consistent with game mechanics, validating the model’s reasoning.
  • Integrated gradients attributed the top preference to defending against enemy Immortals (F94), showing the agent prioritizes threat mitigation over unit quantity.
  • Minimal sufficient explanations successfully reduced the number of relevant features, enabling users to focus on the most salient factors behind action preferences.
  • The model uncovered flaws in GVF predictions, such as negative expected surviving units, suggesting the need for output constraints like ReLU in training.
  • Explanations aligned with known game mechanics—e.g., marines counter Immortals, banelings counter marines—demonstrating the model captures domain-relevant strategic logic.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.