Dream-MPC: Latent Gradient Planning
- Dream-MPC is a reinforcement learning framework that uses a learned latent space and gradient ascent to plan efficiently for complex, high-dimensional continuous control.
- It integrates world models, policy priors, and uncertainty regularization to ensure robust performance across both visual and proprioceptive tasks.
- Action reuse amortization and gradient optimization reduce computational overhead, enabling scalable and real-time inference in diverse control settings.
Dream-MPC is a model-based reinforcement learning (RL) framework that enables scalable, gradient-based model predictive control (MPC) in complex, high-dimensional continuous control settings by combining latent-space imagination, a learned policy prior, uncertainty regularization, and action-reuse amortization. Distinct from prior MPC approaches that rely on computationally intensive population-based (gradient-free) planners, Dream-MPC exploits efficient gradient ascent in the latent space of a learned differentiable world model, achieving competitive or superior performance with substantially reduced model calls and real-time inference overhead. The framework generalizes to visual and proprioceptive tasks, and extends to long-horizon planning via integration with recurrent world models and ensemble-based uncertainty calibration (Spieler et al., 6 May 2026, Du et al., 6 May 2026).
1. Latent World Modeling and Policy Priors
Dream-MPC relies on a learned, differentiable world model that compactly encodes environment states into a latent space, supports forward dynamics, and facilitates planning over imagined rollouts. The standard blueprint incorporates the following components:
- Encoder : Processes raw states into latent representations via a multi-layer perceptron (MLP), typically with 2–5 layers and 512-dimensional output.
- Latent Dynamics : Models forward progression in latent space as , commonly realized by a 3-layer MLP with 512 hidden units.
- Reward and Q-Value Predictors: MLPs for both reward prediction and value estimation , with implemented as an ensemble of heads—providing uncertainty estimates.
- Policy Prior : An MLP outputting a diagonal Gaussian over actions given latent input 0, serving two purposes: (i) warm-starting candidate trajectories for planning, and (ii) generating fresh action proposals.
Latent imagination is realized by rolling out candidate action sequences under the world model in latent space, predicting future latents, rewards, and Q-values: 1 (Spieler et al., 6 May 2026).
When extended to visual domains and long-horizon planning, Dream-MPC uses a Dreamer-style Recurrent State-Space Model (RSSM) that augments deterministic hidden states 2 with stochastic latents 3 to model aleatoric uncertainty, learned via variational objectives (Du et al., 6 May 2026).
2. Gradient-Based Planning and Amortization
Unlike traditional population-based planners (e.g., MPPI), Dream-MPC generates a small set of candidate action sequences via policy rollout, then optimizes them in the latent space using a few steps of gradient ascent with respect to a regularized trajectory return objective. For candidate 4, the planning objective is: 5 where 6 denotes an epistemic-uncertainty term (computed as the standard deviation across Q-value ensemble heads, modulated by their mean), and 7 (typically 8) trades off return and uncertainty (Spieler et al., 6 May 2026).
Each action sequence is updated for 9 gradient ascent steps with stepsize 0 (commonly 1): 2
To optimize further, Dream-MPC amortizes planning by reusing previously optimized action tails as initialization for the next MPC step: 3 This “action reuse” mechanism distributes computation across time and enables single-step (per-control step) optimization, retaining high sample efficiency (Spieler et al., 6 May 2026).
3. Integration with Uncertainty Regularization
Compounding model errors and epistemic uncertainty present a major challenge in latent-based planning. Dream-MPC incorporates epistemic-uncertainty regularization directly into the planning objective (4), using the ensemble variance of Q-values as a proxy. This regularization penalizes trajectories that pass through high-uncertainty states, effectively mitigating over-optimism during open-loop rollouts and improving reliability, particularly in high-dimensional and visual tasks (Spieler et al., 6 May 2026).
Ablation studies confirm that policy warm-start, uncertainty regularization, and action-reuse all contribute significantly to Dream-MPC’s empirical performance; omission of any component leads to degradation in task return and stability (Spieler et al., 6 May 2026).
4. Algorithmic Structure and Implementation
Dream-MPC’s online planning algorithm proceeds as follows for each time step:
- Initialization: Encode current state 5. Roll out 6 action sequences of length 7 from the policy prior 8.
- Amortization: Blend in previous optimized actions with policy proposals via action reuse.
- Optimization: For each candidate, perform one (or a few) gradient ascent steps to maximize 9.
- Execution: Deploy the first action of the candidate with maximal 0.
Typical hyperparameters are 1, 2, 3, 4, 5. The underlying world model is based on TD-MPC2, with 65M parameters, replay buffer of 7 samples, Q-ensemble of 8, and separate learning rates for model/encoder (Adam optimizer) (Spieler et al., 6 May 2026).
When integrated with visual models and long-horizon planning (e.g., in ELVIS), the approach leverages a Dreamer-style RSSM with a Gaussian-mixture MPPI planner and an ensemble-calibrated, time-varying 9-return, further enhancing sample efficiency and robustness (Du et al., 6 May 2026).
5. Empirical Evaluation
Dream-MPC was benchmarked on 24 continuous control environments, including:
- DeepMind Control Suite (with both proprioceptive and image-based tasks)
- Meta-World (manipulation)
- HumanoidBench (high-dimensional locomotion)
Baselines include state-of-the-art gradient-free MPC (TD-MPC2 with policy-guided MPPI), pure policy-only methods, Dreamer-v3, Soft Actor-Critic (SAC), and BMPC (policy imitation of MPPI).
Key empirical findings:
- Dream-MPC combined with BMPC achieved the best overall interquartile mean (IQM, ≈+26.7%) and mean return (≈+20.5%) over BMPC.
- Dream-MPC with TD-MPC2 improved TD-MPC2 policy performance by +144.7% (IQM) and +43.4% (mean), although it lagged MPPI in the highest-dimensional tasks.
- On visual DMControl environments, Dream-MPC+BMPC matched or exceeded MPPI performance on 5/6 benchmarks (Spieler et al., 6 May 2026).
Representative normalized returns (DMControl, state-only) are summarized below:
| Algorithm | Mean ± SD |
|---|---|
| TD-MPC2 (MPPI) | 657 ± 225 |
| TD-MPC2 (policy only) | 367 ± 247 |
| Dream-MPC (TD-MPC2) | 433 ± 259 |
| BMPC (MPPI) | 711 ± 181 |
| Dream-MPC (BMPC) | 725 ± 181 |
In long-horizon visual domains, Dream-MPC (as part of ELVIS) demonstrated improved sample efficiency and robustness, attaining expert-level performance with fewer environment frames, and successful zero-shot sim-to-real transfer on industrial visual manipulation tasks (Du et al., 6 May 2026).
6. Computational Efficiency and Scalability
Dream-MPC exhibits a dramatic reduction in model calls compared to gradient-free planners. For a typical configuration,
- MPPI model calls/step: 0
- Dream-MPC model calls/step: 1
Inference timings (Acrobot Swingup, RTX4090):
- TD-MPC2 (MPPI): 20.8 ms
- Dream-MPC (BMPC): 18.2 ms
- Grad-MPC (alternate implementation): 2195 ms
On high-dimensional tasks (e.g., HumanoidBench, state dim 151, action dim 61), Dream-MPC achieves real-time execution (350 ms/step), scaling gracefully with problem dimensionality (Spieler et al., 6 May 2026).
7. Limitations and Future Directions
Dream-MPC's efficacy depends on several factors:
- Hyperparameter Selection: Fixed planning horizon and optimization hyperparameters may not be optimal for all tasks; dynamic or adaptive settings are a suggested avenue.
- Policy Prior Quality: A strong policy prior is essential; poor priors can cause suboptimal performance or early convergence.
- Single-task Focus: Multi-task and lifelong learning extensions remain unexplored.
- Uncertainty Modeling: Further improvements could be made by adopting more sophisticated forms of uncertainty quantification, e.g., Bayesian ensembles.
Future research directions include adaptive planning and optimization parameters, integrated end-to-end training of world models and planners, extending to multi-task scenarios, and enhanced uncertainty calibration (Spieler et al., 6 May 2026).
Dream-MPC demonstrates that gradient-based planning in latent space, synergized with a robust policy prior, explicit uncertainty regularization, and action reuse, can match or exceed traditional sampling-based planners in sample and computational efficiency, with broad applicability to high-dimensional continuous control and visual RL settings (Spieler et al., 6 May 2026, Du et al., 6 May 2026).