Offline Learning from Demonstrations and Unlabeled Experience

Konrad Zolna, Alexander Novikov, Ksenia Konyushkova, Çaglar Gülçehre, Ziyu Wang, Yusuf Aytar, Misha Denil, Nando de Freitas, Scott E. ReedarXiv 2020

Abstract

Behavior cloning (BC) is often practical for robot learning because it allows a policy to be trained offline without rewards, by supervised learning on expert demonstrations. However, BC does not effectively leverage unlabeled experience: data of mixed and unknown quality without reward annotations. This unlabeled data can be generated by a variety of sources such as human teleoperation, scripted policies and other agents on the same robot. Towards data-driven offline robot learning that can use this unlabeled experience, we introduce Offline Reinforced Imitation Learning (ORIL). ORIL first learns a reward function by contrasting observations from demonstrator and unlabeled trajectories, then annotates all data with the learned reward, and finally trains an agent via offline reinforcement learning. Across a diverse set of continuous control and simulated robotic manipulation tasks, we show that ORIL consistently outperforms comparable BC agents by effectively leveraging unlabeled experience.

Introduction

Training robots through online reinforcement learning (RL) is often impractical due to slow convergence and the risk of hardware damage. While Behavior Cloning (BC) offers a safer offline alternative by mimicking expert demonstrations, it is limited by its inability to utilize "unlabeled experience"—the vast quantities of mixed-quality data generated during previous experiments or sub-optimal operations. Standard BC typically ignores this data or suffers from performance degradation when it is included. This paper addresses the challenge of leveraging such "messy" unlabeled data to improve robotic policies without requiring exhaustive manual reward labeling.

Methodology: Offline Reinforced Imitation Learning (ORIL)

ORIL introduces a three-step pipeline designed to turn unlabeled experience into a useful training signal:

  1. Reward Learning: The system learns a reward function by contrasting a small set of expert demonstrations ($D_E$) against a large pool of unlabeled observations ($D_U$). To account for potential "accidental successes" within the unlabeled set, the framework employs Positive-Unlabeled (PU) learning. Additionally, it uses TRAIL to ensure the reward model focuses on task-relevant features rather than superficial visual cues.
  2. Data Annotation: The trained reward model is used to annotate the entire dataset (both expert and unlabeled), assigning a reward score to every frame.
  3. Offline RL: The agent is trained using Critic-Regularized Regression (CRR). This algorithm performs a form of weighted behavior cloning, prioritizing actions that the learned reward model identifies as high-quality.

Experimental Evaluation

The authors evaluated ORIL across two primary simulated environments:

  • Robotic Manipulation: A simulated Kinova Jaco arm performing four distinct tasks: Box, Insertion, Slide, and Stack banana. The dataset comprised 8,000 episodes, with expert demonstrations making up only 1-3% of the total data.
  • DeepMind Control Suite: Nine continuous control tasks, including Cheetah run and Humanoid run, where the expert set was sometimes limited to a single demonstration.
The four simulated robotic manipulation tasks: Box, Insertion, Slide, and Stack banana.

Results and Discussion

ORIL demonstrates a unique ability to scale with data volume. Unlike BC, which often plateaus or declines when exposed to non-expert data, ORIL's performance consistently improves as more unlabeled episodes are added. In robotic manipulation tasks, ORIL achieved 20-100% higher returns than BC variants, often approaching the performance of agents trained with ground-truth rewards.

ORIL performance scales with unlabeled data, significantly outperforming Behavior Cloning (BC).

Key findings include:

  • Robustness to Noise: In experiments where the dataset was flooded with low-performance episodes, ORIL remained stable while BC performance dropped by up to 37%.
  • Filtering via the Critic: By using an RL objective, ORIL can identify and learn from the best transitions within a messy dataset, allowing it to potentially surpass the average quality of its training data.
  • Sample Efficiency: The method reaches expert-level performance with significantly fewer demonstrations than traditional imitation learning approaches.

Conclusion

ORIL provides a robust framework for offline robot learning that effectively bridges the gap between simple imitation and full reinforcement learning. While it still requires a small set of high-quality demonstrations to initialize reward learning, its ability to extract value from unlabeled, mixed-quality experience marks a significant step toward scalable, data-driven robotics. Future work will focus on transitioning these results from simulation to real-world environments with complex lighting and physical noise.

Summary updated

BibTeX
@misc{zolna2020offline,
  author = {Konrad Zolna and Alexander Novikov and Ksenia Konyushkova and Çaglar Gülçehre and Ziyu Wang and Yusuf Aytar and Misha Denil and Nando de Freitas and Scott E. Reed},
  title = {{Offline Learning from Demonstrations and Unlabeled Experience}},
  year = {2020},
  eprint = {2011.13885},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.13885},
}
Figure