A Human-Centric Method for Generating Causal Explanations in Natural Language for Autonomous Vehicle Motion Planning

Balint Gyevnar, Massimiliano Tamborski, Cheng Wang, Christopher G. Lucas, Shay B. Cohen, Stefano V. AlbrechtarXiv 2022 · DOI

Introduction

Trust remains a significant hurdle for the widespread adoption of autonomous vehicles (AVs). While safety and navigation capabilities have improved, the "black box" nature of AI decision-making often leaves passengers confused or anxious during unexpected maneuvers. To bridge this psychological gap, researchers from the University of Edinburgh and Five AI Ltd. developed XAVI (eXplainable Autonomous Vehicle Intelligence). XAVI aims to provide natural language explanations that are causally grounded in the vehicle's actual decision-making process, moving beyond simple descriptive summaries.

Problem Statement

Current Explainable AI (XAI) techniques often rely on model-agnostic surrogate models that approximate a system's logic. In safety-critical domains like autonomous driving, these approximations can be unfaithful to the underlying algorithm, potentially providing misleading justifications. Furthermore, human communication is naturally contrastive; passengers do not just want to know what the car saw, but why it chose one action over a specific alternative (e.g., "Why didn't you go straight?"). XAVI addresses the need for explanations that are both technically sound—reflecting the true internal logic—and intelligible to non-experts.

Methodology

XAVI is integrated with a "white-box" motion planner known as IGP2 (Interpretable Goal-based Planning). The system operates through a multi-stage pipeline:

  1. Motion Planning: IGP2 uses Monte Carlo Tree Search (MCTS) to evaluate various "macro-actions" (e.g., lane-following, exiting) while predicting the goals and trajectories of other road users.
  2. Bayesian Mapping: The MCTS search tree is mapped into a Bayesian Network (BN). This transformation allows the system to represent driving decisions, rewards (such as safety and speed), and outcomes as probabilistic random variables.
  3. Causal Extraction: To identify the primary cause of a decision, XAVI employs Kullback-Leibler (KL) divergence. By measuring how much the probability distribution of the ego vehicle's actions shifts when conditioned on the behavior of other vehicles, the system can isolate the most influential traffic participants.
  4. Natural Language Generation: The identified causal links are processed through a Context-Free Grammar (CFG) to produce human-readable text following a contrastive template: "If [Counterfactual Action], then [Effect] would have happened, because [Cause]."
XAVI System Architecture

Evaluation and Results

The system was evaluated using the CARLA simulator across two complex driving scenarios: a lane-change maneuver involving a cutting-in vehicle (S1) and a junction scenario with priority traffic (S2). Evaluation was benchmarked against rational explanations provided by the original IGP2 developers.

Key findings include:

  • Soundness: Because the explanations are derived directly from the planner's search tree, they accurately reflect the variables used in the decision-making process.
  • Contrastive Reasoning: The system successfully explained why alternative paths were rejected, such as identifying that a counterfactual action would have resulted in a collision or a slower arrival time.
  • Causal Accuracy: In Scenario S1, XAVI correctly identified that the ego vehicle changed lanes because staying in the current lane would have been slower due to a specific lead vehicle's predicted exit maneuver.
Generated Explanations for Scenario 1

Discussion and Future Work

XAVI demonstrates a robust framework for generating faithful, human-centric explanations. By focusing on the most relevant actors through KL divergence, it filters out environmental noise to provide concise justifications.

However, several areas for improvement remain. Currently, the system operates at the level of "macro-actions," lacking the granularity to explain subtle trajectory adjustments or braking. Additionally, the current implementation assumes pre-parsed queries; future iterations will need to incorporate Natural Language Understanding (NLU) to process raw passenger input. Finally, while the generated text is logically sound, formal user studies are required to quantify the impact of these explanations on human trust and cognitive load in real-world settings.

Summary updated

BibTeX
@misc{gyevnar2022human,
  author = {Balint Gyevnar and Massimiliano Tamborski and Cheng Wang and Christopher G. Lucas and Shay B. Cohen and Stefano V. Albrecht},
  title = {{A Human-Centric Method for Generating Causal Explanations in Natural Language for Autonomous Vehicle Motion Planning}},
  year = {2022},
  eprint = {2206.08783},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.08783},
}
Figure