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.
Introduction
Reinforcement Learning (RL) agents have achieved remarkable success in complex domains, yet they remain largely "black boxes." While an agent might perform optimally, human users often struggle to understand the rationale behind specific actions. Traditional explainability tools, such as saliency maps, frequently highlight correlations rather than true causal drivers of behavior.
Reward Decomposition (RD) offers a more structured approach by breaking down a scalar reward into multiple sub-reward channels. While RD clarifies what objective an agent is pursuing, it fails to explain which specific elements of the environment state triggered that pursuit. This paper introduces Causal State Distillation, a framework that bridges this gap by identifying the specific state components—causal factors—that drive individual reward channels.
Methodology
The proposed framework is grounded in Structural Causal Models (SCM). The primary goal is to decompose the environment state $s$ into a set of causal factors ($\alpha$) that influence actions and rewards, while isolating non-causal factors ($\beta$) that represent irrelevant noise.
Causal Desiderata
To ensure that the distilled factors provide meaningful explanations, the framework enforces three core properties:
- Causal Sufficiency: The factors must contain all necessary information to predict a specific reward or action.
- Sparsity: Factors should be as concise as possible, masking out redundant or irrelevant information.
- Orthogonality: Factors corresponding to different rewards should be independent, ensuring that explanations for distinct objectives do not overlap.
Training Paradigms
The authors introduce two primary training methods: R-Mask, which distills factors by training the agent to predict immediate sub-rewards from masked states, and Q-Mask, which ensures the agent's Q-values rely only on specific masked components.
A key technical innovation is the use of Fourier Transform interventions. By perturbing the amplitude of an image while preserving its phase, the model is forced to ignore low-level visual noise and focus on high-level causal structures.
Experimental Evaluation
The framework was tested across three diverse environments: Monster-Treasure (a grid-world for verifying mask convergence), Gopher (an Atari task with rewards for "bonking gophers" and "filling holes"), and MsPacman (a dynamic environment with interdependent rewards).
Results and Insights
The experiments yielded several key findings:
- Fidelity and Performance: In the Gopher environment, the R-Mask approach achieved a fidelity score of 84.58%, meaning the agent's decisions remained consistent even when using only the distilled causal factors. Crucially, this was achieved without significant performance loss.
- Interpretability: Qualitative analysis showed that R-Mask successfully decoupled environment features. In Gopher, distinct masks focused on the gopher/avatar versus the ground/holes, providing human-readable explanations.
- Reward vs. Q-Value Saliency: The authors observed that saliency maps based on immediate rewards are significantly more interpretable than those based on Q-values, which tend to "smear" causal information across time.
Conclusion
Causal State Distillation provides a robust method for generating intrinsic explanations in RL. By forcing agents to learn sparse, orthogonal causal factors during training, the framework ensures that explanations are grounded in the agent's actual decision-making logic. Future work will explore handling interdependent rewards and integrating natural language labels to further enhance human understanding.
Summary updated