Skip to main content
QUICK REVIEW

[Paper Review] Explainable Reinforcement Learning via Model Transforms

Mira Finkelstein, Lucy Liu|arXiv (Cornell University)|Sep 24, 2022
Explainable Artificial Intelligence (XAI)Computer Science7 citations
TL;DR

This paper proposes a novel framework for explainable reinforcement learning (XRL) that uses formal Markov Decision Process (MDP) transforms to generate human-interpretable explanations for discrepancies between an agent’s actual behavior and an observer’s expectations. Even when the environment model is incomplete or the agent is model-free, the method automatically searches for symbolic MDP transforms—such as state reduction or outcome relaxation—that align the agent’s policy with anticipated behavior, achieving high explanation quality with efficient search algorithms like PRE+CLUSTER.

ABSTRACT

Understanding emerging behaviors of reinforcement learning (RL) agents may be difficult since such agents are often trained in complex environments using highly complex decision making procedures. This has given rise to a variety of approaches to explainability in RL that aim to reconcile discrepancies that may arise between the behavior of an agent and the behavior that is anticipated by an observer. Most recent approaches have relied either on domain knowledge that may not always be available, on an analysis of the agent's policy, or on an analysis of specific elements of the underlying environment, typically modeled as a Markov Decision Process (MDP). Our key claim is that even if the underlying model is not fully known (e.g., the transition probabilities have not been accurately learned) or is not maintained by the agent (i.e., when using model-free methods), the model can nevertheless be exploited to automatically generate explanations. For this purpose, we suggest using formal MDP abstractions and transforms, previously used in the literature for expediting the search for optimal policies, to automatically produce explanations. Since such transforms are typically based on a symbolic representation of the environment, they can provide meaningful explanations for gaps between the anticipated and actual agent behavior. We formally define the explainability problem, suggest a class of transforms that can be used for explaining emergent behaviors, and suggest methods that enable efficient search for an explanation. We demonstrate the approach on a set of standard benchmarks.

Motivation & Objective

  • Address the challenge of explaining emergent behaviors in reinforcement learning agents, especially when policies deviate from human expectations.
  • Overcome limitations of existing XRL methods that rely on domain-specific knowledge or post-hoc analysis of neural networks.
  • Enable explanation generation using partial or approximate MDP models, even in model-free RL settings.
  • Develop an automated, scalable method to identify symbolic MDP transforms that reconcile agent behavior with observer expectations.
  • Improve efficiency of explanation search through pruning and policy bootstrapping techniques in complex environments.

Proposed method

  • Formalize the explainability problem as Reinforcement Learning Policy Explanation (RLPE), involving an actor, observer with an anticipated policy, and an explainer with access to a partial MDP model.
  • Leverage existing MDP transform literature—such as state space reduction, likely outcome relaxation, precondition relaxation, all-outcome determinization, and delete relaxation—to symbolically manipulate the environment model.
  • Apply parameterized transforms to individual actions or variables, with automatic grounding based on the environment’s structure and dynamics.
  • Implement three search strategies: BASE (Dijkstra-based optimal search), PRE-TRAIN (policy-bootstrapped search with focused updates), and PRE+CLUSTER (pruning via grouped transform evaluation).
  • Use a satisfaction ratio metric to evaluate alignment between the actor’s policy and the anticipated policy across states, with explanation length as a distance measure.
  • Limit search depth to three and use a cluster of CPUs for evaluation, focusing on single- and multi-agent benchmarks with DQN and PPO agents.

Experimental results

Research questions

  • RQ1Can formal MDP transforms be used to automatically generate meaningful explanations for discrepancies between an RL agent’s behavior and an observer’s expectations, even when the model is incomplete or the agent is model-free?
  • RQ2How effective are different search strategies (BASE, PRE-TRAIN, PRE+CLUSTER) in balancing explanation quality and computational efficiency?
  • RQ3To what extent can symbolic MDP transforms—such as relaxation or abstraction—reconcile the agent’s actual policy with the anticipated policy in standard RL benchmarks?
  • RQ4How does the method scale across single-agent and multi-agent environments with varying complexity and dynamics?
  • RQ5Can pruning based on grouped transform evaluation (e.g., applying delete relaxation to multiple actions) significantly reduce search time without sacrificing explanation quality?

Key findings

  • PRE+CLUSTER achieved the best trade-off between computation time and explanation quality, outperforming BASE and PRE-TRAIN in runtime while maintaining high satisfaction ratios.
  • In the Triangle Tireworld domain, PRE+CLUSTER was over 7 times faster than BASE, with only a minor drop in satisfaction ratio (84% success in the worst-case domain).
  • The average variance in satisfaction ratio across domains was low (0.03), indicating consistent performance across different environments.
  • In multi-agent settings with PPO, PRE+CLUSTER achieved the fastest runtimes and compromised on policy satisfaction rate by up to 10% compared to optimal methods.
  • The use of grouped transform evaluation and pruning in PRE+CLUSTER significantly reduced the number of individual transforms explored, improving search efficiency without major loss in accuracy.
  • The method successfully generated explanations in environments where transition dynamics were not explicitly defined, by first learning the transition matrix for precondition relaxation.

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.