Efficient Reductions for Imitation Learning

Stéphane Ross, Drew BagnellAISTATS 2010

Introduction

Imitation learning, the process of training an agent to perform a task by mimicking an expert, is often treated as a standard supervised learning problem known as "behavior cloning." However, this approach faces a fundamental theoretical and practical hurdle: distributional shift. In standard supervised learning, we assume that training and testing data are independent and identically distributed (i.i.d.). In the context of sequential decision-making, this assumption is violated because the learner’s actions determine the future states it encounters.

When a learner makes even a minor error, it drifts away from the expert’s demonstrated path. Because the training data typically only contains "perfect" expert behavior, the learner has never encountered these "off-track" states and lacks the knowledge to recover. This leads to compounding errors, where the total cost grows quadratically ($O(T^2)$) relative to the time horizon $T$. This paper addresses this "chicken-and-egg" problem—where the learner needs its own policy to know which states to sample, but needs those samples to train the policy—by introducing the SMILe (Stochastic Mixing Iterative Learning) algorithm.

The SMILe Algorithm

The authors propose SMILe as a reduction-based approach that transforms the complex imitation learning problem into a sequence of simpler supervised classification tasks. Unlike "Forward Training," which requires a different policy for every time step, SMILe trains a single stationary policy through an iterative mixing process.

The algorithm proceeds as follows:

  1. Initialization: The process begins with the expert's policy.
  2. Iterative Mixing: In each iteration, the current policy is executed to collect new state-action data. A new "sub-policy" is then trained on this data to mimic the expert's behavior in the states actually visited by the learner.
  3. Stochastic Update: Instead of replacing the old policy, the new policy is formed by a geometric move toward the sub-policy: $\pi_{n+1} = (1-\alpha)\pi_n + \alpha\hat{\pi}$.
  4. Sample Reuse: To improve efficiency, the authors developed a version of SMILe that reuses trajectories from previous iterations, significantly reducing the number of required queries to the expert.

By gradually "mixing in" learned components, SMILe ensures that the state distribution does not shift too violently between iterations. This allows the learner to gradually acquire "recovery behavior"—learning how to return to the expert's path from the states it actually visits.

Experimental Evaluation

The researchers evaluated SMILe in two dynamic simulated environments: Super Tux Kart and Mario Bros.

In Super Tux Kart, an open-source 3D racing game, the agent must steer a car on a "Star Track" floating in space. Any significant steering error results in the car falling off the track. The input features were derived from resized and color-transformed images, and a human player served as the expert.

SMILe significantly reduces the number of falls in Super Tux Kart compared to traditional supervised learning, even with fewer training laps.

In Mario Bros, the agent navigated randomly generated levels using grid-based features and action history. Here, a near-optimal automated planner served as the expert.

Key Results and Insights

The primary theoretical contribution of the paper is the reduction of the regret bound from quadratic ($O(T^2)$) to near-linear ($O(T)$). This improvement is reflected in the empirical results across both testbeds.

In the Super Tux Kart experiments, traditional supervised learning required 45 laps of training data to achieve mediocre performance. SMILe, however, achieved superior performance with only 15 laps (using a mixing parameter $\alpha=0.1$). As shown in the performance comparison, SMILe consistently maintained a lower average number of falls per lap across various training volumes.

In Mario Bros, SMILe drastically outperforms traditional supervised learning in distance traveled. The "reuse" variant demonstrates high sample efficiency.

The Mario Bros results further validate the approach. SMILe significantly outperformed behavior cloning in average distance traveled. Furthermore, the "sample reuse" variant proved highly effective, achieving high performance with far fewer new interactions with the expert. This efficiency is crucial for real-world applications, such as robotics, where expert time is often the most expensive resource.

Conclusion

SMILe provides a robust framework for imitation learning by explicitly addressing the problem of distributional shift. By treating imitation as a reduction to classification and iteratively training on the learner's own state distribution, the algorithm enables agents to learn recovery behaviors that are absent in static expert datasets. While the requirement for an interactive expert remains a limitation, the efficiency gains from sample reuse and the move toward linear regret represent a significant step forward in making imitation learning practical for complex, long-horizon tasks.

Summary updated

BibTeX
@article{ross2010efficient,
  author = {Stéphane Ross and Drew Bagnell},
  title = {{Efficient Reductions for Imitation Learning}},
  journal = {AISTATS},
  year = {2010},
}
Figure