NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Planning for Sample Efficient Imitation Learning

Zhao-Heng Yin, Weirui Ye, Qifeng Chen, Yang Gao

Introduction

Imitation learning (IL) offers a promising alternative to traditional reinforcement learning (RL) by allowing agents to learn directly from expert demonstrations, bypassing the notoriously difficult challenges of reward design and exploration. However, researchers have long faced a "pick your poison" trade-off between two primary IL paradigms:

  1. Behavioral Cloning (BC): This method is simple and requires zero environment interaction during training. However, it suffers heavily from covariate shift. If the agent makes a minor error and enters a state not covered in the expert data, it lacks the knowledge to recover, often leading to catastrophic failure.
  2. Adversarial Imitation Learning (AIL): AIL addresses covariate shift by framing imitation as a distribution matching problem, making it much more robust. Unfortunately, it is notoriously sample-inefficient, often requiring millions of costly in-environment interactions to learn even basic tasks.

Previous attempts to combine these approaches have largely failed because the AIL training objective tends to "overwrite" the BC knowledge. To solve this, researchers introduce EfficientImitate (EI), a planning-based imitation learning framework that achieves state-of-the-art sample efficiency by unifying BC and AIL through Monte Carlo Tree Search (MCTS).

Methods: Unifying BC and AIL via Planning

EfficientImitate builds upon the model-based RL framework EfficientZero. The core innovation lies in how it leverages a learned world model and MCTS to seamlessly integrate the strengths of both BC and AIL.

Architecture of EfficientImitate
  • MCTS as a Unifier: Instead of relying on a standard neural network policy to directly output actions, EI utilizes MCTS for planning. During the search tree expansion, the algorithm samples candidate actions from both the current learned policy and a dedicated BC policy. This guarantees the agent always considers "expert-like" moves, but it isn't forced to execute them if the planner predicts a poor outcome.
  • Model-Based AIL: EI learns a comprehensive world model (capturing dynamics, rewards, and representations) to "imagine" future states. It then trains a discriminator to distinguish between these imagined sequences and actual expert demonstrations. This multi-step discriminator loss provides a stable, adversarial reward signal that guides the planning process.

By injecting BC actions into the MCTS expansion phase, the agent uses BC as a heuristic "shortcut" to discover high-quality solutions. Simultaneously, the AIL reward ensures that these solutions align with the expert's long-term state-action distribution.

Key Insights

  • Planning Filters Bad Advice: BC is often "mostly right but occasionally very wrong." MCTS allows the agent to evaluate a BC-suggested action by simulating several steps into the future. If the world model predicts a failure (e.g., the robot falling over), the planner simply discards that path.
  • Solving the "Forgetting" Problem: In standard deep learning, new gradients often wash away old knowledge. Because EI maintains the BC policy as a separate candidate generator for the MCTS, the agent's "expert intuition" is preserved throughout the adversarial training process.
  • Efficiency via Imagination: The learned world model enables the agent to perform thousands of "mental rehearsals" for every single real-world interaction, drastically reducing the required sample budget.

Experimental Results

The researchers evaluated EI on the DeepMind Control Suite, testing both state-based (direct physical coordinates) and image-based (raw pixels) environments. Tasks ranged from simple control like Cartpole to highly complex challenges like the Humanoid Walk.

  • Massive Sample Efficiency: In limited-sample settings (e.g., 10k-50k steps), EI outperformed established baselines like DAC, SQIL, and ValueDICE by a wide margin, showing over a 4x gain in performance.
  • Conquering the Humanoid: Humanoid Walk is considered a "boss level" task for imitation learning. While previous state-of-the-art methods failed to learn meaningful behaviors within a 500k-step budget, EI successfully solved it, achieving a high performance score of 0.74.
  • State-of-the-Art in Vision: On the notoriously difficult image-based tasks, EI achieved near-perfect scores (0.90+) across almost all benchmarks, whereas most baselines struggled to reach even half that performance.
  • Ablation Proof: Removing the BC actions from the MCTS (running an "AIL-only" planning setup) doubled the training time required to reach expert performance. This confirms that unifying BC and AIL is the critical driver of EI's efficiency.

Limitations and Future Directions

While highly effective, EI does come with computational overhead. MCTS is computationally intensive; it saves costly "robot time" (interactions) at the expense of "computer time" (CPU/GPU cycles) required for tree searches. Furthermore, like all model-based methods, EI's success is bottlenecked by the accuracy of its world model. In environments with highly complex physics or numerous interacting objects, the model may struggle to predict the future accurately.

Future work could extend EI to handle "RL with demonstrations" (where sparse environment rewards are available) and explore more advanced adversarial objectives, such as optimal-transport-based learning, to further refine the imitation process.

Summary updated

BibTeX
@inproceedings{yin2022planning,
  author = {Zhao-Heng Yin and Weirui Ye and Qifeng Chen and Yang Gao},
  title = {{Planning for Sample Efficient Imitation Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=iKKfdIm81Jt},
}
Figure