Self-Paced Deep Reinforcement Learning

Pascal Klink, Carlo D'Eramo, Jan Peters, Joni Pajarinen

Overview

This paper introduces Self-Paced Deep Reinforcement Learning (SPDL), a novel algorithm that automatically generates a learning curriculum for a Reinforcement Learning (RL) agent. By framing curriculum generation as a probabilistic inference problem, the authors provide a solid theoretical foundation that replaces previous heuristic-based approaches. This allows the agent to dynamically control the pace of its own learning while seamlessly integrating with standard deep RL algorithms like PPO and SAC.

The Challenge of Sample Inefficiency in Deep RL

Deep Reinforcement Learning (DRL) algorithms are notoriously sample-inefficient, often requiring millions of interactions to learn complex behaviors. Curriculum Learning (CL) mitigates this by exposing the agent to a sequence of progressively harder tasks, rather than dropping it directly into the final, highly complex target task.

However, manually designing these task sequences is tedious and highly domain-specific. While automatic Curriculum Reinforcement Learning (CRL) methods exist, they largely rely on empirical heuristics—such as "intrinsic motivation" or success-rate tracking—and lack a rigorous theoretical understanding. This absence of theory makes it difficult to systematically improve these algorithms or guarantee their behavior. SPDL bridges this gap by providing a mathematically principled approach to automatic curriculum generation.

Self-Paced Deep Reinforcement Learning (SPDL)

The authors formulate RL over a set of parameterized tasks (Contextual MDPs, where a context $c$ defines the task parameters) as an inference problem using a latent variable model.

The core of SPDL is a modified objective function that optimizes a trade-off between two competing goals:

  1. Maximizing reward on a chosen task distribution: The agent wants to train on tasks it is currently good at (self-paced learning).
  2. Matching the target task: A Kullback-Leibler (KL) divergence penalty forces the chosen task distribution to eventually match the true, desired target task distribution.

The algorithm uses a block-coordinate ascent approach:

  • Agent Improvement: Train the policy on the current task distribution using any standard off-the-shelf DRL algorithm (e.g., TRPO, PPO, SAC).
  • Context Distribution Update: Update the task distribution to maximize the agent's expected value function, minus the KL divergence penalty scaled by a parameter $\alpha$.

As $\alpha$ gradually increases, the KL penalty tightens, forcing the curriculum to smoothly transition from "tasks the agent finds easy" to "the actual target task." The authors prove that this process is mathematically equivalent to the Expectation-Maximization (EM) algorithm with a regularized E-step (variational tempering).

Experimental Environments

Experimental environments used to evaluate SPDL: (a) Point-Mass, (b) Ant, and (c) Ball-Catching.

The authors evaluate SPDL on three simulated continuous-control environments, where a "context" dictates the physical parameters of the task:

  • Point Mass (2D and 3D): A point mass must navigate through a gate. The context controls the gate's width, position, and the ground's friction.
  • Ant Environment: A complex, 4-legged torque-controlled ant (simulated in Nvidia Isaac Gym) must navigate through a gate. The context controls the gate's width and position.
  • Ball-Catching: A Barrett WAM robot arm must catch a thrown ball. The context controls the ball's initial distance and target position. This environment features a highly sparse reward, as the agent is only rewarded for a successful catch.

Key Insights: Curriculum as Inference

  • Theoretical Foundation: The most significant contribution is showing that curriculum generation naturally emerges from applying approximate inference techniques (specifically, deterministic annealing/tempering) to the standard RL objective. It is no longer just an empirical trick.
  • Unification of RL Paradigms: Previous self-paced learning approaches in RL were strictly limited to episodic algorithms. SPDL's formulation allows it to be used with modern, step-based deep RL algorithms, making it viable for high-dimensional neural network policies.
  • Target-Awareness: Unlike exploratory curriculum methods (like GoalGAN or ALP-GMM) that simply seek out tasks of "intermediate difficulty," SPDL explicitly anchors its curriculum to a known target distribution. This prevents the agent from wasting time mastering tasks that are irrelevant to the final goal.

Performance and Results

SPDL matched or significantly outperformed state-of-the-art CRL algorithms (ALP-GMM, GoalGAN, and SPRL) across the board:

  • Point Mass (3D): SPDL achieved an asymptotic reward of 9.35 $\pm$ 0.1 (using PPO), completely dominating ALP-GMM (2.34 $\pm$ 0.2) and GoalGAN (0.50 $\pm$ 0.0).
  • Ant: SPDL successfully guided the ant through the gate, escaping a local optimum—where the ant simply stands still to avoid movement penalties—that trapped baseline methods and random curricula.
  • Ball-Catching (Sparse Reward): SPDL successfully shrank an initially wide, uninformative task distribution to a narrow subspace where the initialized policy worked. It then smoothly expanded it to master the target distribution, achieving a reward of 53.9 $\pm$ 0.4 compared to GoalGAN's 42.6 $\pm$ 2.7.

Future Directions

The authors acknowledge a few limitations that present exciting avenues for future work:

  • Parametric Restrictions: In the experiments, the task distribution was restricted to a Gaussian. Advanced sampling techniques, such as Langevin dynamics, could be used to allow for multi-modal, non-parametric task distributions.
  • Heuristic Hyperparameter Scheduling: The parameter $\alpha$ (which controls the curriculum's pace) is currently updated using a somewhat naive heuristic schedule. Because of the new inference framing, future work can borrow principled methods for tuning $\alpha$ directly from the variational tempering literature.

Summary updated

BibTeX
@inproceedings{klink2020self,
  author = {Pascal Klink and Carlo D'Eramo and Jan Peters and Joni Pajarinen},
  title = {{Self-Paced Deep Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=EMg43bQxx7J},
}
Figure