A Unifying Framework for Causal Explanation of Sequential Decision Making

Samer B. Nashed, Saaduddin Mahmud, Claudia V. Goldman, Shlomo Zilberstein · DOI

Introduction

As autonomous systems like self-driving cars and robotic assistants become increasingly integrated into daily life, the ability for these agents to explain their decisions is critical for building human trust. However, sequential decision-making in stochastic environments involves complex long-term planning and large state spaces, making explanation a significant challenge. Existing Explainable AI (XAI) methods for planning are often fragmented, focusing on isolated components like rewards or current states without a unified theoretical foundation.

This paper introduces a formal framework that maps Markov Decision Processes (MDPs) onto Structural Causal Models (SCMs). By bridging these two mathematical structures, the authors provide a grounded way to identify multiple, semantically distinct causes for an agent's actions—such as specific state factors, rewards, or transition probabilities—which users significantly prefer over traditional heuristic-based explanations.

Methodology: From MDPs to Causal Graphs

The core of the proposed approach is a four-step pipeline designed to extract causal explanations from the computation used to solve an MDP.

  1. Graph Generation: The computation (e.g., value iteration) is represented as a causal graph where nodes are variables like states, rewards, and transitions, and edges represent their dependencies.
  2. Layering: This graph is transformed into a Layered Causal Graph (LCG). Information flows from "leaf" nodes (immediate rewards) through intermediate layers (value functions) to the final policy layer representing the action taken.
  3. Pruning: To simplify the model for a specific query, irrelevant nodes and edges are removed.
  4. Causal Inference: Two primary algorithms are used to find "weak causes": an exact recursive method based on causal theory and a more efficient "responsibility score" algorithm (MeanRESP) to rank variable influence.
The Layered Causal Graph (LCG) structure maps MDP components—including rewards (R), transition probabilities (T), and value functions (V)—into a hierarchical model for causal inference.

To address the "infinite horizon" problem common in robotics, the framework includes an approximation technique (Algorithm 3) that prunes future nodes that do not meaningfully impact the current decision.

Experimental Evaluation

The framework was evaluated using two distinct environments to test both logical consistency and human preference.

Robot Navigation Domain

A custom grid-world scenario was used for qualitative "sanity checks." In this environment, a robot navigates around hazards and "danger" zones to reach goals, occasionally visiting "service" stations for repairs. This setup allowed the researchers to verify that the causal logic correctly identified intuitive factors like proximity to danger or the need for maintenance.

The Robot Navigation Domain grid-world features goals, service stations, and danger zones, providing a controlled environment for testing causal logic.

Highway Driving Simulator

For a large-scale human user study, the authors used the highway-env benchmark. This simulator features an autonomous vehicle performing lane changes and speed adjustments in traffic, serving as the basis for evaluating user trust and preference.

Key Insights and Results

The unified nature of the framework allows it to generate diverse explanation types—State-based, Reward-based, Transition-based, or Value-based—using the same underlying mathematics. This versatility is crucial because human users often have different "mental models" and require different types of information to resolve confusion about an agent's behavior. Causal reasoning identifies the actual drivers of behavior (e.g., "time to collision") rather than just reporting state facts (e.g., "I was in the left lane").

In a study with 189 participants, causal explanations generated by this framework were preferred over state-of-the-art heuristic baselines with high statistical significance ($p < 0.0001$). Users showed a clear preference for explanations based on State Factors (e.g., "There was a truck ahead") and Value Functions (e.g., "This path had the highest expected safety") over raw rewards or transition probabilities. This preference remained consistent across various demographics, including age, gender, and technical experience.

Conclusion and Future Directions

While the framework provides a robust theoretical foundation for XAI in planning, challenges remain. The computational complexity of finding exact causes can be exponential, necessitating further work on real-time approximation for large-scale MDPs. Additionally, the current model assumes discrete variables; extending this to native continuous causal frameworks is a key area for future research. Finally, integrating these causal insights into Large Language Models (LLMs) could lead to more natural, conversational explanations for human users.

Summary updated

BibTeX
@inproceedings{nashed2023unifying,
  author = {Samer B. Nashed and Saaduddin Mahmud and Claudia V. Goldman and Shlomo Zilberstein},
  title = {{A Unifying Framework for Causal Explanation of Sequential Decision Making}},
  booktitle = {AAMAS},
  year = {2023},
}
Figure