Efficient imitation learning with conservative world models

Victor Kolev, Rafael Rafailov, Kyle Hatch, Jiajun Wu, Chelsea Finn

Introduction

Imitation Learning (IL) provides a robust framework for teaching agents complex tasks by leveraging expert demonstrations, thereby avoiding the arduous process of reward engineering. However, two primary challenges persist: distributional shift and sample inefficiency. In Behavior Cloning (BC), minor errors accumulate, leading the agent into unfamiliar states where it cannot recover. Adversarial Imitation Learning (AIL) addresses this by allowing environment interaction, yet it often requires millions of samples, rendering it impractical for real-world robotics.

This paper introduces Conservative Model-based Imitation Learning (CMIL), a framework that conceptualizes imitation learning as a fine-tuning problem. By integrating a conservatism penalty into a learned world model, CMIL achieves state-of-the-art performance on complex robotic manipulation tasks using as few as 10 demonstrations and raw pixel observations.

Methodology

CMIL synthesizes adversarial imitation with Conservative Model-Based Reinforcement Learning. The architecture relies on three core components:

  1. World Model (RSSM): The agent utilizes a Recurrent State-Space Model to predict future states and pixel-based observations based on current actions.
  2. Adversarial Discriminator: Instead of a predefined reward, a discriminator is trained to distinguish between expert trajectories and the agent's "imagined" rollouts within the world model. The agent's objective is to maximize the likelihood that the discriminator classifies its imagined trajectories as expert data.
  3. Conservatism via Model Disagreement: To mitigate the risk of the agent exploiting inaccuracies in the world model (model mismatch), CMIL employs an ensemble of models. Uncertainty is quantified by the variance in predictions across the ensemble.

The final reward function is formulated as: $$r(s, a) = \text{Discriminator Score} - \alpha \cdot \text{Model Disagreement}$$ where $\alpha$ is a hyperparameter controlling the strength of the conservatism penalty. This formulation ensures the agent remains within regions of the state space where the world model is accurate, effectively acting as a safety rail against "hallucinated" high-reward states.

Experimental Setup

The efficacy of CMIL was evaluated on two challenging high-dimensional manipulation tasks using only pixel inputs:

  • Franka Kitchen: A 7-DoF robot arm tasked with a long-horizon sequence (e.g., opening a microwave, moving a kettle, turning on a light, and opening a cabinet).
  • ShadowHand Baoding Balls: A 20-DoF robotic hand performing dexterous manipulation. This task is particularly difficult to solve from raw pixels due to its high dimensionality.

Experiments were conducted using a minimal set of 10 to 20 expert demonstrations per task.

Results and Discussion

CMIL demonstrates significant improvements over existing baselines. Notably, it established a new state-of-the-art on the Franka Kitchen environment from images, requiring no reward labels. In the ShadowHand Baoding Balls task, CMIL was the only algorithm among tested baselines (including BC and VMAIL) to achieve success from pixels.

A key insight of this work is the treatment of IL as a fine-tuning process. By leveraging expert data to guide the world model, the search space for the policy is significantly reduced. Furthermore, the conservatism penalty addresses the "performance gap" between the expert and the agent, which the authors theoretically bound based on distribution matching and model deviation.

In terms of efficiency, CMIL reached expert-level performance in approximately 250,000 environment steps, a four-fold improvement over many model-free methods that typically require upwards of 1 million steps.

Conclusion

CMIL represents a significant step forward in sample-efficient imitation learning from pixels. While the method shows sensitivity to hyperparameters like the uncertainty penalty ($\alpha$) and behavior cloning regularization ($\beta$), its ability to solve complex tasks with minimal demonstrations is promising. Future work will focus on stabilizing continuous control from pixels and deploying the framework on physical robotic hardware.

Summary updated

BibTeX
@inproceedings{kolev2024efficient,
  author = {Victor Kolev and Rafael Rafailov and Kyle Hatch and Jiajun Wu and Chelsea Finn},
  title = {{Efficient imitation learning with conservative world models}},
  booktitle = {L4DC},
  year = {2024},
}
Figure