Inherently Explainable Reinforcement Learning in Natural Language

Xiangyu Peng, Mark O. Riedl, Prithviraj Ammanabrolu
12/16/2021
cs.HCcs.AIcs.CL
rl

Official code: xiangyu-peng/HEX-RL (6 stars, Python, last commit 2022-10-12).

Abstract

We focus on the task of creating a reinforcement learning agent that is inherently explainable -- with the ability to produce immediate local explanations by thinking out loud while performing a task and analyzing entire trajectories post-hoc to produce causal explanations. This Hierarchically Explainable Reinforcement Learning agent (HEX-RL), operates in Interactive Fictions, text-based game environments in which an agent perceives and acts upon the world using textual natural language.

Show full abstract

These games are usually structured as puzzles or quests with long-term dependencies in which an agent must complete a sequence of actions to succeed -- providing ideal environments in which to test an agent's ability to explain its actions. Our agent is designed to treat explainability as a first-class citizen, using an extracted symbolic knowledge graph-based state representation coupled with a Hierarchical Graph Attention mechanism that points to the facts in the internal graph representation that most influenced the choice of actions. Experiments show that this agent provides significantly improved explanations over strong baselines, as rated by human participants generally unfamiliar with the environment, while also matching state-of-the-art task performance.

View on arXivView PDF

Code Implementations(1)

61PythonJun 2, 20224 years ago

Similar Papers

Cite this paper

@article{peng2021inherently,
  title  = {Inherently Explainable Reinforcement Learning in Natural Language},
  author = {Xiangyu Peng and Mark O. Riedl and Prithviraj Ammanabrolu},
  year   = {2021},
  eprint = {2112.08907},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.08907}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.08907.svg)](https://codeofpaper.com/paper/2112.08907)

Discussion