Integrating Behavior Cloning and Reinforcement Learning for Improved Performance in Dense and Sparse Reward Environments

Vinicius G. Goecks, Gregory M. Gremillion, Vernon J. Lawhern, John Valasek, Nicholas R. Waytowich

Introduction

Reinforcement Learning (RL) agents typically begin as "blank slates," relying on random exploration that is often inefficient and, in real-world robotics, potentially hazardous. While Behavior Cloning (BC) offers a head start by mimicking human demonstrations, it is plagued by "distributional drift"—a failure to recover from states not encountered during training. The transition from imitation to exploration often results in performance "dips" or the total loss of expert behaviors. This paper introduces the Cycle-of-Learning (CoL) framework to bridge this gap, ensuring rapid, stable learning in both dense and sparse reward environments.

Methodology

The CoL framework utilizes an off-policy actor-critic architecture, integrating three key innovations:

  1. Unified Loss Function: CoL maintains a combined loss throughout training, incorporating expert BC loss (MSE), 1-step Q-learning loss (Bellman equation), actor Q-loss (reward maximization), and $L_2$ regularization. This prevents the agent from "forgetting" expert behavior during the RL phase.
  2. Two-Phase Training: The process begins with Pre-training, where both the actor (policy) and critic (value function) are trained solely on human demonstration data. This provides the critic with a baseline understanding of state values before environmental interaction. This is followed by RL Training, where the agent interacts with the environment using the unified loss.
  3. Fixed-Ratio Replay Buffer: To ensure stability, training batches consistently consist of 25% expert data and 75% agent-generated data. This fixed ratio proved more robust than Prioritized Experience Replay (PER) in sparse reward scenarios.

Experimental Setup

The framework was evaluated across three distinct environments:

  • LunarLanderContinuous-v2 (Dense Reward): Standard task with step-wise rewards.
  • LunarLanderContinuous-v2 (Sparse Reward): Modified task where rewards are only granted at the episode's conclusion.
  • Custom Quadrotor Landing (AirSim): A high-fidelity 3D simulation requiring a drone to land on a moving vehicle amidst gusty winds.
The AirSim environment used for the quadrotor landing task, featuring a drone and a target vehicle.

Results and Discussion

CoL demonstrated superior performance and stability across all test cases. Notably, it avoided the performance degradation typically seen when transitioning from offline pre-training to online interaction.

Performance comparison of CoL against BC, DDPG, and DAPG in (a) Dense Lunar Lander, (b) Sparse Lunar Lander, and (c) AirSim Quadrotor environments.

In the sparse Lunar Lander task, standard RL (DDPG) failed to learn entirely, whereas CoL achieved high performance rapidly. In the complex AirSim environment, CoL significantly outperformed baselines, handling high-dimensional state spaces and stochastic wind conditions effectively. Quantitatively, in the dense Lunar Lander scenario, CoL achieved an average reward of 261.80, significantly outperforming DDPG (152.98) and DAPG (127.99).

Conclusion

The Cycle-of-Learning framework successfully integrates human demonstrations with reinforcement learning. By pre-training the critic and maintaining a constant expert "anchor" via the loss function and replay buffer, CoL achieves state-of-the-art sample efficiency and stability. Future work will explore integrating human interventions and binary evaluative feedback to further enhance learning in physical robotic systems.

Summary updated

BibTeX
@inproceedings{goecks2020integrating,
  author = {Vinicius G. Goecks and Gregory M. Gremillion and Vernon J. Lawhern and John Valasek and Nicholas R. Waytowich},
  title = {{Integrating Behavior Cloning and Reinforcement Learning for Improved Performance in Dense and Sparse Reward Environments}},
  booktitle = {AAMAS},
  year = {2020},
}
Figure