Towards Interpretable Deep Reinforcement Learning with Human-Friendly Prototypes

Eoin M. Kenny, Mycal Tucker, Julie ShahICLR 2023

This research from MIT’s Computer Science & Artificial Intelligence Laboratory (CSAIL) introduces a novel approach to peeking inside the "black box" of Deep Reinforcement Learning (RL) without sacrificing the high performance that makes these models so powerful.

TL;DR

The authors present the Prototype-Wrapper Network (PW-Net), a method that transforms any pre-trained deep RL agent into an "interpretable-by-design" model. By forcing the agent to make decisions based on its similarity to human-friendly "prototypes" (representative examples), PW-Net maintains state-of-the-art performance while significantly improving a human's ability to predict when the agent will succeed or fail.

The Challenge of Opaque RL Models

Deep RL has conquered complex games like Go and Chess and shows immense promise in robotics and self-driving cars. However, these models are notoriously opaque. When an autonomous vehicle makes a sudden, unexpected turn, developers and users often cannot determine why.

Existing solutions for model interpretability usually fall into two camps:

  1. Post-hoc explanations: These generate "saliency maps" or visual highlights after a decision is made. Unfortunately, these can be "unfaithful"—the explanation might not accurately reflect the model's actual internal logic.
  2. Inherent interpretability: These models are built to be simple from the ground up (like decision trees). While transparent, they often struggle with high-dimensional data (like raw pixels) and usually perform worse than deep neural networks.

The authors seek a middle ground: a model that is inherently interpretable (pre-hoc) but retains the high performance of deep learning.

Methods: The Prototype-Wrapper Network

The core contribution is the Prototype-Wrapper Network (PW-Net). Instead of building a new, inherently simple agent from scratch, PW-Net "wraps" around an existing pre-trained black-box agent.

Architecture of the Prototype-Wrapper Network (PW-Net)
  • The Architecture: PW-Net takes the internal representations (latent space) of a pre-trained agent and passes them through specialized "projection networks." These networks map the state to specific spaces where they are compared against human-defined prototypes (e.g., an image of a car turning left).
  • Case-Based Reasoning: The agent’s final action is determined by how similar the current situation is to these prototypes. For example, the model's logic translates to: "I am turning left because this situation is 90% similar to my 'Turn Left' prototype."
  • Human-in-the-Loop: Humans manually specify the prototypes and a weight matrix that defines how each prototype affects an action (e.g., high similarity to a "Brake" prototype should increase the braking action).
  • Training: The wrapper is trained to mimic the original black-box agent's policy while being strictly constrained to use these prototype-based pathways.

Key Insights

  • No Performance Trade-off: Surprisingly, forcing the model to use human-interpretable prototypes did not degrade performance. In some cases, PW-Net actually slightly outperformed the original black-box agent.
  • The Power of Projection: A key technical breakthrough was using separate projection networks for each prototype. Previous work tried to put all prototypes in one latent space, which created "conflicting constraints." Giving each prototype its own "view" of the data solved this bottleneck.
  • Trust Calibration: A user study revealed that while black-box models often lead to "over-trust" (users assuming the agent is smarter than it is), PW-Net helps users accurately identify Out-of-Distribution (OOD) failures—situations the agent hasn't seen before and will likely fail in.
  • Robustness: The model's performance is remarkably robust to the choice of prototypes. Even randomly selected prototypes allowed the model to perform well, though human-friendly ones were necessary for actual human understanding.

Key Results

The researchers evaluated PW-Net across diverse environments, including continuous action spaces (Car Racing, Bipedal Walker) and discrete action spaces (Atari Pong, Lunar Lander).

Performance comparison on Car Racing and Bipedal Walker environments
  • Performance: In the Car Racing environment, PW-Net achieved a reward of 220.72, beating the Black-Box baseline of 218.41. In Bipedal Walker, it achieved 304.77, nearly matching the baseline's 310.71.
  • Baselines: PW-Net significantly outperformed other interpretable methods like VIPER (which uses decision trees) and k-Means clustering, which often failed to complete the tasks entirely.
  • User Study: Participants using PW-Net were significantly better at predicting if a car would crash ($p < .0001$) compared to those seeing no explanation or "non-human-friendly" explanations. It also demonstrably reduced the perceived mental workload for users.

Limitations and Future Work

  • Dependency on Pre-training: PW-Net currently requires a high-performing black-box agent to exist first. Future work could explore training the prototypes and the policy simultaneously from scratch.
  • Manual Selection: While the model is robust, it still requires a human to pick "good" prototypes and define the weight matrix. In extremely complex or non-visual domains, identifying these prototypes might be difficult.
  • Scaling: The authors suggest exploring "prototypical trajectories" (sequences of actions) rather than just static state snapshots to provide even deeper context for the agent's behavior.

Summary updated

BibTeX
@inproceedings{kenny2023towards,
  author = {Eoin M. Kenny and Mycal Tucker and Julie Shah},
  title = {{Towards Interpretable Deep Reinforcement Learning with Human-Friendly Prototypes}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=hWwY_Jq0xsN},
}
Figure