What TD-MPC2 is
A world model is a network that predicts how an environment responds to actions, so that an agent can try actions in its head before taking them. TD-MPC2 learns one in a compact latent space with no decoder: it never reconstructs an observation, it only predicts the next latent state, the reward and the long-term value, and it chooses every action by planning with that model.
The checkpoint on this page is the released 5 M-parameter TD-MPC2 agent for walker-run from the DeepMind Control suite. It reads 24 state numbers (joint angles as cos/sin pairs, the torso's height and velocities) and outputs 6 joint torques. In the recorded episode, played in evaluation mode, it scores 895.1 over 500 steps.
Encoder and SimNorm
The encoder maps the 24 numbers through a layer of 256 units with the Mish activation to 512 numbers, then applies SimNorm: it splits them into 64 groups of 8 and puts each group through a softmax,
so every group is a point on a simplex, its eight entries positive and summing to 1. The latent stays bounded, which keeps the dynamics stable when they are rolled forward, and the softmax nudges each group towards a few large entries; the idea comes from Lavoie et al.'s simplicial embeddings. The What it observes panel shows the 24 inputs and the 64 simplices as columns. The frame beside them is rendered by the simulator for the reader only: nothing in the model can draw one.
Latent dynamics
The dynamics network predicts the next latent from the current latent and action, and is trained to agree with the encoder about what really happened next. During training the model is rolled forward a few steps from one encoded state, and the loss compares each prediction with the encoding of the real next observation, held fixed by a stop-gradient and weighted by for :
Because the latent only has to predict itself, the reward and the value, it can ignore whatever in the observation does not matter for control. The Latent dynamics panel draws every step's latent on the episode's two principal axes and, from a chosen step, rolls the dynamics 8 steps through the actions really taken, next to the latents the encoder formed from what really happened. On this episode the one-step predictions agree with the encoder's latents to a cosine of 0.9993; the Error by horizon chart shows the error growing as the open-loop rollout runs on.
Reward and value heads
Two kinds of head read a latent and an action. The reward head predicts that step's reward; an ensemble of 5 Q heads predicts the discounted return of taking in and acting well afterwards. Rewards and returns range from tiny to large, so each head outputs a distribution over 101 bins spread evenly in symlog space, , from −10 to 10, and is trained with cross-entropy against a two-hot target: the true value split between its two nearest bins, as in DreamerV3.
The Q heads learn by temporal-difference bootstrapping. The target for is the reward plus the discounted value of the next latent,
where is the smaller of two heads of a slowly updated copy, picked at random from the five, a trick from REDQ that keeps the estimate from drifting upwards. Planning averages two random heads instead; the Heads panel shows the reward distribution at the executed action, the five Q distributions and the values used.
Policy prior
A policy network outputs a Gaussian over actions, squashed into . It is trained to choose actions the Q heads rate highly while keeping some randomness (an entropy bonus). Its job is to give the planner good guesses: in every planning iteration 24 of the 512 candidate sequences come from rolling the policy through the model. The Policy prior vs plan panel compares, joint by joint, the policy's mean and spread with the planner's final mean and the action executed.
Planning with MPPI
At every environment step TD-MPC2 plans the next 3 actions afresh with MPPI (model predictive path integral control), a sampling planner. Each of 6 iterations scores 512 action sequences, the 24 from the policy and 488 drawn from a Gaussian for every step and joint. A sequence's estimated return adds the predicted rewards and closes with the value of where it ends:
The 64 best sequences, the elites, refit and , each weighted by with , and is kept between 0.05 and 2. Every step starts from ; starts at 0 on the first step and afterwards from the previous plan, shifted by one step. After the last iteration one elite is drawn by its weight and only its first action is executed. The next step plans again from the new state, which is what makes this model predictive control. The Planning (MPPI) panel replays the iterations at steps 0, 1, 60, 200 and 380, where the recording stored every candidate.
Where it came from
Ha and Schmidhuber's World Models (2018) trained an agent inside a learned model that reconstructed its observations, and Dreamer and IRIS (a later tab) also learn by predicting what they see. TD-MPC (2022) dropped reconstruction: its latent is trained only to predict rewards, values and its own next state, actions come from planning in it, and temporal-difference learning supplies the value beyond the short horizon. TD-MPC2 kept the recipe and changed the parts that limited scale, among them SimNorm, discrete regression of rewards and values, the Q ensemble and the policy prior; its authors report one set of hyperparameters across 104 control tasks and a single 317 M-parameter agent for 80 tasks. V-JEPA 2, the next tab, also predicts in latent space, but learns its latent from video, with no reward at all.
Papers
- TD-MPC2: Scalable, Robust World Models for Continuous Control The model this tab records: SimNorm latents, discrete reward and value heads, a Q ensemble and MPPI planning with a policy prior.
- Temporal Difference Learning for Model Predictive Control TD-MPC: planning in a decoder-free latent model, with a learned value beyond the planning horizon.
- Information theoretic MPC for model-based reinforcement learning MPPI with a learned dynamics model: sampled action sequences averaged by exponentiated return.
- Mastering Diverse Domains through World Models DreamerV3, the source of symlog targets and two-hot regression that TD-MPC2's heads use.
- Simplicial Embeddings in Self-Supervised Learning and Downstream Classification Softmax over groups of a representation, the idea behind SimNorm.
- Randomized Ensembled Double Q-Learning: Learning Fast Without a Model A Q ensemble whose targets take the minimum over a random subset, as TD-MPC2's do.
- DeepMind Control Suite The benchmark the walker-run task comes from.
- World Models An agent trained inside a learned model of its environment, with a VAE and a recurrent predictor.