Bridging the Gap: Providing Post-Hoc Symbolic Explanations for Sequential Decision-Making Problems with Black Box Simulators

Sarath Sreedharan, Utkarsh Soni, Mudit Verma, Siddharth Srivastava, Subbarao Kambhampati

Abstract

AI agents in sequential decision-making tasks often operate using inscrutable internal representations, creating a vocabulary mismatch with human users. This paper presents a framework for generating post-hoc symbolic explanations by building local symbolic approximations of an agent's model using human-provided concepts. By identifying missing preconditions or higher costs in user-suggested alternative plans (foils), the system provides contrastive explanations that significantly improve human task performance and understanding compared to traditional saliency-based methods.

Introduction

As AI systems are increasingly deployed in high-stakes environments like robotics and complex planning, the need for interpretability becomes paramount. While traditional XAI focuses on one-shot classification, sequential tasks require explaining why a specific sequence of actions was chosen over another. A major hurdle is the "vocabulary mismatch": agents reason over raw data (pixels, RAM states), while humans reason using high-level concepts (e.g., "the door is locked"). This work addresses this gap by translating an agent's inscrutable logic into a symbolic language familiar to humans.

Methods

The proposed framework operates by building a bridge between the agent's internal state and human-understandable concepts. The process involves:

  1. Concept Mapping: Binary classifiers are trained to detect user-specified propositional concepts (e.g., "agent is on a ladder") within the environment.
  2. Local Symbolic Approximation: The system builds a "local" symbolic model around specific decision points. It samples the agent's simulator to learn action preconditions and costs in terms of the human's vocabulary.
  3. Contrastive Explanation: When a user suggests an alternative plan (a "foil"), the system compares it to the agent's plan. It identifies the specific reason the foil is worse—either it is impossible (a missing precondition) or it is more expensive (higher cost).
  4. Explanatory Confidence: A probabilistic graphical model calculates a confidence score to ensure the system only provides explanations it is statistically certain about, accounting for potential classifier noise.
Overview of the post-hoc symbolic explanation framework.

Key Results

The framework was evaluated in complex environments including Montezuma’s Revenge and custom Sokoban variants. In Montezuma's Revenge, the system successfully explained plan failures by identifying missing preconditions, such as a skull blocking a path.

Example of contrastive plan analysis in Montezuma's Revenge.

User studies revealed a strong preference for symbolic explanations over traditional visual heatmaps. Key findings include:

  • Human Preference: 19 out of 20 participants preferred symbolic feedback over being shown raw failing actions.
  • Improved Performance: Users receiving symbolic explanations completed Sokoban levels in 43.78 seconds on average, compared to 134.24 seconds for those using saliency maps.
  • High Fidelity: The search algorithms reached near 100% accuracy in identifying model components once a sufficient sampling budget (500-1000 samples) was reached.

Discussion and Limitations

A key insight of this research is that AI agents do not need to reason symbolically to provide symbolic explanations; the burden of translation lies with the AI. By focusing on minimal, selective explanations, the system aligns with human cognitive preferences.

However, the system currently relies on humans to provide the initial vocabulary. If a critical concept is missing from the user-provided list, the system may fail to find an explanation. Future work aims to explore "active concept acquisition," where the AI identifies when its current vocabulary is insufficient and asks the human for new concepts. Additionally, while the current framework focuses on deterministic settings, extending these methods to stochastic environments remains an important future direction.

Summary updated

BibTeX
@inproceedings{sreedharan2022bridging,
  author = {Sarath Sreedharan and Utkarsh Soni and Mudit Verma and Siddharth Srivastava and Subbarao Kambhampati},
  title = {{Bridging the Gap: Providing Post-Hoc Symbolic Explanations for Sequential Decision-Making Problems with Black Box Simulators}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=KbhAk2BEqMa},
}
Figure