Introduction
As Reinforcement Learning (RL) agents, particularly those utilizing Deep RL, grow in complexity, they increasingly suffer from a lack of transparency. This "black box" nature creates a significant hurdle for human observers who may find an agent's behavior counterintuitive or unexpected. Traditional explainability (XAI) methods often focus on the internal weights of neural networks or require deep domain expertise. However, these approaches frequently overlook the fundamental structure of the environment—the Markov Decision Process (MDP).
This research introduces a novel framework that shifts the focus from the agent's internal architecture to the environment model itself. By identifying specific model transforms—abstractions or simplifications of the world—the system can explain why an agent behaves in a certain way by finding a version of the environment where that behavior aligns with human expectations.
The RLPE Framework
The authors formalize this approach as the Reinforcement Learning Policy Explanation (RLPE) problem. This framework involves a tripartite interaction between an Actor, an Observer, and an Explainer.
In this setup:
- The Actor: An RL agent (e.g., DQN, SARSA) operating within a standard MDP.
- The Observer: A human or system that holds an "anticipated policy" ($\tilde{\pi}$)—a belief about how the agent should act based on a potentially incomplete understanding of the environment.
- The Explainer: A system tasked with bridging the gap between the agent's actual policy ($\pi$) and the observer's anticipated policy.
The core innovation lies in the use of Model Transforms. These are formal abstractions, such as "Most Likely Outcome" (ignoring low-probability events) or "Precondition Relaxation" (ignoring specific requirements for actions). An explanation is defined as a set of transforms $T$ that, when applied to the original environment, results in a transformed environment where the agent's behavior matches the observer's expectations.
Search Strategies for Explanations
Finding the optimal set of transforms is a search problem. The authors evaluated three distinct strategies:
- BASE: An exhaustive search using a Dijkstra-like approach to find the minimal set of transforms.
- PRE-TRAIN: A method that uses bootstrapped learning to prune the search space.
- CLUSTER: A strategy that groups similar transforms to accelerate the discovery process.
Experimental Results
The framework was tested across three benchmark environments: Taxi (deterministic), Frozen Lake (stochastic), and Apple Picking (stochastic resource collection). The results highlight a clear trade-off between computational cost and explanation accuracy.
As shown in the experimental data, the BASE method consistently achieved the highest success rates (often 100%), but at a significant temporal cost, sometimes requiring over 6 hours to find a solution. In contrast, the CLUSTER method provided a dramatic speedup, often reducing the search time to under an hour while maintaining high solution quality (e.g., 98% success in the Taxi domain for DQN). The PRE-TRAIN method showed limitations in highly stochastic environments like Frozen Lake, where it failed to find solutions in several cases, suggesting that heuristic pruning can be overly aggressive in complex state spaces.
Conclusion and Future Directions
By repurposing computational abstractions as tools for communication, this framework provides a path toward algorithm-agnostic explainability. It isolates the "why" of agent behavior by identifying exactly which environmental features or risks the agent is prioritizing or ignoring.
Future work will focus on relaxing the "strict matching" requirement, allowing for explanations that satisfy observers qualitatively even if policies do not match perfectly. Additionally, the authors plan to conduct human-subject studies to validate the interpretability of these model transforms and extend the framework to multi-agent scenarios.
Summary updated