NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Predictive Sampling: Real-time Behaviour Synthesis with MuJoCo

Taylor Howell, Nimrod Gileadi, Saran Tunyasuvunakool, Kevin Zakka, Tom Erez, Yuval TassaarXiv 2022

TL;DR

DeepMind introduces MuJoCo MPC (MJPC), an open-source, interactive framework that brings real-time Model Predictive Control (MPC) to the masses. Alongside classic derivative-based planners, the paper highlights "Predictive Sampling"—a dead-simple, derivative-free random search baseline that performs surprisingly well, proving that fast, approximate optimization can rival complex algorithms in dynamic environments.

What Problem Does This Paper Address?

While deep reinforcement learning has achieved remarkable success in robotics, it remains data-hungry and computationally slow, often requiring hours or days of training. In contrast, model-based approaches like Model Predictive Control (MPC) can synthesize complex behaviors in real time by planning online.

However, model-based optimization is notoriously difficult to implement, relies on elaborate mathematical frameworks, and has generally been inaccessible to the broader research community. The authors introduce MJPC to lower this barrier to entry, providing an interactive, flexible playground for real-time predictive control.

Methods

MJPC is an asynchronous framework where an agent executes actions from a nominal plan while a planner continuously optimizes that plan in the background. The framework implements three shooting-based planners:

  1. iLQG (Iterative Linear Quadratic Gaussian): A standard second-order, derivative-based planner.
  2. Gradient Descent: A first-order planner utilizing Pontryagin's Maximum Principle.
  3. Predictive Sampling: A simple zero-order, derivative-free algorithm. It generates candidate trajectories by adding Gaussian noise to the current best ("nominal") plan, evaluates them in parallel, and selects the best one.

To make optimization efficient, MJPC introduces two key features:

  • Spline Compression: Instead of optimizing raw, step-by-step control sequences, MJPC compresses the control space into time-indexed splines (Zero-order hold, Linear, or Cubic), significantly reducing the search space dimensionality.
Time-indexed spline representations used to compress the control space.
  • Risk-Sensitive Costs: The standard cost function is augmented with an exponential scalar transformation ($\rho$) allowing researchers to easily tune the agent to be risk-neutral, risk-averse, or risk-seeking.
The risk transformation function evaluated for different values of the risk parameter R.

Crucially, the framework includes an interactive graphical user interface (GUI) that allows users to modify task parameters, costs, and planner settings on the fly, receiving instantaneous visual feedback.

The MJPC Graphical User Interface showing real-time policy traces, cost terms, and compute times.

Datasets

The paper does not use static datasets; instead, it evaluates the framework across three challenging continuous control simulation environments from the DeepMind Control Suite and MuJoCo Menagerie:

  • Humanoid: A highly complex 27-Degrees-of-Freedom (DOF) system with 21 actuators.
  • Quadruped: A Unitree A1 robot model tasked with navigating uneven terrain and steep slopes.
  • Shadow Hand: A high-DOF anthropomorphic robotic hand tasked with in-hand cube manipulation.

Key Insights and Ideas

  • "Surfing, Not Mountain Climbing": The authors note that traditional optimization metrics like full convergence matter less in predictive control. Because the physical state and environment are constantly shifting, it is better to take a single, fast optimization step and immediately re-plan with a new state measurement rather than wasting time converging to an outdated minimum.
  • The Power of High Planning Rates: Predictive Sampling works surprisingly well because it is computationally lightweight. The sheer speed of generating and evaluating samples in parallel on MuJoCo's thread-safe API compensates for its lack of gradient information.
  • Democratizing Hardware Requirements: MJPC allows the interactive simulation to be slowed down asynchronously relative to the planner. This means researchers on older or slower machines (like standard laptops) can still generate complex behaviors by effectively giving the planner more compute time per simulation step.

Key Results

  • Ultra-low Latency: Across all complex, high-dimensional tasks, the total planning time for a single update consistently stayed between 1 and 20 milliseconds on a single CPU.
  • Robust Locomotion: The 27-DOF Humanoid successfully learned to stand up from the floor and recover from massive external forces in real time. The Quadruped successfully rolled off its back to stand up and traversed steep, uneven slopes.
  • Dexterous Manipulation: The Shadow Hand achieved real-time, in-hand cube reorientation to arbitrary target poses from scratch—a task traditionally considered highly difficult due to complex contact dynamics.

Limitations and Future Work

  • Simulation Boundaries: MJPC can only control what MuJoCo can simulate much faster than real-time. It struggles with very high-DOF systems like fluids, cloth, or highly deformable soft bodies.
  • Myopic Horizon: Because MPC looks ahead over a fixed, short time horizon, agents can get stuck in local minima.
  • The "AlphaGo for Control" Vision: To fix this myopia, the authors propose combining MJPC with learning-based approaches in future work—using learned value functions to estimate long-term costs and learned policies to guide the sampling distribution.
  • Hardware Deployment: Deploying directly onto physical robots remains challenging because it requires high-quality, contact-aware, real-time state estimation.

Summary updated

BibTeX
@misc{howell2022predictive,
  author = {Taylor Howell and Nimrod Gileadi and Saran Tunyasuvunakool and Kevin Zakka and Tom Erez and Yuval Tassa},
  title = {{Predictive Sampling: Real-time Behaviour Synthesis with MuJoCo}},
  year = {2022},
  eprint = {2212.00541},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.00541},
}

Loading related content...

Figure