TL;DR
The Cycle-of-Learning (CoL) framework successfully bridges the gap between Behavior Cloning (BC) and Reinforcement Learning (RL) using an off-policy actor-critic architecture. By pre-training both the policy and value functions on human demonstrations and maintaining a unified loss function with a fixed ratio of expert data, CoL achieves rapid, stable learning without the performance degradation typically seen when transitioning between imitation and reinforcement learning.
What Problem Does This Paper Address?
Reinforcement Learning (RL) has achieved incredible success in virtual environments, but its real-world deployment is severely bottlenecked by sample inefficiency. Early in training, an RL agent relies on random trial-and-error exploration. In physical systems—like autonomous ground vehicles or quadrotors—this random behavior can lead to catastrophic hardware failures or unsafe conditions.
To circumvent this, researchers often use Learning from Demonstrations (LfD), such as Behavior Cloning (BC), to jump-start the agent with human data. However, BC is limited by the quality and quantity of the demonstrations and suffers from "distributional drift" (compounding errors when the agent drifts into states it didn't see during training).
While combining BC and RL seems like the obvious solution, it is notoriously difficult in practice. Because BC and RL optimize entirely different objective functions, transitioning an agent from a cloned policy to an RL training loop frequently causes a temporary—or sometimes permanent—drop in performance. This paper tackles how to seamlessly combine these two paradigms to ensure stable, continuous policy improvement, even when environmental rewards are sparse.
Methods
The authors introduce the Cycle-of-Learning (CoL) framework, an off-policy actor-critic method (built on top of Deep Deterministic Policy Gradients, or DDPG) designed for continuous action spaces. CoL relies on three core pillars:
- Joint Pre-training: Before the agent ever interacts with the environment, both the actor (the policy) and the critic (the value function) are pre-trained on human demonstration data. Pre-training the critic helps shape the initial value distribution to match expert trajectories, easing the subsequent transition to RL.
-
Unified Loss Function: Instead of abruptly switching off the imitation loss, CoL uses a combined loss function throughout training: $$\mathcal{L}_{CoL}(\theta_Q, \theta_\pi) = \lambda_{BC}\mathcal{L}_{BC}(\theta_\pi) + \lambda_A\mathcal{L}_A(\theta_\pi) + \lambda_{Q1}\mathcal{L}_{Q1}(\theta_Q) + \text{Regularization}$$ This blends the behavior cloning loss ($\mathcal{L}_{BC}$), the standard actor Q-loss ($\mathcal{L}_A$), and a 1-step return Q-learning loss ($\mathcal{L}_{Q1}$).
-
Fixed-Ratio Replay Buffer: When the RL phase begins, mini-batches are sampled using a strict, fixed ratio: 25% expert demonstration data and 75% self-generated agent data. This ensures that every single gradient update is grounded by expert behavior.
Datasets
The framework was evaluated across two simulated domains featuring continuous observation and action spaces:
- LunarLanderContinuous-v2 (OpenAI Gym): Tested in both a dense reward setup (standard step-by-step feedback) and a custom sparse reward setup (where the agent receives a reward only at the very end of the episode).
- Custom Quadrotor Landing Task (Microsoft AirSim): A highly stochastic 3D environment where a drone must land on a static pad. To make it realistic, the authors introduced simulated wind gusts. This task uses a strict sparse reward scheme based solely on the final landing accuracy.
Key Insights and Ideas
- Pre-training the Critic is Crucial: Most prior methods only pre-train the policy network. CoL shows that pre-training the critic on expert data prevents the classic "performance dip" when the agent transitions to interacting with the environment.
- Never Stop Cloning: Keeping the behavior cloning loss active during the RL phase acts as an anchor. Without it ($\lambda_{BC} = 0$), the policy's performance steadily degrades over time due to catastrophic forgetting.
- Prioritized Experience Replay (PER) Can Fail in Sparse Rewards: While PER is standard in RL to prioritize surprising transitions, the authors found it breaks down in sparse reward settings. Once the agent minimizes the Temporal Difference (TD) error on expert data, PER stops sampling those transitions. A fixed 25/75 sampling ratio guarantees the agent never unlearns the foundational human demonstrations.
Key Results
CoL was compared against pure Behavior Cloning (BC), standard DDPG, and Demonstration Augmented Policy Gradient (DAPG).
- Dense Rewards: CoL reached peak performance faster and more consistently than all baselines. Standard DDPG eventually caught up after 1 million steps but exhibited much higher variance and later began to diverge.
- Sparse Rewards: In the sparse Lunar Lander environment, standard DDPG failed to learn entirely. DAPG improved slowly, whereas CoL rapidly achieved maximum reward.
- Stochastic 3D Environments: In the AirSim drone landing task, CoL immediately surpassed the baseline human demonstration performance and steadily improved, while DDPG failed to find a viable policy amid the wind gusts.
Limitations and Future Work
While CoL shows excellent results, the human data used in this study consisted of static, pre-recorded trajectories. The authors note that a true "human-in-the-loop" system should accommodate multiple dynamic modalities, such as real-time human interventions (taking control when the agent messes up) or continuous evaluative feedback (giving a simple "good" or "bad" signal).
Additionally, all testing was performed in simulation. The authors' stated next step is to deploy the CoL framework onto physical robotic hardware to prove its viability for safe, rapid real-world learning.
Summary updated