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

Temporal Difference Learning for Model Predictive Control

Nicklas Hansen, Hao Su, Xiaolong Wang

Reinforcement Learning (RL) has long been divided into two main camps: model-free methods, which are robust but data-hungry, and model-based methods, which are sample-efficient but often struggle with complex, high-dimensional environments. In this paper, researchers introduce TD-MPC, a framework that effectively bridges this gap by combining the strengths of both approaches.

TL;DR

TD-MPC is a novel reinforcement learning framework that performs short-term trajectory optimization using a learned "task-oriented" latent dynamics model, while relying on a learned terminal value function for long-term estimates. By training both components jointly via temporal difference (TD) learning, it achieves state-of-the-art sample efficiency and performance on complex continuous control tasks, including high-dimensional locomotion and manipulation.

The Core Challenge: Efficiency vs. Performance

The central challenge in RL is balancing sample efficiency (how much data is needed) with asymptotic performance (how good the final policy is).

Model-based RL (MBRL) is theoretically more efficient because it learns a model of the world to "plan" ahead. However, learning a perfect model of a complex environment—like predicting every pixel in a video—is incredibly difficult. Small errors in the model compound over time, leading to poor plans. Conversely, model-free RL (MFRL) avoids these "compounding errors" by learning a value function directly from experience, but it requires millions of interactions to learn even simple tasks.

TD-MPC asks: Can we augment model-based planning with the strengths of model-free learning?

Methods: The TD-MPC Framework

The core of the paper is the TD-MPC framework, which uses a Task-Oriented Latent Dynamics (TOLD) model. Instead of trying to reconstruct the entire environment, TOLD only learns what is necessary to solve the task.

Key Components:

  1. Latent Representation: An encoder maps observations into a compact latent space.
  2. Task-Oriented Model: A purely deterministic model predicts future rewards, values, and next latent states. It ignores task-irrelevant details like background shading or complex physics that don't affect the reward.
  3. Joint TD-Learning: The model and the value function are learned jointly. The value function provides a "terminal" estimate at the end of a short planning horizon, effectively summarizing the infinite future.
  4. Latent Consistency: To keep the model grounded, the authors propose a "modality-agnostic" consistency loss. It ensures that the model's predicted future latent state matches the encoded version of the actual future observation.
Overview of the TD-MPC framework showing the learned model and planning process.

During inference, TD-MPC uses Model Predictive Path Integral (MPPI), a derivative-free optimizer, to sample and refine action sequences over a short horizon (e.g., 5 steps), using the value function to account for everything beyond that horizon.

Key Insights

  • World Modeling is Overrated: You don't need to predict pixels to plan. By focusing only on reward and value prediction, the TOLD model is much easier to learn and less prone to the compounding errors that plague traditional MBRL.
  • Consistency over Reconstruction: Forcing latent states to be temporally consistent is a powerful regularizer. It provides a rich learning signal without the massive computational overhead of pixel-level reconstruction.
  • Planning + Value = Robustness: Short-horizon planning provides local precision and adaptability, while the terminal value function (learned via TD-learning) provides the "long-term vision" needed to avoid myopic behavior.
  • Modality Agnostic: Because the model operates entirely in latent space, the same architecture works for both state-based and image-based inputs with minimal changes.

Key Results

The authors evaluated TD-MPC on a massive suite of 92 tasks, including DMControl (state-based and image-based), Meta-World manipulation tasks, and custom multi-modal 3D locomotion tasks. TD-MPC demonstrates remarkable performance across the board:

  • Locomotion Mastery: It is the first documented method to solve the complex Dog tasks in DMControl, achieving high returns in just 1 million environment steps—a feat that typically requires tens of millions for other methods.
  • Superior Efficiency: On standard DMControl tasks, it consistently outperforms state-of-the-art model-free (SAC) and hybrid (LOOP) methods in both speed of learning and final performance.
  • Competitive with Pixel-SOTA: Despite not being specifically tuned for images, TD-MPC matches or exceeds the performance of specialized pixel-based algorithms like DrQ-v2 and DreamerV2 on the DMControl 100k benchmark.
  • Multi-Task Success: A single TD-MPC agent can learn to perform 10 different Meta-World tasks simultaneously, showing strong generalization capabilities.
Performance comparison on the challenging Dog locomotion tasks, demonstrating TD-MPC's sample efficiency.

Limitations and Future Work

While powerful, TD-MPC has a few areas for improvement:

  • Exploration: The current method relies on simple Gaussian noise for exploration, which may struggle in environments with extremely sparse rewards.
  • Inference Compute: Planning at every step is computationally more expensive than simply querying a policy network, though the authors show the planning budget can be reduced at inference time with minimal performance loss.
  • Deterministic Model: The current TOLD model is purely deterministic. Incorporating stochasticity might help in environments with inherent randomness.

Overall, TD-MPC represents a significant step forward in making model-based planning practical and robust for the most challenging continuous control problems in robotics and AI.

Summary updated

BibTeX
@inproceedings{hansen2022temporal,
  author = {Nicklas Hansen and Hao Su and Xiaolong Wang},
  title = {{Temporal Difference Learning for Model Predictive Control}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=pG8gtqacCx},
}
Figure