Model-Free Imitation Learning with Policy Optimization

Jonathan Ho, Jayesh K. Gupta, Stefano Ermon

Introduction

Imitation learning (IL) is a powerful paradigm for teaching autonomous agents complex behaviors by leveraging expert demonstrations. However, traditional approaches often struggle with scalability or robustness. This work, presented at ICML 2016, introduces a model-free framework that scales IL to high-dimensional, continuous control tasks by directly optimizing policies using gradient-based methods.

The Challenge: Scalability vs. Robustness

Existing IL methods typically fall into two categories:

  1. Behavioral Cloning (BC): While simple, BC is prone to "cascading errors" due to covariate shift. Small deviations from the expert's path lead the agent into unfamiliar states where errors accumulate catastrophically.
  2. Inverse Reinforcement Learning (IRL): IRL is more robust as it recovers the expert's underlying cost function. However, it is computationally expensive, often requiring a full reinforcement learning (RL) "inner loop" to solve for the optimal policy under a candidate cost function at every iteration.

In high-dimensional or continuous environments, this inner loop becomes a bottleneck. This paper proposes a way to achieve IRL-like robustness without the prohibitive computational cost.

Proposed Methods: IM-REINFORCE and IM-TRPO

The authors frame imitation learning as Apprenticeship Learning (AL), aiming to find a policy $\pi$ that performs at least as well as the expert $\pi_E$ across a class of cost functions $\mathcal{C}$. They introduce two model-free algorithms:

  • IM-REINFORCE: Adapts the REINFORCE policy gradient algorithm. It alternates between identifying the "worst-case" cost function for the current policy and updating the policy to minimize that cost.
  • IM-TRPO: A more stable variant based on Trust Region Policy Optimization (TRPO). It uses a KL-divergence constraint to ensure stable, monotonic policy improvements.

Crucially, these methods are model-free; they do not require knowledge of environment dynamics, only the ability to sample trajectories. By taking small gradient steps, the policy and cost function estimate "co-evolve," bypassing the need to solve the RL problem to optimality at each step.

Experimental Evaluation

The algorithms were tested across several domains, ranging from discrete gridworlds to high-dimensional continuous control.

Excess cost comparison in Globally and Locally Optimal Objectworld environments.

In the Objectworld environment, the proposed methods demonstrated significantly lower excess cost compared to traditional IRL baselines like MaxEnt and OptV, even with a limited number of example trajectories.

Key Results

The experiments demonstrated that IM-TRPO and IM-REINFORCE offer significant advantages in terms of scalability and efficiency.

  • High-Dimensional Scalability: IM-TRPO successfully learned complex behaviors in the 610-dimensional Highway Driving task, matching the performance of state-of-the-art model-based methods despite having less information.
  • Computational Efficiency: In large Gridworlds (up to 65,536 states), the proposed approach was significantly faster than the globally optimal LPAL algorithm, reducing training time while maintaining near-expert performance.
  • Stability: IM-TRPO proved more robust than IM-REINFORCE, particularly as environmental dimensionality increased.
Performance ratio and training time comparison in Gridworld environments.

Discussion and Future Work

The framework's adversarial structure—where a policy "generator" competes against a cost function "adversary"—foreshadowed the development of Generative Adversarial Imitation Learning (GAIL). While these gradient-based methods may converge to local minima, their ability to handle high-dimensional spaces makes them far more practical for real-world robotics than global optimization techniques. Future work includes extending the framework to non-linear cost functions and improving sample efficiency.

Summary updated

BibTeX
@inproceedings{ho2016model,
  author = {Jonathan Ho and Jayesh K. Gupta and Stefano Ermon},
  title = {{Model-Free Imitation Learning with Policy Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2016},
  url = {https://openreview.net/forum?id=S1WA-iZdbH},
}
Figure