Learner-aware Teaching: Inverse Reinforcement Learning with Preferences and Constraints

Sebastian Tschiatschek, Ahana Ghosh, Luis Haug, Rati Devidze, Adish Singla

Standard Inverse Reinforcement Learning (IRL) often operates on a flawed assumption: that a learner is a "blank slate" eager and able to perfectly imitate a teacher. In reality, agents have internal preferences, physical limitations, and safety biases. This paper introduces Learner-aware Teaching, a framework where the teacher explicitly accounts for the learner's internal constraints, demonstrating that traditional "learner-agnostic" teaching fails when these factors conflict with the task at hand.

The Problem with "Learner-Agnostic" Teaching

In traditional IRL, a learner observes an expert's demonstrations and tries to recover the underlying reward function to mimic that behavior. However, real-world agents often have their own "worldviews." For example, a student driver might be too nervous to perform a high-speed merge shown by an expert, or a robot might have joint limitations that prevent it from following a specific trajectory.

If a teacher ignores these constraints—an approach known as learner-agnostic teaching—the learner may end up with a highly suboptimal policy because they simply cannot (or will not) perform the demonstrated actions. The core challenge addressed in this paper is how a teacher should select demonstrations that are both high-performing and compatible with the learner's specific constraints.

The Core Insight: When Suboptimal is Better

The "aha" moment of the paper is realizing that a teacher who demonstrates the absolute "perfect" path might actually be a bad teacher if the learner cannot follow it.

Environment and policy vectors illustrating the need for learner-aware teaching.

Consider a grid-world scenario where the optimal policy is to navigate to a "star" (high reward). If that star is surrounded by a color that the learner is heavily averse to (a "forbidden" zone), the learner will get stuck trying to imitate the teacher. A "learner-aware" teacher recognizes this limitation and instead demonstrates how to get the "plus" object (medium reward). While technically suboptimal in a vacuum, it is the best achievable outcome for that specific learner.

Methods for Learner-Aware Teaching

The authors build their framework on Maximum Causal Entropy (MCE) IRL, extending the standard learner model to include a penalty for violating internal preference constraints. They propose solutions for two main scenarios:

1. Teaching under Known Constraints

When the teacher knows the learner's limitations, they can optimize demonstrations directly:

  • AWARE-CMDP: For learners with "hard" constraints, the teacher solves a Constrained Markov Decision Process (CMDP) to find the best policy the learner is physically or strictly capable of following.
  • AWARE-BIL: For learners with "soft" preferences, the problem is framed as a bilevel optimization. The teacher optimizes their demonstrations such that the learner’s resulting IRL-inferred policy maximizes the true reward. The authors show this complex bilevel problem can be reduced to a single-level optimization using Karush-Kuhn-Tucker (KKT) conditions, making it computationally tractable.

2. Teaching under Unknown Constraints (Adaptive)

If the teacher doesn't know the learner's biases upfront, they must interact in rounds to discover them:

  • ADAWARE-VOL: Uses a "volume search" (similar to cutting-plane methods) to shrink the space of possible learner constraints based on observed behavior.
  • ADAWARE-LIN: Uses a "line search" strategy to iteratively nudge the demonstrations toward the learner's feasible region.

Experimental Setup and Results

The researchers evaluated their algorithms using a synthetic Grid-world environment inspired by "object-world" benchmarks. The grid contained "star" (high reward), "plus" (medium reward), and "dot" (low reward) objects, alongside colored "distractor" cells.

Grid-world environment showing rewards and constrained zones.

Different simulated learners had varying levels of aversion to these distractors (e.g., refusing to step within one cell of a green distractor).

Key Findings: * Superior Performance: Across five different learner types, the AWARE-BIL teacher consistently helped learners achieve near-optimal rewards. In contrast, the agnostic teacher often resulted in the learner achieving near-zero reward due to incompatible demonstrations. * Rapid Convergence: The adaptive algorithms (ADAWARE-VOL/LIN) quickly converged to the performance of a teacher with full knowledge of the learner's constraints within just a few rounds of interaction. * Scalability: Tested on grids ranging from 10x10 to 20x20, the adaptive methods maintained robust performance across varying environment sizes.

Limitations and Future Work

While promising, the framework has room for expansion. The current experiments are limited to discrete grid worlds; scaling these bilevel optimization and volume search techniques to continuous, high-dimensional state spaces (like complex robotics) remains a challenge. Furthermore, the "preferences" modeled here are strict mathematical constraints. Future work will need to explore how well these algorithms handle the messy, often inconsistent preferences of actual human learners, as well as how to learn from a fixed, potentially suboptimal set of demonstrations.

Summary updated

BibTeX
@inproceedings{tschiatschek2019learner,
  author = {Sebastian Tschiatschek and Ahana Ghosh and Luis Haug and Rati Devidze and Adish Singla},
  title = {{Learner-aware Teaching: Inverse Reinforcement Learning with Preferences and Constraints}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure