Explainable Reinforcement Learning via Temporal Policy Decomposition
Franco Ruggeri, Alessio Russo, Rafia Inam, Karl Henrik Johansson
TL;DR
Temporal Policy Decomposition (TPD) addresses explainability in RL by restoring temporal detail in action outcomes via per-time-step Expected Future Outcomes. It uses off-policy fixed-horizon TD learning to estimate EFOs for all state-action pairs, enabling contrastive explanations between actions. The method supports two outcome classes—rewards and events—and provides a concrete, model-free mechanism to reveal when particular outcomes are likely and how they shape rewards. Experiments in a stochastic Taxi domain demonstrate accurate explanations and show how these insights can guide reward shaping and improve trust in RL systems.
Abstract
We investigate the explainability of Reinforcement Learning (RL) policies from a temporal perspective, focusing on the sequence of future outcomes associated with individual actions. In RL, value functions compress information about rewards collected across multiple trajectories and over an infinite horizon, allowing a compact form of knowledge representation. However, this compression obscures the temporal details inherent in sequential decision-making, presenting a key challenge for interpretability. We present Temporal Policy Decomposition (TPD), a novel explainability approach that explains individual RL actions in terms of their Expected Future Outcome (EFO). These explanations decompose generalized value functions into a sequence of EFOs, one for each time step up to a prediction horizon of interest, revealing insights into when specific outcomes are expected to occur. We leverage fixed-horizon temporal difference learning to devise an off-policy method for learning EFOs for both optimal and suboptimal actions, enabling contrastive explanations consisting of EFOs for different state-action pairs. Our experiments demonstrate that TPD generates accurate explanations that (i) clarify the policy's future strategy and anticipated trajectory for a given action and (ii) improve understanding of the reward composition, facilitating fine-tuning of the reward function to align with human expectations.
