Papers
Topics
Authors
Recent
Search
2000 character limit reached

TD-MPC Agent: Data-Efficient Model-Based RL

Updated 3 February 2026
  • TD-MPC Agent is a model-based reinforcement learning method that leverages an implicit latent-space world model to integrate MPC planning with temporal difference value learning.
  • It employs a decoder-free architecture with stochastic dynamics, reward prediction, and policy priors to mitigate policy mismatch and out-of-distribution estimation errors.
  • TD-MPC algorithms have demonstrated scalability and improved sample efficiency in complex continuous control tasks across simulated and robotic high-dimensional environments.

TD-MPC Agent refers to a class of model-based reinforcement learning (MBRL) algorithms that integrate online trajectory optimization—model-predictive control (MPC)—in the latent space of a learned world model, with temporal difference (TD) value learning to produce highly data-efficient agents for continuous control. The TD-MPC framework and its modern descendants, such as TD-MPC2 and TD-M(PC)2^2, operate by iteratively updating both a stochastic world model and a value-predictive policy in a learned embedding space, enabling fast planning and improved robustness to high-dimensional dynamics. Recent work emphasizes the importance of controlling policy mismatch and out-of-distribution errors in the value estimation process, introducing explicit policy constraints to regularize actor updates. TD-MPC algorithms have been empirically validated to scale to tens of millions of parameters and excel at both single-task and multi-task continuous-control domains, including high-DoF simulated or robotic environments (Hansen et al., 2023, Lin et al., 5 Feb 2025).

1. Architectural Foundations

At the core of TD-MPC is an implicit, decoder-free world model trained entirely in a learned latent space. This model consists of:

  • State encoder heh_e: maps observed state sts_t to latent vector zt=he(st)Rnz_t = h_e(s_t) \in \mathbb{R}^n.
  • Latent dynamics dψd_\psi: predicts zt+1=dψ(zt,at)z_{t+1} = d_\psi(z_t, a_t) for action ata_t.
  • Reward model RθR_\theta: outputs predicted reward Rθ(zt,at)R_\theta(z_t, a_t).
  • Action-value ensemble QϕQ_\phi: approximates heh_e0, typically as an ensemble of heh_e1 categorical critics.
  • Policy-prior network heh_e2: diagonal Gaussian heh_e3 used in value bootstrapping and as a proposal in MPC planning.

The architecture relies on Simplicial Normalization (SimNorm) in latent layers to control norm explosion, LayerNorm+Mish activations for stability, and a shared latent space for state, transition, and reward/value functions (Hansen et al., 2023, Lin et al., 5 Feb 2025).

2. Model-Predictive Planning in Latent Space

At each environment interaction step, the agent solves a short-horizon trajectory optimization (typically heh_e4) entirely in latent space to select the next action: heh_e5 subject to heh_e6, heh_e7. This is achieved using a sample-based optimizer such as Model Predictive Path Integral (MPPI) or Cross-Entropy Method (CEM), where candidate action sequences are proposed (with a subset drawn from heh_e8), unrolled in the latent world model, and weighted by their return. Elite sequences are used to update the trajectory distribution, and the first action of the best plan is executed (Hansen et al., 2023, Lin et al., 5 Feb 2025).

Bootstrapping the terminal value with heh_e9 ensures planning incorporates expected future value beyond the planning horizon.

3. Temporal Difference Value Learning

TD-MPC algorithms train their critic ensembles via TD bootstrapping using both real and model rollouts: sts_t0 The supervised loss for sts_t1 adopts categorical or quantile target regression—formulated as cross-entropy between predicted and bootstrapped target distributions. Critic targets are computed via ensemble averaging, often with the "min of two" trick to mitigate overestimation.

The world model optimizes a summed reconstruction (prediction) loss, reward loss, and value loss weighted by coefficients sts_t2, respectively (Hansen et al., 2023, Lin et al., 5 Feb 2025). Model and value losses are aggregated over sts_t3-step rollouts drawn from the replay buffer.

4. Policy Mismatch and KL-Regularized Actor Updates

A principal challenge in TD-MPC is policy mismatch: the planner (sts_t4) generating buffer experience may systematically differ from the policy prior (sts_t5) used in value learning. As a consequence, value targets are often evaluated on out-of-distribution (OOD) state-action pairs, leading to persistent value overestimation and error accumulation. Theoretical analysis shows the performance gap sts_t6 grows with both model errors and planner–prior divergence, unless sufficiently corrected (Lin et al., 5 Feb 2025).

TD-M(PC)sts_t7 introduces KL-divergence regularization between the learned policy sts_t8 and the buffer’s mixture of planner policies sts_t9, enforcing

zt=he(st)Rnz_t = h_e(s_t) \in \mathbb{R}^n0

within policy improvement. The actor loss becomes

zt=he(st)Rnz_t = h_e(s_t) \in \mathbb{R}^n1

where zt=he(st)Rnz_t = h_e(s_t) \in \mathbb{R}^n2 controls entropy regularization and zt=he(st)Rnz_t = h_e(s_t) \in \mathbb{R}^n3 the KL penalty. This suppresses OOD action queries, stabilizing value learning, and can be introduced smoothly via curriculum on zt=he(st)Rnz_t = h_e(s_t) \in \mathbb{R}^n4 (Lin et al., 5 Feb 2025).

5. Training Protocol and Hyperparameterization

TD-M(PC)zt=he(st)Rnz_t = h_e(s_t) \in \mathbb{R}^n5 is trained by alternating model/policy updates and online environment interaction:

  • Data collection: At each step, encode observation, compute action via MPC planning (using zt=he(st)Rnz_t = h_e(s_t) \in \mathbb{R}^n6 as initialization), step in environment, store transition and planner action distribution in buffer.
  • Model/value updates: Every zt=he(st)Rnz_t = h_e(s_t) \in \mathbb{R}^n7 steps, sample zt=he(st)Rnz_t = h_e(s_t) \in \mathbb{R}^n8-step batch, compute bootstrapped targets, minimize zt=he(st)Rnz_t = h_e(s_t) \in \mathbb{R}^n9 over dynamics, reward, critic heads, and update target critics via Polyak averaging.
  • Policy update: Minimize dψd_\psi0 including both entropy and KL penalty. Adam optimizer with learning rate dψd_\psi1, batch size dψd_\psi2, gradient norm clip dψd_\psi3.

Canonical hyperparameters include: dψd_\psi4, MPPI iterations dψd_\psi5, dψd_\psi6 samples (dψd_\psi7 elites), replay buffer dψd_\psi8, ensemble dψd_\psi9 with zt+1=dψ(zt,at)z_{t+1} = d_\psi(z_t, a_t)0-bin categorical critics on zt+1=dψ(zt,at)z_{t+1} = d_\psi(z_t, a_t)1, zt+1=dψ(zt,at)z_{t+1} = d_\psi(z_t, a_t)2, zt+1=dψ(zt,at)z_{t+1} = d_\psi(z_t, a_t)3 ramped in as value quality improves (Lin et al., 5 Feb 2025). Architecturally, the encoder is a zt+1=dψ(zt,at)z_{t+1} = d_\psi(z_t, a_t)4-unit MLP, and policy/value heads use zt+1=dψ(zt,at)z_{t+1} = d_\psi(z_t, a_t)5-unit Mish + LayerNorm networks.

6. Empirical Performance and Comparative Analysis

TD-M(PC)zt+1=dψ(zt,at)z_{t+1} = d_\psi(z_t, a_t)6 demonstrates significant improvement over baseline TD-MPC2 and related methods across high-degree-of-freedom tasks, such as 61-DoF simulated humanoid control. The addition of the KL constraint term in actor updates eliminates persistent value overestimation, particularly in areas of state space only visited by the planner. Empirically, performance gains appear most pronounced in scenarios where extrapolation errors otherwise dominate, highlighting the benefit of explicit OOD penalty in actor optimization (Lin et al., 5 Feb 2025).

When extended further (e.g., TD-GRPC (Nguyen et al., 19 May 2025)), group-based policy constraints and trust-region KL penalties can enhance stability and performance in highly unstable or distribution-shift-prone settings, such as humanoid locomotion.

The TD-MPC family has evolved through:

A plausible implication is that the KL-regularized actor update introduced in TD-M(PC)zt+1=dψ(zt,at)z_{t+1} = d_\psi(z_t, a_t)8 is now regarded as a required component to achieve consistent value estimation and sample efficiency in off-policy, model-based MPC agents operating at scale. This regularization aligns the policy learning distribution with the data-collection policy, bounding extrapolation errors, and providing improved learning stability and asymptotic performance.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to TD-MPC Agent.