Backward Curriculum Reinforcement Learning

Kyungmin Ko, Sajad Khodadadian, Siva Theja MaguluriarXiv 2022 · DOI

Abstract

Standard reinforcement learning often struggles with sparse rewards, leading to inefficient exploration and high computational costs. This paper proposes Backward Curriculum Reinforcement Learning (BCRL), a method that reverses collected trajectories for policy updates. By training on goal-proximal states first, BCRL significantly improves sample efficiency in classic control tasks without requiring manual reward shaping or expert demonstrations.

Introduction

Reinforcement Learning (RL) agents typically explore environments blindly. In tasks with sparse rewards, an agent may spend thousands of episodes without receiving a positive signal, leading to a major "cold start" problem. While techniques like reward shaping and imitation learning can mitigate this, they are often labor-intensive or require prior knowledge. BCRL offers a "plug-and-play" alternative that leverages the inherent structure of successful trajectories to guide learning automatically.

Methodology

The BCRL framework modifies the standard policy gradient update cycle. Instead of updating the policy from the start of an episode to the end, it "flips" the trajectory to prioritize the most informative signals.

Overview of the BCRL workflow

As shown in the workflow above, the process involves two primary steps:

  1. Forward Collection: The agent follows its current policy $\pi(a|s)$ to generate a full trajectory of states, actions, and rewards.
  2. Backward Training: The trajectory is saved and reversed. Gradients are updated starting from the final time step (the goal) and moving backward to the initial state.

This approach effectively creates an automated curriculum: the end of a successful trajectory is "easier" to learn from because the goal is immediate, while the start is "harder" because the goal is distant.

Experimental Setup

The authors evaluated BCRL using the REINFORCE algorithm and REINFORCE with Baseline on two OpenAI Gym benchmarks: CartPole-v1 and LunarLander-v2. To stabilize training, Return Normalization was applied. Interestingly, the researchers found that shallow networks (2 layers) were more effective than deeper architectures for these specific tasks, as deep networks tended to waste computation in these simpler environments.

Key Results

BCRL demonstrated substantial improvements in learning speed and stability across both test environments.

Performance comparison on LunarLander-v2

As illustrated in the LunarLander-v2 results, the Backward method consistently outperforms standard Forward training. Key findings include:

  • LunarLander-v2: BCRL reached target scores within 1,000 episodes, whereas standard forward training required over 2,500 episodes.
  • CartPole-v1: BCRL solved the environment in just 250 episodes, representing a 6x speedup over the 1,500 episodes required by standard REINFORCE.
  • Variance Reduction: The backward method exhibited less variance in the learning curve, suggesting a more stable training process.

Discussion and Conclusion

BCRL provides a simple yet powerful modification to existing RL algorithms. By prioritizing learning from goal-proximal states, it overcomes the "cold start" problem inherent in sparse-reward environments. While currently demonstrated on REINFORCE, the authors suggest the method is generalizable to other state-of-the-art algorithms. Future work will explore the scalability of BCRL to high-dimensional continuous control tasks and pixel-based inputs.

Summary updated

BibTeX
@misc{ko2022backward,
  author = {Kyungmin Ko and Sajad Khodadadian and Siva Theja Maguluri},
  title = {{Backward Curriculum Reinforcement Learning}},
  year = {2022},
  eprint = {2212.14214},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.14214},
}
Figure