Abstract
Saliency maps in Deep Reinforcement Learning (RL) are often criticized for being subjective and failing to explain the underlying logic of action selection. This paper proposes Action Reconstruction, a framework that transforms feature attributions into proxy functions that mimic an agent's behavior. By introducing a quantitative Agreement metric, the authors demonstrate that perturbation-based methods significantly outperform gradient-based ones in capturing the decision-making logic of Deep Q-Network (DQN) agents.
Introduction: The Challenge of RL Explanation
In supervised learning, models are often explained by identifying features that influence a classification (e.g., specific pixels identifying a cat). Applying these "feature attribution" methods to Deep RL is significantly more complex. RL agents do not merely classify; they follow a policy to maximize future rewards. Standard saliency maps might highlight what an agent "sees," but they often fail to explain why a specific action was chosen over alternatives. Furthermore, evaluating these explanations has historically been subjective, relying on researchers to decide if a heatmap "looks right."
Methodology: Action Reconstruction and Reachability
The authors introduce Action Reconstruction ($\hat{f}$), a method to build a "shadow model" that uses attribution scores to predict an agent's actions. This framework relies on several key components:
- Behavior-Level Attribution: Adapting methods like Occlusion or Integrated Gradients to identify which action a specific feature "attracts" the agent toward.
- Reachability ($r$): A function incorporating environment physics. In Pac-Man, for instance, a pellet ten tiles away is less "reachable"—and thus less immediately relevant—than a ghost one tile away.
- $\lambda$-Local Action Reconstruction ($\lambda$-LAR): This reconstructs actions by aggregating the "votes" of features within a specific reachability threshold ($\lambda$).
- Agreement Metric: A quantitative score measuring how frequently the reconstructed action matches the actual action taken by the DQN.
Key Insights: The Perceptual Horizon and Perturbation Superiority
The research reveals that well-trained agents operate within an optimal "perceptual horizon" ($\lambda$). They do not focus solely on the nearest object, nor do they process the entire screen equally; instead, they prioritize features within a reachability range that aligns with their learned logic.
One of the most striking findings is that simple perturbation-based methods, specifically Occlusion (OC-1), significantly outperform sophisticated gradient-based methods like Integrated Gradients (IG) or Smooth Gradient (SG). This suggests that for RL agents, observing how a model reacts to the absence of a feature provides a much clearer window into its decision-making than calculating local gradients.
Results and Discussion
The authors evaluated their framework using Atari environments (Pac-Man, Space Invaders, and Breakout). Key results include:
- Superior Agreement: In Binary Pac-Man, OC-1 reconstruction achieved an agreement score of 0.66 to 0.68, roughly double that of gradient-based methods (0.27-0.30).
- Monitoring Learning: The agreement metric allowed researchers to observe the learning process. They discovered that Pac-Man agents learn to avoid ghosts (survival) before they learn to target pellets (reward).
- Post-hoc vs. Self-Explaining: The reconstruction method outperformed "self-explaining" models with built-in attention, suggesting that high-quality explanations can be achieved without sacrificing performance or altering model architectures.
Limitations and Future Work
While promising, the framework currently relies on hand-crafted reachability functions (like $L_1$ distance). Future research may focus on automatically learning these functions from the environment. Additionally, the computational cost of finding the optimal $\lambda$ for LAR remains a challenge, though Kernel Action Reconstruction (KAR) offers a smoother, more efficient alternative.
Summary updated