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

Probabilistic dynamics ensembles let model-based RL match model-free performance with far fewer samples

Kurtland Chua, Roberto Calandra, Rowan McAllister, Sergey Levine · arXiv · 2018-5-30

- **Problem** Model-based RL learns quickly but usually settles on weaker behaviour than model-free RL. Neural dynamics models overfit when data is scarce, and that overfitting limits how well planning works.
- **Method** PETS trains an ensemble of bootstrapped probabilistic networks that model uncertainty. It plans with model predictive control and propagates state particles through the ensemble by trajectory sampling.
- **Results** On half-cheetah, PETS needs 8 times fewer samples than Soft Actor Critic and 125 times fewer than Proximal Policy Optimization. It matches the asymptotic performance of model-free methods on several benchmark tasks.

## Why sample efficiency and asymptotic performance pull apart

Model-free RL is costly in samples, which keeps most applications inside simulators. Model-based RL instead learns a predictive model of the system first and then uses that model to make decisions, which is the route to lower sample cost. On common benchmark tasks, however, model-based methods usually lag behind model-free methods at convergence, so they learn faster but settle on less optimal behaviour.

The model class is one source of the gap. Gaussian processes learn very quickly, but they struggle with complex, discontinuous dynamics and scale poorly with dimensionality. Neural networks handle large datasets and high-dimensional inputs, but with little data they overfit and make poor predictions far into the future. The working premise of the paper is that handling uncertainty in the dynamics model can reduce this overfitting enough to close much of the gap.

## How the probabilistic ensemble separates two kinds of uncertainty

A probabilistic network has output units that parameterize a distribution over the next state, for example a diagonal Gaussian whose mean and covariance are functions of the current state and action. It is trained by minimizing the negative log prediction probability over the recorded transitions, as the loss below shows. \\\[ \\mathrm{loss}\_P(\\theta) = -\\sum\_{n=1}^{N} \\log \\tilde{f}\_\\theta(s\_{n+1} \\mid s\_n, a\_n) \\\] Because the network is trained discriminatively, this captures aleatoric uncertainty, meaning the inherent noise of the system, but not epistemic uncertainty.

Epistemic uncertainty is handled by an ensemble of B bootstrapped models, with B set to 5 in all experiments. Each bootstrap model is trained on a dataset drawn from the recorded data by sampling with replacement, so the members see different resamples of the same transitions. The ensemble prediction averages the predictive distributions of its members, and the members agree near the training data but tend to disagree far from it, which is how the disagreement expresses epistemic uncertainty.

A probabilistic network's predicted variance can take arbitrary values on inputs far from the training data. The authors therefore bound the log-variance between minimum and maximum values seen in training, using softplus transformations. This detail is treated as necessary for the model to be usable during planning, since unbounded variance can collapse to zero or explode.

## Planning with sampled action sequences and trajectory sampling

The controller uses model predictive control: at each step it optimizes an action sequence over a prediction horizon under the learned model, applies only the first action, and then replans. The authors chose this over learning a policy because it avoids gradients, does not require the task horizon to be fixed in advance, and still matches the data efficiency of a prior Bayesian-network approach.

Action sequences are optimized with the cross-entropy method, which keeps refitting a candidate action distribution to the highest-reward samples, rather than with uniform random shooting.

Trajectory sampling begins with P particles, all starting at the current state, and propagates each one through a single ensemble member chosen by a bootstrap index b(p,t). TS1 re-samples the bootstrap index at every time step, so particles can move between ensemble members over time. TS∞ fixes each particle's bootstrap index for the whole trial, which lets the aleatoric spread be read as the average variance within a bootstrap and the epistemic spread as the variance of the bootstrap averages.

The paper uses P = 20 particles in all experiments.

The full loop starts with one trial driven by a random controller, trains the PE model on the data so far, plans with CEM over trajectory-sampled particles at each time step, executes the first action of the best sequence, and appends the observed transition to the dataset.

## Baseline propagation methods used for comparison

Expectation propagates only the expected prediction of the model at each step, so a single particle is carried forward and the uncertainty is ignored. Moment matching re-casts the state distribution at every step as a Gaussian with matched mean and variance, which imposes a unimodal assumption. Distribution sampling matches moments only over the bootstraps, so the epistemic part is smoothed while the aleatoric spread can stay multimodal.

## Comparison with model-free and model-based RL

The baselines are PPO, DDPG, Soft Actor Critic, the deterministic model-based hybrid MBMF from Nagabandi et al., and three Gaussian process variants. Learning curves report reward averaged over 10 experiments, using the maximum reward seen so far, and one time step is 0.01 seconds except for Cartpole, which uses 0.02 seconds.

PETS reaches performance similar to the asymptotic performance of PPO, but PPO needs several orders of magnitude more samples to get there. On half-cheetah the sample reduction is 8 times relative to Soft Actor Critic and 125 times relative to Proximal Policy Optimization.

The deterministic variant D-E, which corresponds to the prior approach of Nagabandi et al., reaches substantially lower asymptotic reward than PETS, which the authors attribute to uncertainty estimation. The GP-MM baseline slightly outperforms PETS on Cartpole, but it scales cubically in time and quadratically in state dimensionality, so it was not run on the remaining higher-dimensional tasks.

From this the authors conclude that a purely model-based method with no parameterized policy can reach comparable performance when uncertainty is modeled during learning and planning.

## Which model class and propagation method account for the results

Across the tasks, the probabilistic ensemble PE-XX variants perform best in every task except Cartpole, the single-uncertainty models P-XX and DE-XX come next, and the deterministic ensemble D-E is worst. The ranking among models is PE above P above DE above D.

Moment matching is competitive on low-dimensional tasks, consistent with Gal et al., but is not a reliable choice on higher-dimensional tasks such as half-cheetah.

## Robustness to action noise, linear models, and optimizers

Gaussian noise added to the selected action, at standard deviations from 0 to 20 percent of the permitted action range, degrades deterministic networks more than the probabilistic PE models, which perform better and more consistently.

Over 100 trials on half-cheetah, a linear dynamics model reaches lower reward than PE-TS, which the authors take as evidence that a nonlinear model is needed.

This optimizer comparison uses the MuJoCo simulator as ground-truth dynamics rather than the learned model, so it isolates the optimizer. Each method uses 2500 samples, with CEM running five iterations of 500 candidate actions, while random shooting draws 2500 samples once. CEM achieves significantly higher reward than random search on half-cheetah, and CEM is used in all remaining experiments.

Probabilistic propagation stays robust when the MPC horizon is set too long, because particles separate over time and reduce the influence of distant, unpredictable costs. Deterministic propagation degrades at long horizons on half-cheetah, which the authors link to model bias compounding over time.

## Limits of the evidence

The method is a planner, not a policy. The authors' initial attempts to train a policy by propagating gradients through the uncertainty-aware models did not yield an effective algorithm, which they tentatively link to chaotic policy gradients. Policy learning on top of the model is therefore left to future work.

The experiments cover four MuJoCo continuous-control tasks, with Cartpole being the only low-dimensional one, and the GP-MM baseline beat PETS only there. Action noise was tested on the action space only, and the exploration use of epistemic uncertainty was deferred to future work.

## Paper info

- **Authors**: Kurtland Chua, Roberto Calandra, Rowan McAllister, Sergey Levine
- **Venue**: arXiv · Preprint
- **First published**: 2018-5-30
- **Added**: 2026-11-6
- **Updated**: 2018-11-2
- **Version**: v2
- **arXiv**: 1805.12114
- **Category**: cs.LG · cs.AI · cs.RO · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1805.12114v2) · [PDF ↗](https://arxiv.org/pdf/1805.12114v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Kurtland Chua, Roberto Calandra, Rowan McAllister, Sergey Levine (2018). Deep Reinforcement Learning in a Handful of Trials using Probabilistic Dynamics Models. arXiv:1805.12114v2. https://arxiv.org/abs/1805.12114v2

**BibTeX**

```
@misc{chua2018deep,
  title = {{Deep Reinforcement Learning in a Handful of Trials using Probabilistic Dynamics Models}},
  author = {Kurtland Chua and Roberto Calandra and Rowan McAllister and Sergey Levine},
  year = {2018},
  eprint = {1805.12114},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.12114v2}
}
```

## Other paper commentary

- [Deep Reinforcement Learning framework for Autonomous Driving](https://refivu.com/en/papers/baaead94-eeef-4412-9a69-b14b7ab4fe14-deep-reinforcement-learning-framework-for-autonomous-driving.md)
- [Rainbow: Combining Improvements in Deep Reinforcement Learning](https://refivu.com/en/papers/b98e78e1-7a51-4f55-b8c6-f920fb30d547-rainbow-combining-improvements-in-deep-reinforcement.md)
- [Deep Reinforcement Learning with Double Q-learning](https://refivu.com/en/papers/f2b03deb-df54-4587-b32e-077bd6c02e5b-deep-reinforcement-learning-with-double-q-learning.md)
- [When to Trust Your Model: Model-Based Policy Optimization](https://refivu.com/en/papers/c30bd870-19cb-4a6e-8e2b-d348ea953f92-when-to-trust-your-model-model-based-policy.md)
- [Addressing Function Approximation Error in Actor-Critic Methods](https://refivu.com/en/papers/88b36232-904a-4e73-a6d0-c363af4ff547-addressing-function-approximation-error-in-actor-critic.md)
- [Dueling Network Architectures for Deep Reinforcement Learning](https://refivu.com/en/papers/9ab4aa94-b111-4c78-9b27-cec02635ef27-dueling-network-architectures-for-deep-reinforcement.md)
- [Dream to Control: Learning Behaviors by Latent Imagination](https://refivu.com/en/papers/20a4d063-3ef9-48fc-88cb-307287206e29-dream-to-control-learning-behaviors-by-latent-imagination.md)
- [Natural TTS Synthesis by Conditioning WaveNet on Mel Spectrogram Predictions](https://refivu.com/en/papers/596b5353-6c04-4ada-a92e-25d0fee13147-natural-tts-synthesis-by-conditioning-wavenet-on-mel.md)
- [SSD: Single Shot MultiBox Detector](https://refivu.com/en/papers/1889995f-3f80-4a7d-b734-c549e845a707-ssd-single-shot-multibox-detector.md)
- [Two-Stream Convolutional Networks for Action Recognition in Videos](https://refivu.com/en/papers/d621dee0-0b2a-45a8-b152-6260b98f0db4-two-stream-convolutional-networks-for-action-recognition-in.md)
- [Prompting Is Programming: A Query Language for Large Language Models](https://refivu.com/en/papers/688fcde1-89d3-44fe-b9ec-673455f09c78-prompting-is-programming-a-query-language-for-large.md)
- [Multimodal Machine Learning-based Knee Osteoarthritis Progression Prediction from Plain Radiographs and Clinical Data](https://refivu.com/en/papers/2b4e96e0-64f3-4752-8b7e-3e4c0c68dc86-multimodal-machine-learning-based-knee-osteoarthritis.md)

## Terms in this paper

- [reinforcement learning](https://refivu.com/en/terms/6c51042515d2-reinforcement-learning)
- [mean squared error](https://refivu.com/en/terms/e8df98e6d7b7-mean-squared-error)
- [proximal policy optimization](https://refivu.com/en/terms/59b59e5d0f9d-proximal-policy-optimization)
- [MuJoCo](https://refivu.com/en/terms/3bbbe9014268-mujoco)
- [Aleatoric uncertainty](https://refivu.com/en/terms/33c799c7757b-aleatoric-uncertainty)
- [Reward](https://refivu.com/en/terms/2d2ecca2776a-reward)
- [cross-entropy method](https://refivu.com/en/terms/6330e4cdd229-cross-entropy-method)
- [epistemic uncertainty](https://refivu.com/en/terms/947c2a539156-epistemic-uncertainty)
- [model predictive control](https://refivu.com/en/terms/938ebb77f1ac-model-predictive-control)
- [cross-entropy method (CEM)](https://refivu.com/en/terms/2104548c1b6e-cross-entropy-method-cem)
- [Moment matching](https://refivu.com/en/terms/6f46dc394b8c-moment-matching)
- [PETS](https://refivu.com/en/terms/ad20c28afb57-pets)
- [Probabilistic neural networks](https://refivu.com/en/terms/d9554d38fd87-probabilistic-neural-networks)
- [Soft Actor Critic](https://refivu.com/en/terms/a1228b9903ce-soft-actor-critic)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/7e2537c1-771a-440a-8d0f-51287b1afd57-deep-reinforcement-learning-in-a-handful-of-trials)
