NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Explainable Reinforcement Learning Agents Using World Models

Madhuri Singh, Amal Alabdulkarim, Gennie Mansi, Mark O. RiedlarXiv 2025 · DOI

Introduction

Deep Reinforcement Learning (DRL) agents often operate as "black boxes," making it difficult for non-experts to understand the reasoning behind specific actions or failures. Traditional Explainable AI (XAI) methods frequently focus on feature importance—highlighting which pixels an agent prioritized—but these insights rarely translate into actionable steps for a user. This paper introduces a novel approach using a "Reverse World Model" (RWM) to generate visual counterfactual explanations, showing users what the environment would have needed to look like for the agent to have performed a desired action.

Visualizing counterfactual explanations through expected states.

Methodology: The Reverse World Model

The proposed system builds upon the DreamerV3 framework, which utilizes a Forward World Model to predict future states ($s_{t+1}$) based on current states ($s_t$) and actions ($a_t$). The key innovation is the integration of a Reverse World Model (RWM).

Architecture of the Reverse World Model (RWM).

While the forward model "dreams" about the future, the RWM is trained to look into the past. It predicts the prior embedded state ($s_t$) given a future state and the action taken. When a user asks, "Why didn't you perform Action B?", the system uses the RWM to hallucinate an image of the world state that would have prompted the agent's policy to select that alternative action. By comparing the real environment to this hallucinated "expected" state, users can identify specific environmental discrepancies—such as a missing object or an unexpected texture—that caused the agent to deviate from the expected behavior.

Experimental Evaluation

The researchers conducted a human participant study ($N=70$) using a modified version of the "Crafter" environment. To ensure participants relied solely on the agent's logic, the tasks involved fictional coffee recipes with counter-intuitive ingredients. Participants were tasked with diagnosing agent failures across four scenarios: object movement, removal, obstruction, or the removal of non-essential items.

The study compared a control group (viewing only failure videos) against a treatment group provided with RWM-generated "expected" states. The results demonstrated that the RWM significantly improved diagnostic accuracy, with the treatment group correctly identifying failure causes 64.86% of the time, compared to 26.52% in the control group. Furthermore, the RWM explanations reduced cognitive load (measured via the NASA-TLX index) and increased user trust and satisfaction.

Conclusion and Future Directions

The Reverse World Model provides a bridge between complex neural policies and human-understandable environmental changes. By showing "what would have needed to be true," the system empowers users to manipulate the physical environment to guide agent behavior. Future work aims to scale this approach to high-fidelity 3D environments and explore "closed-loop" systems where users actively correct environments based on these visual explanations.

Summary updated

BibTeX
@misc{singh2025explainable,
  author = {Madhuri Singh and Amal Alabdulkarim and Gennie Mansi and Mark O. Riedl},
  title = {{Explainable Reinforcement Learning Agents Using World Models}},
  year = {2025},
  eprint = {2505.08073},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.08073},
}
Figure