Deep Reinforcement Learning (DRL) has achieved superhuman performance in complex games and robotics, but these agents remain notoriously opaque "black boxes." Most existing eXplainable AI (XAI) methods for RL focus on local explanations—identifying which pixels in a single frame caused an agent to take a specific action, like moving left or right.
However, these methods fail to capture strategy-level insights. They cannot tell you when the agent made the pivotal move that secured a victory or caused a defeat. This lack of transparency makes it difficult for developers to trust policies in critical fields like finance or autonomous driving, and it makes troubleshooting policy weaknesses nearly impossible.
To address this, researchers introduce EDGE (Strategy-level Explanation of Drl aGEnts), a novel framework that moves beyond explaining individual actions to explaining overall strategies. By identifying the specific time steps in a game episode that are most critical to the final reward, EDGE enables developers to debug, patch, and robustify agents.
How EDGE Works
The authors propose a self-explainable model that approximates the target DRL agent’s decision-making process. The architecture is designed to pinpoint the "clutch" moments in an episode that determine the final outcome.
The system consists of three main components:
- Feature Extraction: An RNN encoder processes the sequence of states and actions to create "time-step embeddings," while a shallow MLP creates an "episode embedding" to capture the overall context of the game.
- Deep Additive Gaussian Process (GP): This is the core innovation. Standard GPs struggle with high-dimensional data. EDGE uses a "deep additive kernel" that combines the RNN and MLP outputs to capture two types of dependencies: correlations between time steps within an episode, and similarities across different episodes.
- Interpretable Predictor: The GP outputs are fed into a linear regression (for continuous rewards) or a softmax layer (for discrete rewards). Because this final layer is linear, the regression coefficients (weights) serve as direct, global indicators of time-step importance.
To make the model computationally feasible—since GPs traditionally scale poorly at $O(N^3)$—the authors employ inducing points and variational inference to approximate the posterior distribution, allowing the model to scale to large RL datasets.
Key Results and Applications
The researchers evaluated EDGE on several representative environments, including Atari Pong (discrete actions, delayed rewards) and MuJoCo competitive games like You-Shall-Not-Pass and Kick-And-Defend (continuous control).
- Higher Fidelity: EDGE outperformed baselines (including Rudder, Saliency maps, and Attention-based RNNs) in "fidelity scores." This metric measures how much the final reward changes when the "critical" steps identified by the model are replaced with random actions. EDGE consistently identified the most impactful steps.
- Efficient Adversarial Attacks: By identifying and attacking only the top 30 critical steps, the authors reduced the agent's win rate significantly more effectively than attacking random steps or steps identified by other XAI methods (e.g., causing a 65.47% win rate drop in Pong).
- Policy Patching: The authors used EDGE to find exactly where an agent consistently failed. They created a simple "look-up table" of better actions for those specific moments, successfully patching the agent's behavior and improving its win rate without retraining the entire neural network.
- Robustness: In the You-Shall-Not-Pass game, EDGE revealed that agents were often distracted by adversarial "falling" behaviors of the opponent. By "blinding" the agent to the opponent during those specific critical time steps, they significantly improved the agent's win rate against attackers.
Broader Insights and Future Work
A core takeaway from EDGE is the distinction between strategy and action. The importance of a state is not just about the immediate action it triggers, but its joint contribution to the final result. A move might look standard to a traditional saliency map but be strategically decisive in the context of the whole episode. By using a Gaussian Process, EDGE successfully captures how these time steps work together as a correlated sequence.
While highly effective, the framework does have limitations. Despite using inducing points, Gaussian Processes still carry a higher computational overhead than simple neural networks. Additionally, the current model provides point estimates for importance. Future iterations could use full Bayesian inference (e.g., MCMC) to provide uncertainty bounds for the explanations themselves. Finally, extending this approach from Markov games to extensive-form games like Chess or Go remains an exciting open challenge.
Summary updated