REVEAL-IT: REinforcement learning with Visibility of Evolving Agent poLicy for InTerpretability

Shuang Ao, Simon Khan, Haris Aziz, Flora D. Salim · Submission to ICLR 2025 · Rejected

TL;DR

REVEAL-IT reframes explainable reinforcement learning (XRL) by visualizing how an agent’s policy neural network evolves throughout training, rather than inspecting isolated single-step decisions. By coupling node-link visualization graphs with a Graph Neural Network (GNN) explainer and predictor, it highlights critical policy weight updates and uses predicted learning progress to dynamically optimize curriculum task sequences, boosting both interpretability and sample efficiency.

What Problem Does This Paper Address?

Understanding why deep reinforcement learning (RL) agents succeed or fail in complex, long-horizon environments remains open and difficult. Existing explainability approaches suffer from key bottlenecks:

  1. Environmental simplicity: Value-distribution and visual saliency maps work well in 2D grid worlds or Atari games, but break down in 3D and high-dimensional observation spaces.
  2. Causal model brittleness: Structural Causal Models (SCMs) and counterfactual methods require explicit causal assumptions and graph specifications that are impractical for complex tasks requiring hundreds of environment steps.
  3. Single-step myopic focus: Most XRL tools analyze individual decisions post-hoc rather than explaining how capabilities were accumulated during the learning process itself.

Methods

REVEAL-IT monitors the agent's policy network as a structured graph and uses GNNs to translate parameter dynamics into actionable training curricula:

  • Policy Network Visualization: The agent’s multi-layer perceptron (MLP) policy is modeled as a node-link diagram $G_O = (V, E)$, where nodes represent neurons and edges represent weights. Updates across iterations are captured as edge feature differences $|\mathcal{X}_{T+1}^i - \mathcal{X}_T^i|$.
  • GNN-Based Predictor: A GNN predicts the agent's learning progress on sub-task $n$, defined as the expected reward gain $\mathcal{P}(\text{task}_n, \pi_t) = R(\text{task}_n, \pi_t) - R(\text{task}_n, \pi_{t-1})$.
  • GNN Explainer: Adapting principles from PGExplainer, the explainer isolates an optimal subgraph $G_X \subset G_O$ of critical weight updates that directly correlate with the active neurons triggered during evaluation.
  • Curriculum Task Optimization: Instead of training on static sub-task orderings, an $\epsilon$-greedy scheduler selects upcoming tasks based on the GNN predictor’s estimated learning progress. Once an agent masters common sub-skills, sampling frequencies adapt to emphasize unlearned capabilities.
[Agent Explores & Updates Policy] 
       │
       ▼
[Track Parameter Changes: Graph Go] 
       │
       ├──► [GNN Explainer] ──► Highlights Crucial Policy Subgraphs
       │
       └──► [GNN Predictor] ──► Estimates Learning Progress ΔR ──► Dynamic Sub-Task Selection

Datasets

The authors evaluated their framework across two primary benchmarks:

  • ALFWorld: An embodied AI benchmark based on Ai2Thor and TextWorld featuring multi-step household tasks across six categories (Pick & Place, Clean & Place, Heat & Place, Cool & Place, Look in Light, Pick Two & Place). Tasks were tested in both visual-interaction and text-engine modalities.
  • OpenAI Gym: Six continuous control benchmarks (HalfCheetah, Hopper, InvertedPendulum, Reacher, Swimmer, Walker) spanning locomotion and manipulation.

No new benchmarks were created; all tasks were derived from established suites.

Key Insights and Ideas

  • Capabilities Form Functional Subgraphs: Tasks with overlapping common-sense semantics (e.g., "open microwave" and "take apple from microwave") reuse shared clusters of policy nodes, visualized clearly in parameter update space.
  • Explanation Informs Active Curriculum Design: Understanding the policy's evolving structure directly guides training. Tasks focusing on foundational skills (like "look" or "pick") naturally dominate early iterations. Once these shared nodes stabilize, the curriculum shifts toward complex end-stage manipulations ("clean", "heat"), preventing wasteful exploration on already-mastered sub-skills.
  • Co-training GNNs with RL: Unlike static post-hoc explainers, training the GNN predictor and explainer concurrently alongside the online RL agent enables the explainer to adapt as policy dynamics shift across learning regimes.

Key Results

  • ALFWorld (Visual): REVEAL-IT achieved an average success rate of 0.80, significantly surpassing vision-language baselines such as InstructBLIP (0.22), MiniGPT-4 (0.16), and standard PPO (0.04), approaching human performance (0.91).
  • Explainer Ablation: Replacing REVEAL-IT's tailored explainer with standard GNN explainer baselines dropped ALFWorld success from 0.80 to 0.64 (GNNexplainer) and 0.52 (MixupExplainer).
  • OpenAI Gym Efficiency: Across PPO, A2C, and Policy Gradient (PG) algorithms, integrating REVEAL-IT reduced required training steps by 10–20% (e.g., from 1.0M to 0.8M–0.9M steps) while matching or improving asymptotic reward (e.g., Walker PG reward increased from 1280.29 to 1546.38).

Limitations and Future Work

  • Multimodal Separation: REVEAL-IT was evaluated on visual and textual interfaces separately; it does not yet handle joint cross-modal inputs simultaneously.
  • Network Architecture Scalability: The node-link visualization and GNN graph extraction are designed around MLP policy heads. Extending this to large transformer-based policies or vision backbones remains a challenge due to edge density.
  • Human-Facing Interpretability: Explanations currently consist of highlighted graph structures and sub-task distributions. Translating these graph-level updates into natural-language explanations remains an important direction for future work.

Summary updated

Abstract

Understanding the agent's learning process, particularly the factors that contribute to its success or failure post-training, is crucial for comprehending the rationale behind the agent's decision-making process. Prior methods clarify the learning process by creating a structural causal model (SCM) or visually representing the distribution of value functions. Nevertheless, these approaches have constraints as they exclusively function in 2D-environments or with uncomplicated transition dynamics. Understanding the agent's learning process in complicated environments or tasks is more challenging. In this paper, we propose REVEAL-IT, a novel framework for explaining the learning process of an agent in complex environments. Initially, we visualize the policy structure and the agent's learning process for various training tasks. By visualizing these findings, we can understand how much a particular training task or stage affects the agent's performance in the test. Then, a GNN-based explainer learns to highlight the most important section of the policy, providing a more clear and robust explanation of the agent's learning process. The experiments demonstrate that explanations derived from this framework can effectively help optimize the training tasks, resulting in improved learning efficiency and final performance.
BibTeX
@misc{ao2024reveal,
  author = {Shuang Ao and Simon Khan and Haris Aziz and Flora D. Salim},
  title = {{REVEAL-IT: REinforcement learning with Visibility of Evolving Agent poLicy for InTerpretability}},
  year = {2024},
  eprint = {2406.14214},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.14214},
}
Figure