Causal State Distillation for Explainable Reinforcement Learning
Wenhao Lu, Xufeng Zhao, Thilo Fryen, Jae Hee Lee, Mengdi Li, Sven Magg, Stefan Wermter
TL;DR
This work tackles explainability in reinforcement learning by introducing Causal State Distillation, a framework that learns latent causal factors $\alpha$ from states while separating non-causal components $\beta$, and ties them to actions $a$ and multi-channel rewards $r = \sum_i r^i$ via a structural causal model. It imposes causal sufficiency, sparsity, and orthogonality on the causal factors through an information-theoretic learning objective, enabling local explanations in the form of interpretable masks (R-Mask and Q-Mask) that reflect cause-driven attention to state components. The methodology includes interventions on $\beta$, metrics for causal intervention and sufficiency, sparsity and orthogonality constraints, and an optimization procedure that combines entropy, mutual information, and L1 penalties, with practical lite variants. Empirical results on Atari games (e.g., Gopher, MsPacman) and a Monster-Treasure toy demonstrate that causal factors yield meaningful, disentangled explanations with competitive performance, and qualitative masks illustrate the specific state components driving actions and sub-rewards. The work suggests broader applicability to counterfactual explanations and multi-domain RL, offering a principled alternative to post-hoc saliency by grounding explanations in the agent’s learning dynamics and causal structure.
Abstract
Reinforcement learning (RL) is a powerful technique for training intelligent agents, but understanding why these agents make specific decisions can be quite challenging. This lack of transparency in RL models has been a long-standing problem, making it difficult for users to grasp the reasons behind an agent's behaviour. Various approaches have been explored to address this problem, with one promising avenue being reward decomposition (RD). RD is appealing as it sidesteps some of the concerns associated with other methods that attempt to rationalize an agent's behaviour in a post-hoc manner. RD works by exposing various facets of the rewards that contribute to the agent's objectives during training. However, RD alone has limitations as it primarily offers insights based on sub-rewards and does not delve into the intricate cause-and-effect relationships that occur within an RL agent's neural model. In this paper, we present an extension of RD that goes beyond sub-rewards to provide more informative explanations. Our approach is centred on a causal learning framework that leverages information-theoretic measures for explanation objectives that encourage three crucial properties of causal factors: causal sufficiency, sparseness, and orthogonality. These properties help us distill the cause-and-effect relationships between the agent's states and actions or rewards, allowing for a deeper understanding of its decision-making processes. Our framework is designed to generate local explanations and can be applied to a wide range of RL tasks with multiple reward channels. Through a series of experiments, we demonstrate that our approach offers more meaningful and insightful explanations for the agent's action selections.
