Generalizing Apprenticeship Learning across Hypothesis Classes

Thomas J. Walsh, Kaushik Subramanian, Michael L. Littman, Carlos Diuk

Bridging the gap between classical computational learning theory and practical reinforcement learning (RL), this research demonstrates how a teacher's "traces" can guide an agent through complex environments. By formalizing apprenticeship learning, the authors show that problems mathematically "impossible" for an autonomous agent to solve efficiently can become trivial with just a little help.

The Problem: The Limits of the "Lone Wolf" Agent

In standard reinforcement learning, an agent typically acts as a "lone wolf," exploring its environment through trial and error. However, for many complex tasks, the state space is so vast that random exploration is doomed to fail. Imagine a "combination lock" environment: unless the agent happens to stumble upon the exact sequence of actions to unlock a reward, it learns absolutely nothing.

While "apprenticeship learning" (learning from a teacher) exists, it has historically been limited to specific types of models or required the teacher to provide all data upfront. This paper seeks a more general theory, asking: What are the formal conditions under which an agent is guaranteed to learn efficiently from a teacher across a wide variety of environment types?

Methodology: The PAC-MDP-Trace Protocol

The authors introduce a generalized framework for apprenticeship learning that allows RL agents to learn efficiently from a teacher's demonstrations. They propose a new protocol called PAC-MDP-Trace. Under this protocol, an agent is considered efficient if it only requires a polynomial number of "valid traces" (demonstrations where the teacher performs better than the agent) to reach near-optimal performance.

Key technical contributions include:

  • The MBP (Mistake-Bounded Predictor): A unified learning framework that combines KWIK (Knows What It Knows) learning—which handles stochastic or noisy data—and MB (Mistake Bound) learning—which handles deterministic rules.
  • The MBP-Agent Algorithm: A model-based RL algorithm. Unlike autonomous agents that must cautiously manage uncertainty, the MBP-Agent can be "optimistic" or even "pessimistic." It follows its current model until it fails. At that point, the teacher provides a trace that "explains" the mistake, allowing the agent to update its world model.
  • The Explore-Exploit-Explain Lemma: A theoretical extension of the standard RL "Explore-Exploit" lemma. It proves that on any given trial, the agent will either:
  • Encounter an unknown state (Explore).
  • Perform as well as the teacher (Exploit).
  • Receive a trace from the teacher that corrects a model error (Explain).

Key Insights

  • The Power of Counter-Examples: In autonomous learning, negative examples (e.g., "this combination didn't open the lock") are often useless. In apprenticeship learning, a single positive example from a teacher can eliminate an exponential number of incorrect hypotheses.
  • Bridging MB and KWIK: The paper shows that while Mistake Bound (MB) learners are insufficient for autonomous RL (because they don't know when they are ignorant), they are perfect for apprenticeship learning because the teacher acts as the "failure trigger" that prompts learning.
  • Teacher Flexibility: The definition of a "Valid Trace" is lenient. The teacher doesn't have to be perfect or optimal; they just need to be better than the agent's current policy for the agent to extract useful information.

Experiments and Key Results

The researchers evaluated their approach across three distinct setups: a Simulated Taxi Domain, a Stochastic STRIPS (Noisy Blocks World) relational domain, and a physical Lego Mindstorms robot.

Exponential Speedup in Learning By linking RL to Mistake Bound and KWIK learning classes, the authors prove that a teacher can provide an exponential speedup in learning complex environments.

Average reward per episode comparing MBP agents to autonomous KWIK agents.

In the Simulated Taxi domain—a classic RL benchmark where an agent must navigate a grid to pick up and drop off passengers—the MBP-Agent reached optimal behavior significantly faster than DOORMAX, a state-of-the-art autonomous learner.

Steps to goal in the Simulated Taxi domain, showing the MBP Agent outperforming Autonomous DOORmax.

Efficiency in Relational MDPs and Real-World Viability The agent successfully learned Stochastic STRIPS rules. In a noisy blocks world, the MBP-Agent learned to ignore "useless" actions from just a single teacher trace, whereas autonomous agents required massive exploration to realize those actions were suboptimal. Furthermore, on the physical Lego Mindstorms robot, the agent mastered a complex navigation task with 60 different conditions using only 10 teacher traces and roughly 500 total steps, proving its robustness against sensor noise and physical stochasticity.

Limitations and Future Work

While highly effective, the framework has a few limitations:

  • Teacher Overhead: The protocol assumes a teacher is constantly monitoring the agent and can identify exactly when the agent's value function is suboptimal. In practice, human teachers might find this taxing.
  • Stochastic OOMDPs: While the paper provides a "trick" for learning deterministic Object-Oriented MDPs (using k-term-DNF learners), extending this specifically to stochastic OOMDPs remains an open challenge.
  • Prior Knowledge: For some complex relational domains, the agent still requires a "schema" or a set of possible effects provided beforehand, even if it doesn't know the probabilities or preconditions. Reducing this reliance on prior knowledge is a key direction for future research.

Summary updated

BibTeX
@inproceedings{walsh2010generalizing,
  author = {Thomas J. Walsh and Kaushik Subramanian and Michael L. Littman and Carlos Diuk},
  title = {{Generalizing Apprenticeship Learning across Hypothesis Classes}},
  booktitle = {International Conference on Machine Learning},
  year = {2010},
}
Figure