Get Back Here: Robust Imitation by Return-to-Distribution Planning

Geoffrey Cideron, Baruch Tabanpour, Sebastian Curi, Sertan Girgin, Léonard Hussenot, Gabriel Dulac-Arnold, Matthieu Geist, Olivier Pietquin, Robert DadashiarXiv 2023

Abstract

We consider the Imitation Learning (IL) setup where expert data are not collected on the actual deployment environment but on a different version. To address the resulting distribution shift, we combine behavior cloning (BC) with a planner that is tasked to bring the agent back to states visited by the expert whenever the agent deviates from the demonstration distribution. The resulting algorithm, POIR, can be trained offline, and leverages online interactions to efficiently fine-tune its planner to improve performance over time. We test POIR on a variety of human-generated manipulation demonstrations in a realistic robotic manipulation simulator and show robustness of the learned policy to different initial state distributions and noisy dynamics.

Introduction

Imitation Learning (IL) is a powerful paradigm for teaching robots complex tasks without the need for manual reward engineering. However, standard methods like Behavior Cloning (BC) suffer from a critical weakness: distribution shift. Because BC treats IL as a supervised learning problem mapping states to actions, even minor execution errors can lead the robot into states it never encountered during training. Without a mechanism to recover, these errors compound, leading to catastrophic failure.

While Reinforcement Learning (RL) based methods like Adversarial Imitation Learning (AIL) can be more robust, they are often sample-inefficient and difficult to tune. The researchers introduce POIR (Planning from Offline Imitation Rewards), a framework that bridges the gap between the data efficiency of BC and the robustness of RL-based planning.

The POIR Framework

POIR augments a standard imitation policy with a model-based planner designed to steer the agent back toward the expert's state distribution whenever it drifts.

The POIR system architecture, integrating a world model, behavior cloning policy, and imitation reward into a model-predictive control agent.

The system consists of three primary components:

  1. BC Policy Prior: An ensemble of Behavior Cloning networks that serves as a proposal mechanism for the planner.
  2. Learned World Model: A deterministic ensemble of neural networks trained to predict future states based on current states and actions.
  3. Imitation Reward ($r_{IL}$): A reward function that penalizes deviations from the expert data. The authors explored variants using L2 distance to expert states, BC ensemble disagreement (DRIL), and world model uncertainty (MOREL).

At each timestep, the agent uses Model Predictive Control (MPC). It samples thousands of potential trajectories from the BC prior, simulates them through the world model, and selects the action corresponding to the trajectory with the highest cumulative imitation reward. Essentially, the planner's job is to find the path that "gets back" to the expert's known states.

Experimental Evaluation

The authors evaluated POIR using the Robosuite simulator on three tasks: Lift, PickPlaceCan, and NutAssemblySquare. Using 200 human demonstrations from the Robomimic dataset, they tested the agent's robustness against significant initial state noise and stochastic environment dynamics.

Key results include:

  • Robustness to Noise: In the PickPlaceCan task with high initial state noise, standard BC success rates dropped to near zero, while POIR-L2 maintained a success rate of nearly 60%.
  • Sample Efficiency: POIR achieved significant performance gains with only 500,000 steps of online fine-tuning, whereas adversarial methods like DAC often require millions of steps.
  • Outperforming Baselines: POIR consistently surpassed state-of-the-art adversarial methods (DAC, ValueDice) in handling distribution shifts within a limited sample budget.

Emergent Behaviors and Insights

One of the most significant findings is the emergence of "retrying" behaviors. Unlike a standard BC agent that might continue a pre-programmed motion sequence even after failing a grasp, a POIR-equipped robot recognizes it has entered an unsuccessful state. The planner then guides the arm back to a position where it can re-attempt the grasp.

A sequence of frames showing the robot performing a manipulation task, demonstrating the robustness enabled by the POIR planner.

The paper highlights that ensembles are a "free lunch" in this context, providing both a more robust policy prior and the uncertainty signals necessary for effective imitation rewards.

Conclusion and Future Work

POIR demonstrates that combining offline imitation with online return-to-distribution planning creates a highly robust agent capable of recovering from errors. Future work includes scaling the imitation reward to high-dimensional pixel inputs via latent embeddings and validating the system on physical robotic hardware. While the computational cost of ensemble-based MPC is higher than a single policy pass, the authors show it is feasible for real-time control at 5-10Hz.

Summary updated

BibTeX
@misc{cideron2023get,
  author = {Geoffrey Cideron and Baruch Tabanpour and Sebastian Curi and Sertan Girgin and Léonard Hussenot and Gabriel Dulac-Arnold and Matthieu Geist and Olivier Pietquin and Robert Dadashi},
  title = {{Get Back Here: Robust Imitation by Return-to-Distribution Planning}},
  year = {2023},
  eprint = {2305.01400},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.01400},
}
Figure