Introduction
When humans teach by demonstration, they don't just perform a task efficiently; they "show" it by choosing actions that maximize information for the learner. This paper introduces a Bayesian model for pedagogical demonstration and proves that human teachers naturally use disambiguating behaviors—like "looping" or taking roundabout paths—which significantly improve the performance of standard Inverse Reinforcement Learning (IRL) algorithms.
The Problem: The Assumption of Efficiency
In the field of Imitation Learning, Inverse Reinforcement Learning (IRL) is often used to help machines figure out why an expert is doing something. The goal is to infer the underlying "reward function" (the goals and constraints) from observed behavior.
However, most IRL algorithms make a fundamental assumption: the expert is simply "doing" the task as efficiently as possible. In the real world, humans rarely act this way when they know they are being watched by a student. If you’re teaching a novice how to handle raw chicken, you might wash your hands more ostentatiously or move more slowly to highlight safety steps. This "pedagogical intent"—the act of showing rather than just doing—is a powerful communicative signal that standard machine learning models completely ignore.
The authors set out to model this communicative intent and determine if machines can learn better when they recognize that a demonstrator is trying to be helpful.
Modeling Pedagogical Intent
The researchers developed a computational model called Pedagogical Inverse Reinforcement Learning. It draws on two main frameworks:
- Markov Decision Processes (MDPs): The standard way to model an agent "doing" a task by maximizing expected rewards.
- Bayesian Models of Pedagogy: A framework where a teacher chooses examples that best disambiguate a concept from other possibilities.
The "Showing" model is built as a recursive social inference. The observing learner uses Bayesian inference to update their belief about the reward function based on the actions they see. Meanwhile, the teaching demonstrator chooses a trajectory that maximizes the probability that the learner will arrive at the correct reward function. Essentially, the teacher isn't just looking for the shortest path to a goal; they are looking for the path that makes it most obvious which goal they are pursuing.
Experimental Design
Instead of standard large-scale datasets, the authors conducted two original human behavioral experiments using Amazon Mechanical Turk:
- Experiment 1 (Goal-based): 59 participants navigated a simple grid world with three possible goal locations. They were either told to just reach the goal ("Do" condition) or to show a partner where the goal was ("Show" condition).
- Experiment 2 (Feature-based): 58 participants navigated a grid with colored tiles. Some colors were "safe" (0 reward) and others were "dangerous" (-2 reward). Participants had to teach the "safety" of these features through their movement.
Key Insights: Disambiguation and Looping
A "doing" agent takes the shortest path. A "showing" agent takes the path that is least consistent with incorrect goals. For example, if two goals are to the right, a teacher might move up first to signal they aren't going for the bottom-right goal.
One of the most striking predictions of the model is that teachers will perform "inefficient" actions, like moving back and forth on a safe tile. While this wastes time, it sends a high-signal message: "This specific spot is safe!"
As seen in the behavioral experiments, human behavior strongly matches the model. "Show" participants chose disambiguating paths significantly more often than "Do" participants ($p < .001$). They also visited a wider variety of safe tiles and revisited safe states ("looping") much more frequently than those just performing the task.
Supercharging Machine Learning
Pedagogy turns out to be a "free lunch" for IRL. Even if an IRL algorithm (like Maximum Likelihood IRL) doesn't explicitly realize it's being taught, it still performs better on "showing" data because that data is inherently more informative than "doing" data.
When the researchers fed human "Show" trajectories into a standard IRL algorithm, the algorithm recovered the true reward weights with significantly less error (lower Euclidean distance) compared to when it was trained on "Do" trajectories.
Limitations and Future Work
The current model assumes a "naive" learner—one who doesn't realize the teacher is trying to be helpful. The authors suggest that even better results could be achieved with a "savvy" learner who explicitly models the teacher's pedagogical intent (a recursive "I know that you know that I know" approach).
Additionally, the experiments were conducted in controlled, discrete grid worlds. A major challenge for future work is scaling these pedagogical models to continuous, high-dimensional environments, such as teaching a robot to drive or perform complex manual tasks where "showing" might involve subtle changes in posture or velocity.
Summary updated