Agnostic Interactive Imitation Learning: New Theory and Practical Algorithms

Yichen Li, Chicheng Zhang

The Challenge of Agnostic Imitation Learning

Imitation Learning (IL) trains an agent to perform a task by mimicking an expert. A classic hurdle in IL is covariate shift: if a learner makes a minor error, it drifts into a state it never encountered during training. Without knowing how to recover, these errors compound, leading to catastrophic failure.

Interactive IL frameworks, such as the well-known DAgger algorithm, address this by allowing the learner to query the expert during execution ("What would you do in this state?"). However, most existing theoretical guarantees for this approach rely on the assumption of realizability—the belief that the expert's optimal policy can be perfectly represented within the learner's hypothesis space (e.g., assuming a simple linear model can perfectly mimic a complex neural network).

In reality, the world is agnostic: the expert is almost always more complex than the learner. Previous "agnostic" theories were either computationally intractable or restricted to overly simplistic model types. This paper introduces a general, computationally efficient approach to interactive IL for scenarios where the learner is inherently "simpler" than the expert.

Proposed Methods: MFTPL-P and BOOTSTRAP-DAGGER

The authors propose two primary algorithms to bridge this gap:

  1. MFTPL-P (Mixed Follow the Perturbed Leader with Poisson perturbations): This theoretically grounded algorithm utilizes a "Follow the Perturbed Leader" strategy. The learner trains not only on the expert's data but also on "noisy" examples sampled from a "covering distribution" (a distribution encompassing all possible states the learner might visit). By injecting this Poisson-sampled noise, the algorithm smooths the learning landscape, allowing the authors to mathematically prove that the learner will eventually perform as well as the best possible policy within its restricted class.
  2. BOOTSTRAP-DAGGER (BD): Acknowledging that a true "covering distribution" is difficult to obtain in practice, the authors introduce a practical variant. Instead of artificial noise, BD employs bootstrapping (sampling training data with replacement) to train an ensemble of policies. During each round, this ensemble explores the environment, and the expert labels the newly encountered states.

A key innovation here is Oracle Efficiency: both algorithms only require a standard "offline" optimization oracle (like an SGD-based neural network trainer), making them fully compatible with modern deep learning architectures.

Experimental Evaluation and Key Insights

The algorithms were evaluated on standard continuous control benchmarks from OpenAI Gym, including Ant, Half-Cheetah, Hopper, and Walker2D. The researchers tested these in both Realizable (learner and expert use similar neural networks) and Non-realizable (the learner uses a much smaller network or a linear model, while the expert remains a complex neural network) settings.

Several key insights emerged from the evaluation:

  • Ensembles Drive Better Exploration: Ensembling in an interactive setting isn't just about variance reduction. The diversity of an ensemble (as seen in BD) forces the agent to explore a wider variety of states than a single policy (like standard DAgger) would.
  • Data Quality over Quantity: Because the ensemble explores more aggressively, the expert is forced to provide labels for "difficult" or "edge-case" states that a single policy might miss. This yields a higher-quality dataset specifically tailored for learning recovery behaviors.
  • The Power of Bagging: Using the ensemble mean (Bagging) for the final evaluation consistently outperformed selecting a single policy or using a randomized policy, particularly in the agnostic setting.

Key Results

In non-realizable (agnostic) settings, variants of the proposed methods—specifically MP-25 (a variant of MFTPL-P) and BOOTSTRAP-DAGGER—significantly outperformed standard DAgger and Behavior Cloning across the tested tasks.

Performance on the Ant environment using a linear model.
Performance on the Hopper environment using a linear model.

As shown in the figures above, when the learner is restricted to a linear model (a highly agnostic setting), the MP-25 variants achieve higher test rewards and faster convergence than DAgger. The ensembles reach competitive reward levels with significantly fewer expert annotations. Furthermore, the authors found that an ensemble size of 5 (BD-5) provides a "sweet spot," capturing most performance gains of larger ensembles while remaining computationally efficient.

Limitations and Future Work

While the results are promising, the authors note a few limitations:

  • Runtime Dependence: The current theoretical guarantees are "runtime-dependent," meaning the bounds rely on the specific distributions encountered during execution rather than being purely prior bounds.
  • Global Optimality: In the agnostic setting, ensuring global optimality (finding the absolute best policy in the class) remains an open challenge, potentially as difficult as agnostic Reinforcement Learning itself.
  • Computational Overhead: While small ensembles (BD-5) are efficient, scaling to larger ensembles (like BD-25) requires significantly more memory and compute time, which could pose hurdles for massive models.

Summary updated

BibTeX
@inproceedings{li2024agnostic,
  author = {Yichen Li and Chicheng Zhang},
  title = {{Agnostic Interactive Imitation Learning: New Theory and Practical Algorithms}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=WCwxFM7n5S},
}
Figure