Learning from Explanations With Maximum Likelihood Inverse Reinforcement Learning

Silvia Tulli, Francisco S. Melo, Ana Paiva, Mohamed ChétouaniResearch 2022

Abstract

This research explores a human-inspired approach to agent training: Learning from Explanations (LfE). By incorporating structured explanations into a Maximum Likelihood Inverse Reinforcement Learning (IRL) framework, the authors demonstrate that agents can learn significantly faster than through traditional rewards or demonstrations. However, a user study with 150 participants reveals a trade-off: while explanations are computationally efficient for the learner, human teachers prefer demonstrations due to lower cognitive demand, reserving explanations for high-uncertainty situations where the learner is far from the goal.

Introduction

In the fields of Reinforcement Learning (RL) and Inverse Reinforcement Learning (IRL), agents typically learn from reward signals (LfR) or by mimicking expert demonstrations (LfD). While effective, these methods ignore a fundamental aspect of human pedagogy: the explanation. Humans often teach by contrasting actions and highlighting future consequences—e.g., "Do $a$ instead of $b$ because it leads to $s'$." This paper formalizes this process, enabling agents to ingest contrastive, future-oriented feedback to accelerate the recovery of an underlying reward function.

Methodology

Formalizing Explanations

The authors represent an explanation as a tuple: $(s, a, b, s', v)$. In this model, an expert indicates that in state $s$, action $a$ is better or worse ($v$) than action $b$ because it eventually leads to state $s'$. The agent updates its internal reward function by maximizing the likelihood of these explanations, comparing the expected future rewards (Q-values) of the actions and the transition probabilities to the referenced future state.

Evaluation

The framework was evaluated through two primary lenses:

  1. Computational Simulations: LfE was compared against LfD and LfR in three 2D grid-world navigation environments to measure learning speed and policy optimality.
  2. Human User Study: 150 participants on Prolific were asked to teach a learner in various grid-world scenarios, choosing between rewards, demonstrations, and explanations. The study specifically analyzed how the learner's distance from the goal influenced the teacher's choice of signal.

Key Results

Simulation Performance

Computational results showed that explanations are highly sample-efficient. LfE agents achieved near-optimal performance significantly faster than LfD or LfR agents. Across all three environments, a single learning update from an explanation often allowed the agent to outperform those trained on multiple demonstrations ($p < 0.001$ for Environments 1 and 2).

Human Teaching Preferences

Despite the efficiency of explanations for the agent, the user study revealed that humans significantly prefer giving demonstrations ($p = 0.02$ compared to explanations). Demonstrations are perceived as lower-bandwidth and cognitively simpler for the teacher.

The Distance Effect

A critical finding was the impact of context on teaching style. Statistical analysis confirmed a significant main effect of the learner's distance from the goal on the chosen signal. Humans were most likely to provide explanations when the learner was far from the goal—where ambiguity and the need for long-term planning are highest. As the learner approached the goal, teachers shifted toward simpler demonstrations.

Discussion and Conclusion

This research highlights a fundamental tension in human-robot interaction: the most efficient signal for a machine (the explanation) is often the most taxing for a human to produce. The "Distance Effect" suggests that humans are adaptive teachers who reserve high-effort explanations for the most critical or ambiguous phases of a task. Future work will explore Bayesian inference to handle the inherent uncertainty in human feedback and investigate how to scale these structured explanations to more complex, real-world environments.

Summary updated

BibTeX
@inproceedings{tulli2022learning,
  author = {Silvia Tulli and Francisco S. Melo and Ana Paiva and Mohamed Chétouani},
  title = {{Learning from Explanations With Maximum Likelihood Inverse Reinforcement Learning}},
  booktitle = {Research},
  year = {2022},
  doi = {10.21203/rs.3.rs-1439366/v1},
}
Figure