Deep Reinforcement Learning in a Handful of Trials using Probabilistic Dynamics Models

Kurtland Chua, Roberto Calandra, Rowan McAllister, Sergey Levine

TL;DR

The PETS (Probabilistic Ensembles with Trajectory Sampling) algorithm bridges the long-standing gap between model-based and model-free reinforcement learning. By using an ensemble of probabilistic neural networks to capture both inherent system noise and model uncertainty, it matches the peak performance of model-free methods while requiring up to 125x fewer data samples.

The Model-Based vs. Model-Free Dilemma

Reinforcement Learning (RL) typically falls into two camps: model-free and model-based.

  • Model-free methods (like PPO or SAC) are the "gold standard" for asymptotic performance but are incredibly "data-hungry," often requiring millions of interactions to learn simple tasks.
  • Model-based (MBRL) methods are much faster because they learn a "world model" to imagine the future. However, they historically suffer from a "performance ceiling"—they learn quickly but converge to mediocre solutions because their models are often inaccurate or overfit.

The authors identify that the primary culprit for this performance gap is the failure of neural network models to account for uncertainty. When a model is certain about a wrong prediction, the agent makes catastrophic planning errors.

The PETS Algorithm

To address this, the authors propose PETS, which combines two key components to handle uncertainty alongside a robust planning mechanism.

PETS Algorithm Pipeline
  1. Probabilistic Ensembles (PE): Instead of one neural network making a single point prediction, PETS uses an ensemble of networks. Each network outputs a distribution (mean and variance) rather than a single value. This captures two types of uncertainty:
  2. Aleatoric (Inherent Noise): The "randomness" of the world (e.g., a robot foot slipping).
  3. Epistemic (Model Uncertainty): Our lack of knowledge (e.g., "I haven't seen this part of the state space yet"). The disagreement between different networks in the ensemble represents this uncertainty.
  4. Trajectory Sampling (TS): To plan, the agent "imagines" future outcomes by propagating "particles" through the ensemble. Each particle follows a specific model's prediction, allowing the agent to visualize a distribution of possible futures rather than just the most likely one.
  5. Planning via MPC: PETS uses Model Predictive Control. It doesn't learn a "policy" in the traditional sense; instead, at every time step, it uses the Cross-Entropy Method (CEM) to search for the best sequence of actions within its learned world model, executes the first action, and repeats.

Evaluation and Benchmarks

The algorithm was evaluated on several standard continuous control benchmarks from the MuJoCo physics engine, including Cartpole, 7-DOF Pusher, 7-DOF Reacher, and the complex Half-cheetah locomotion task.

Half-cheetah Task

These tasks are standard in the field but are notoriously challenging for model-based methods due to contact discontinuities and high-dimensional state spaces.

Key Insights and Results

  • Uncertainty is the "Secret Sauce": The paper demonstrates that simply using a high-capacity neural network isn't enough. Without uncertainty awareness, the planner "exploits" the model's inaccuracies. By acknowledging what it doesn't know, the agent stays within regions where the model is reliable.
  • NNs can beat GPs: Historically, Gaussian Processes (GPs) were the kings of model-based RL because they handle uncertainty perfectly. However, they don't scale well to complex, "jagged" dynamics. PETS shows that ensembles of NNs can provide the benefits of GPs while scaling to much more complex environments.
  • The Asymptotic Gap is Gone: This is one of the first papers to show a model-based method reaching the same final reward level as state-of-the-art model-free methods on tasks like the Half-cheetah.
  • Massive Sample Efficiency: On the Half-cheetah task, PETS reached the same performance as Soft Actor Critic (SAC) with 8x fewer samples and Proximal Policy Optimization (PPO) with 125x fewer samples.
  • Speed of Learning: PETS typically masters these complex tasks in just 100 trials (roughly 10,000 to 100,000 time steps), whereas model-free methods often require millions of steps.

Limitations and Future Work

  • Computational Cost: Because PETS uses MPC and CEM at every step, it is computationally expensive during "inference" (execution). It spends a lot of time "thinking" about the next move compared to a model-free policy which is just a quick matrix multiplication.
  • Planning Horizon: The method relies on a fixed planning horizon. If a task requires very long-term reasoning that exceeds the "imagination" window, the performance might degrade.
  • State vs. Pixels: The experiments were conducted using internal state vectors (joint angles, velocities). Scaling this specific approach to raw image pixels remains a challenge due to the difficulty of modeling high-dimensional visual dynamics accurately.

Summary updated

BibTeX
@inproceedings{chua2018deep,
  author = {Kurtland Chua and Roberto Calandra and Rowan McAllister and Sergey Levine},
  title = {{Deep Reinforcement Learning in a Handful of Trials using Probabilistic Dynamics Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=mvGYoFsdcr},
}
Figure