Interactive Teaching Algorithms for Inverse Reinforcement Learning

Parameswaran Kamalaruban, Rati Devidze, Volkan Cevher, Adish Singla

Abstract: Inverse Reinforcement Learning (IRL) typically relies on static batches of expert demonstrations, which can be inefficient. This paper introduces an interactive teaching framework where a teacher adaptively selects demonstrations based on the learner's current progress. We present two algorithms: OMNITEACHER, for when the teacher knows the learner's internal state, and BBOXTEACHER, for a blackbox setting. Our results show that interactive teaching achieves an exponential speedup in learning complexity, reducing the required demonstrations from $O(1/\epsilon)$ to $O(\log 1/\epsilon)$. Experiments in a driving simulator demonstrate that these algorithms effectively create an emergent curriculum and are robust even with limited knowledge of the learner.

Introduction

Standard IRL focuses on the learner's perspective—how to best infer a reward function from a fixed set of data. However, human teaching is inherently interactive; a coach observes a student and provides targeted feedback. This paper formalizes this pedagogical approach for IRL, moving from batch-style "machine teaching" to an adaptive, sequential loop. The authors address the gap in formal, interactive algorithms for the teacher, proposing methods that adapt to the learner's specific weaknesses identified during training.

Methods

The proposed framework involves a teacher observing the learner's policy, selecting an optimal demonstration, and the learner updating their model. The paper contributes two primary algorithms:

  1. OMNITEACHER (Omniscient Setting): Operates under the assumption that the teacher has full access to the learner's internal parameters ($\lambda$). It reduces policy teaching to hyperparameter optimization, greedily selecting demonstrations that provide gradient updates to move the learner's reward weights toward the expert's target weights ($\lambda^*$).
  2. BBOXTEACHER (Blackbox Setting): A more practical approach where the teacher only observes the learner's behavior. It uses "probes" to estimate the learner's occupancy measure and provides demonstrations that maximize the performance gap (discrepancy) between the expert and the learner's current performance.

Key Results

The algorithms were evaluated in a synthetic driving simulator featuring a grid-based highway with various tasks (T0-T8) and features such as pedestrians, HOV lanes, and police presence.

Hyperparameter convergence and expected reward difference across different teacher types.

As shown in Figure 3, both OMNITEACHER and BBOXTEACHER significantly outperform the Agnostic baseline. The hyperparameter convergence in panel (a) demonstrates the theoretical $O(\log 1/\epsilon)$ speedup, an exponential improvement over the standard $O(1/\epsilon)$ rate typically seen in agnostic settings. In task-specific evaluations (panel b), the interactive teachers reduce the "expected reward difference"—the gap between student and expert—much more sharply, especially for complex tasks like T7 (HOV lanes).

Figure 1 further highlights the robustness of the BlackBox approach. Even without internal access to the learner's state, BBOXTEACHER (BB-all, BB-T4, BB-T8) consistently guides the learner toward the expert policy more effectively than the Agnostic teacher, which provides random demonstrations. This suggests that even a rough estimate of a student's mistakes is sufficient for providing highly informative guidance.

Discussion and Insights

A key insight is the emergence of a curriculum; the teacher naturally prioritizes demonstrations for tasks where the learner is weakest. For instance, if a learner struggles with pedestrians but understands HOV lanes, the teacher will focus on city driving demonstrations. Furthermore, the success of BBOXTEACHER suggests that precise knowledge of the learner's internals is not strictly necessary for effective teaching.

However, the sensitivity of IRL agents to teaching also points toward potential vulnerabilities to adversarial "poisoning" attacks. A malicious teacher could provide a few carefully crafted demonstrations to steer an agent toward dangerous behavior, highlighting a need for future research into Robust IRL.

Conclusion

Interactive teaching represents a significant step forward for IRL efficiency, moving from static data dumps to targeted pedagogical interventions. By reducing teaching complexity from polynomial to logarithmic, these methods allow learners to reach expert performance with exponentially fewer examples. Future work will focus on scaling these methods to continuous, high-dimensional state spaces and exploring teaching strategies for learners with unknown architectures.

Summary updated

BibTeX
@inproceedings{kamalaruban2019interactive,
  author = {Parameswaran Kamalaruban and Rati Devidze and Volkan Cevher and Adish Singla},
  title = {{Interactive Teaching Algorithms for Inverse Reinforcement Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/374},
}
Figure