Learned dynamics and the decisions they support
A game character approaches a junction. An upward command turns it only after it reaches the opening. Published Atari predictions illustrate how a small position error changes that command’s consequence.
A dynamics model, also called a forward model, predicts environment changes over time. The decision rule chooses actions; the actual environment produces their consequences. These responsibilities remain distinct even when one system contains all three.
Prediction and execution have different outputs
Only interaction supplies a fresh environmental observation.
Read the diagram as text
- Observed history.
- Candidate actions.
- Learned predictor.
- Predicted consequences.
- Action selection.
- Actual environment.
- Fresh observation.
- Observed history → Learned predictor: data: history.
- Candidate actions → Learned predictor: data: alternatives.
- Learned predictor → Predicted consequences: data: predictions.
- Predicted consequences → Action selection: data: consequences.
- Action selection → Actual environment: control: selected action.
- Actual environment → Fresh observation: data: measured response.
Passive forecasting predicts evolution without choosing interventions. Planning additionally requires executable alternatives, an objective for comparing them, and predictions reliable enough for that comparison. Predicting several futures does not itself select an action.
Interactive generation demonstrates responsiveness, but responsiveness alone does not establish accurate dynamics. The narrated Genie demonstration generates frames in response to navigation; it supplies no physical-accuracy or planning evaluation. Creative scene generation has its own objectives, developed in Generative Media.
The environment need not be visual. Program execution exposes changing variables and source locations. Code World Model proposes predicting such execution traces, including imagined traces produced without running the program. Those predictions remain distinct from observed execution.
State, observations and information through time
Environment state contains sufficient information for prediction under the modeling assumptions. The Markov assumption makes earlier history unnecessary once that state is known. An observation is an available measurement, potentially revealing only part of the state.
Identical visible positions can hide opposite velocities and therefore different futures. History can reveal motion; it cannot necessarily reveal an object hidden throughout the observations. Visual occlusion is missing evidence, not evidence of absence.
One object, changing information
ExamplePrediction advances possibilities; measurement revises them.
Both hypotheses concern one obstacle.
Read the diagram as text
- Obstacle.
- Belief at t0. Either motion direction.
- Action a0.
- Prediction at t1. Possibilities propagated.
- Measurement o1.
- Updated belief at t1. Rightward motion favored.
- Obstacle → Belief at t0: represented by.
- Belief at t0 → Prediction at t1: propagates.
- Action a0 → Prediction at t1: conditions.
- Prediction at t1 → Updated belief at t1: revised.
- Measurement o1 → Updated belief at t1: likelihood evidence.
- Initial ambiguity. Both hypotheses concern one obstacle. Active: Obstacle, Belief at t0. New: Obstacle, Belief at t0.
- Predict. Advance possibilities using the action. Active: Obstacle, Belief at t0, Action a0, Prediction at t1. New: Action a0, Prediction at t1.
- Correct. Retain history; add observation-informed belief. Active: Obstacle, Belief at t0, Action a0, Prediction at t1, Measurement o1, Updated belief at t1. New: Measurement o1, Updated belief at t1.
A latent state is inferred internally. A belief state represents a distribution over possible states. Prediction propagates possibilities through action-conditioned dynamics; correction weights them by the fresh observation’s likelihood and normalizes. Zero total likelihood signals incompatible evidence. A recurrent summary is not automatically a calibrated belief.
| Contract element | Declared convention |
|---|---|
| Environment boundary | Character, walls and obstacle. Any additional actor requires explicit state or an external-input model. |
| Executable movement | One command per logical tick; immediate application; one cell per move; blocked moves stay put. |
| Observation and units | Observe after each transition. Position uses cells; velocity uses cells per tick. |
| Clock and disturbances | Ticks are logical intervals, not measured seconds. No external disturbances in this fixture. |
A deterministic transition gives one next state for specified state and inputs; a stochastic transition gives a distribution. Neither requires that the agent fully observe the current state. The prediction interval must also be explicit: changing the interval changes the transition being learned.
Representations that preserve useful dynamics
An encoder converts observations into features; a transition model advances predictive state, and a readout exposes selected quantities. A reward numerically scores an outcome. PlaNet combines deterministic temporal memory with stochastic latent variables, revised by observations. Its planner predicts latent states and rewards without rendering future images.
| Prediction target | Useful information and work | Failure risk |
|---|---|---|
| Pixels | Reconstruction supervises visible detail and requires image output. | Visual fidelity need not preserve the distinctions controlling reward. |
| Structured quantities | Execution frames can expose source locations and local variables directly. | The selected fields determine which consequences can be inspected. |
| Learned latent state | Transitions and task readouts avoid mandatory image reconstruction. | Task-relevant features may omit information needed by another objective. |
Inference, transition and readout
Latent planning need not render future images.
Read the diagram as text
- Current observation.
- Observation encoder.
- Current latent state. Memory and stochastic state.
- Proposed action.
- Latent transition.
- Predicted latent state.
- Reward readout.
- Optional image readout.
- Current observation → Observation encoder: encodes.
- Observation encoder → Current latent state: informs.
- Current latent state → Latent transition: initializes.
- Proposed action → Latent transition: conditions.
- Latent transition → Predicted latent state: predicts.
- Predicted latent state → Reward readout: task prediction.
- Predicted latent state → Optional image readout: observation prediction.
TD-MPC jointly trains latent consistency, reward and value predictions without reconstructing observations. A value estimates expected cumulative reward from a state under a given action-selection rule. These representation objectives shape task-oriented prediction, not universal state recovery.
Action-conditioned predictions and their evidence
Action conditioning makes a predicted transition depend on an executable input. Its contract specifies magnitude, duration and delay, not merely a name. Agent-action intervals can contain several internal physics steps; observation timing must match the interval being predicted.
A descriptive prompt can change an environment without specifying a movement command. Hadsell’s narrated Genie examples include prompts that alter an ongoing world. Such editing and navigation are different controls; their prediction targets and permissible effects need separate definitions.
Hidden information affects recorded behavior
ExampleRecorded action choice can reveal information missing from the predictor.
Read the diagram as text
- Hidden obstacle state.
- Recorded turn.
- Subsequent contact.
- Hidden obstacle state → Recorded turn: influences selection.
- Hidden obstacle state → Subsequent contact: influences outcome.
- Recorded turn → Subsequent contact: changes motion.
The behavior policy—the rule collecting experience—determines which state-action pairs appear in training. A new policy can choose individually familiar actions in an unfamiliar sequence, reach new states, and require unsupported transitions. This is distribution shift induced by action selection.
| Coverage | Interpretation |
|---|---|
| Recorded transition | Evidence for the action actually taken. |
| Supported alternative | Comparable state-action experience informs the prediction. |
| Unsupported sequence | Later predicted states may leave recorded coverage. |
Action inputs alone do not establish intervention effects. A demonstrator may see an obstacle hidden from the predictor; that obstacle influences both the chosen turn and later contact. This is confounding. Interpreting recorded behavior causally requires sufficiently specified actions, adequate adjustment for shared causes, and action support in relevant states. Prediction and causal effects develops those conditions.
Learning transitions from trajectories
A trajectory records observations, actions and outcomes in time order. System identification estimates dynamics from measured behavior. Training examples must align each action interval with its resulting target; fitting changes parameters, while inference applies them.
The predecessor changes the prediction task
ExampleRecursive prediction exposes earlier model errors.
Recorded frame 1 supplies supervision.
Read the diagram as text
- Recorded frame 0.
- Recorded frame 1.
- Recorded frame 2.
- Predicted frame 1.
- Frame 2 from recorded history.
- Frame 2 from predicted history.
- Recorded frame 0 → Predicted frame 1: predict with a0.
- Recorded frame 1 → Predicted frame 1: target.
- Recorded frame 1 → Frame 2 from recorded history: predict with a1.
- Recorded frame 2 → Frame 2 from recorded history: target.
- Predicted frame 1 → Frame 2 from predicted history: predict with a1.
- Recorded frame 2 → Frame 2 from predicted history: target.
- First prediction. Recorded frame 1 supplies supervision. Active: Recorded frame 0, Recorded frame 1, Predicted frame 1. New: Recorded frame 0, Recorded frame 1, Predicted frame 1.
- Recorded predecessor. Refresh history before predicting frame 2. Active: Recorded frame 0, Recorded frame 1, Recorded frame 2, Predicted frame 1, Frame 2 from recorded history. New: Recorded frame 2, Frame 2 from recorded history.
- Predicted predecessor. Feed the first prediction forward instead. Active: Recorded frame 0, Recorded frame 1, Recorded frame 2, Predicted frame 1, Frame 2 from recorded history, Frame 2 from predicted history. New: Frame 2 from predicted history.
Here, recorded transitions pair state and action with next state ; denotes learned parameters. Minimizing negative log likelihood rewards assigning probability to recorded outcomes. This observed-state objective does not assume hidden states are directly labeled.
Teacher forcing supplies recorded predecessors rather than generated ones. The distinction matters because later predictions then avoid earlier model errors. Sequence supervision uses the same principle: the supplied history determines which conditional prediction is trained.
Multi-step objectives also penalize recursively predicted futures. PlaNet’s latent overshooting matches multi-step predictive distributions to observation-informed latent targets without repeatedly decoding images. It is an additional objective, not a requirement of the paper’s final recurrent agent.
Latent agreement alone permits representation collapse: every input maps to the same vector, so agreement is perfect but information disappears. A concrete countermeasure in VICReg penalizes embedding dimensions whose batch variation falls below a threshold. This illustrates objective design; it is not a required component of the world models described here.
Predicted rollouts and action selection
A rollout recursively advances predicted state to construct a possible trajectory. It begins from observed history, then receives no fresh real observations. Actions may be fixed beforehand or chosen by a policy—a rule selecting actions from available simulated information. Stop at the chosen horizon or a modeled episode ending.
Select a plan, execute its first action
ExamplePredicted horizon exceeds immediate commitment.
Read the diagram as text
- Inferred starting state.
- Candidate rollouts.
- Costs and constraints.
- Reject candidate.
- Execute first action.
- Fresh observation.
- Next planning problem.
- Inferred starting state → Candidate rollouts: data: initial state.
- Candidate rollouts → Costs and constraints: data: predicted outcomes.
- Costs and constraints → Reject candidate: constraint violated.
- Costs and constraints → Execute first action: control: lowest feasible cost.
- Execute first action → Fresh observation: data: actual response.
- Fresh observation → Next planning problem: data: revised state.
The planner minimizes predicted cost over an action sequence of length . Predicted state results from earlier actions; is step cost. Terminal cost estimates consequences beyond the explicit horizon. Constraints separately reject forbidden sequences; a finite penalty merely discourages them.
Assume exact predictions in the grid fixture. Legal cells are (1,0), (2,0), (3,0), (2,1) and (2,2). Start at (2,0); the goal is (2,2). Each move costs one. Terminal cost is remaining horizontal plus vertical distance. The planner rejects candidates attempting blocked moves, although the environment leaves the character in place.
| Two-action candidate | Predicted endpoint | Cost or rejection |
|---|---|---|
| Up, up | (2,2) | 1 + 1 + 0 = 2 |
| Right, left | (2,0) | 1 + 1 + 2 = 4 |
| Left, up | Attempts a blocked move; would remain at (1,0) | Rejected by planner constraint |
Model predictive control executes only the first selected action, then replans from fresh state measurements or estimates. Model error can undermine safety and continuing feasibility.
More candidates, longer horizons and more sampled futures require more transition evaluations. They can improve search or represent uncertainty, but consume decision time. The useful setting depends on what consequences must be anticipated before the next action.
Imagined experience for learning and simulation
Dyna updates action values: estimates of cumulative reward expected after taking an action and then following a policy. Higher values favor selection. Real transitions update these estimates and fit a model; generated transitions supply additional updates. Here, planning includes learning from simulated experience rather than only decision-time search.
Behavior learning in imagination trains a policy using predicted transitions, rewards and values. Original Dreamer separates this process from dynamics learning and actual interaction. Its deployed action model chooses actions without online trajectory search, while still inheriting errors from the model that trained it.
Two sources of learning experience
A model can change behavior through training.
Read the diagram as text
- Real transitions.
- Fitted model.
- Simulated transitions.
- Action-value updates.
- Learned action choices.
- Reference environment.
- Real transitions → Fitted model: data: fit dynamics.
- Real transitions → Action-value updates: data: direct experience.
- Fitted model → Simulated transitions: data: generated experience.
- Simulated transitions → Action-value updates: data: additional updates.
- Action-value updates → Learned action choices: informs selection.
- Learned action choices → Reference environment: control: actual actions.
Imagined experience need not span a complete episode. MBPO initializes many short model rollouts from recorded real states, limiting recursive exposure while using the generated transitions for policy learning.
An environment interface needs initialization, action responses, observations and episode-ending semantics. Reset supplies initial conditions; task termination and a chosen rollout cutoff have different meanings.
Simulator-based training must also preserve relevant failures. Mishra describes digital environments with slow loads, stale tabs and persistent errors, where recovery is an action rather than a silent reset. A convenient reset can otherwise remove the behavior the system needs to learn.
Generated pixels do not automatically provide exportable assets or a complete training interface. The Genie Q&A explicitly separates its image output from game meshes. Robotics develops embodiment and transfer; Synthetic Data develops verification of generated supervision.
Uncertainty across states and futures
| Source | Meaning | Potentially useful evidence |
|---|---|---|
| Hidden current state | Several states explain available measurements. | An informative observation can distinguish them; an uninformative one cannot. |
| Aleatoric uncertainty | Outcome noise conditional on available inputs. | More examples need not eliminate this variation. |
| Epistemic uncertainty | Insufficient knowledge of the learned dynamics. | Relevant additional data can reduce model uncertainty. |
A model ensemble contains separately fitted predictors. PETS combines within-model transition variance with between-model disagreement, then propagates sampled transitions through trajectories. These approximate uncertainty representations do not supply certified error bounds or make agreement proof of correctness.
A mean path need not be feasible
ExampleBoth represented futures avoid the obstacle; their pointwise mean crosses it.
Aligned trajectory samples
Endpoints and sample times are fixed; route choice differs.
Scroll sideways if the figure extends beyond the screen.
- 1. Obstacle
- 2. Upper route
- 3. Lower route
- 4. Pointwise mean
Read coordinates and regions as data
X: -0.5–4.5 cells; Y: -1.5–1.5 cells, increasing up. Equal scale on both axes.
(1.5, -0.5); (2.5, -0.5); (2.5, 0.5); (1.5, 0.5)
(0, 0); (1, 1); (2, 1); (3, 1); (4, 0)
(0, 0); (1, -1); (2, -1); (3, -1); (4, 0)
(0, 0); (1, 0); (2, 0); (3, 0); (4, 0)
A sampled trajectory is one coherent future, not the entire forecast distribution. Its coordinates across time belong together; selecting unrelated positions independently can erase that temporal relationship.
Calibration compares predicted event probabilities with observed frequencies. For a world model, specify the event and horizon: contact within one tick and contact within ten ticks are different targets. Aggregate agreement can hide poor probabilities in the conditions where actions are consequential.
Compounding error and bounded model use
Compounding error means earlier prediction errors change later prediction inputs. At the Atari junction, a small displacement changes whether an upward command turns the character. No universal error-growth rate follows.
Planner exploitation is selective: optimization favors actions that benefit from model errors. In the reported learned Doom environment, a controller found movements that prevented simulated monsters from firing, an exploit unavailable in the original game. Ordinary forecast drift need not involve such optimized selection.
| Failure | Bounded response | Remaining cost or risk |
|---|---|---|
| Recursive drift | Short rollouts from real states | Delayed consequences remain relevant. |
| Uncertain current state | Acquire an informative observation before commitment | Late or uninformative sensing cannot repair the choice. |
| Consequences beyond the horizon | Add terminal value estimates | Estimated value does not certify future constraints. |
| Unsupported actions | Restrict search or penalize uncertainty | Useful unfamiliar actions may be rejected. |
Pessimistic scoring reduces predicted reward where dynamics are uncertain. MOPO’s theoretical bound requires an estimator that bounds model error; its practical variance-based estimator is explicitly heuristic. An uncertainty penalty is not a safety certificate.
Imagined rollouts supply no fresh observations; replanning cannot undo executed irreversible actions.
Prediction tests across horizons and conditions
Validation must identify which information reaches the predictor. Tests refreshed with measurements and tests initialized once answer different questions. Both should use measurements excluded from fitting and horizons relevant to the intended application.
| Test | Supplied information | Claim supported |
|---|---|---|
| One-step, refreshed history | Recorded predecessors and the executed action | Prediction with continuing measured context |
| Free-running rollout | Initial history and recorded action sequence; predictions feed later steps | Recursive forecast quality over the specified horizon |
| Condition slices | Explicit initial states, task variants and repeated rollouts | Variation across the tested conditions |
Record both prediction-step count and elapsed units. For claims about new sessions, group related captures before splitting; adjacent frames can otherwise appear on both sides. This applies independent assessment and visual capture boundaries, rather than assuming every file is an independent case.
Measure consequential events alongside appearance. Physion asks whether marked objects will contact, allowing comparison across pixel, object and physical-state predictors without requiring identical rendered outputs. Its passive scenes test physical prediction, not responses to alternative executable actions or improved planning.
For stochastic forecasts, one case supplies one realized trajectory. Best-sample error can improve merely by offering more samples. A proper scoring rule instead rewards the true distribution in expectation. The proposed trajectory energy score combines distances to the observation with distances among forecast samples, assessing the forecast distribution rather than its luckiest member.
Consequential differences between actions
Action sensitivity concerns whether different commands produce appropriate differences. Action ranking concerns whether those predictions preserve the preferred choice. A proposed evaluation protocol compares separately executed alternatives from matched histories; close returns and scarce trials make rankings uncertain.
A resettable junction fixture can restore the same starting state and observation history before each action. Declare obstacle configuration and disturbance rules, execute each branch, and record contact or progress. For stochastic transitions, repeat the branches. Restoring similar screenshots is insufficient if hidden state differs.
Each alternative needs its own evidence
ExampleMatched starts support separately evaluated branches.
Read the diagram as text
- Matched starting fixture.
- Up action.
- Right action.
- Predicted up outcome.
- Executed up outcome.
- Predicted right outcome.
- Executed right outcome.
- Compare consequences.
- Matched starting fixture → Up action: condition: choose up.
- Matched starting fixture → Right action: condition: choose right.
- Up action → Predicted up outcome: prediction.
- Up action → Executed up outcome: execution.
- Right action → Predicted right outcome: prediction.
- Right action → Executed right outcome: execution.
- Predicted up outcome → Compare consequences: forecast.
- Executed up outcome → Compare consequences: measurement.
- Predicted right outcome → Compare consequences: forecast.
- Executed right outcome → Compare consequences: measurement.
After an action changes, recompute downstream states and observations. Feeding the old observation sequence to a changed policy does not simulate its consequences. Holding the same realization of external randomness fixed makes a stronger counterfactual comparison than merely repeating an intervention under similar conditions.
The useful comparison concerns consequential differences, including delayed effects and near-ties. Controlled comparisons require separately initialized executions: matched starting conditions do not require identical resulting trajectories.
Downstream usefulness and operating limits
Forecast quality, action ranking and system usefulness are separate claims. Evaluating an optimized policy only inside its training model can reward the same errors it learned to exploit. Test behavior in the target environment or an independently justified reference environment.
| Intended use | Comparison | Necessary outcome evidence |
|---|---|---|
| Decision-time planning | Reactive policy, existing planner or simpler dynamics | Task outcomes and constraints under matched data, compute and interaction budgets |
| Imagined policy learning | Learning without generated transitions | Performance in the reference environment, with update counts made comparable |
| Simulator-based testing | Independent checks of actions and effects | Detection of the intended failures, including persistent side effects and ambiguous completion |
Sample efficiency relates achieved task performance to actual environment interactions. Report other resources separately. MBPO’s equal-update comparison helps distinguish benefits of generated transitions from benefits of simply performing more optimization.
Deployment logs can reveal failures absent from constructed cases. Categorizing them by scenario and failure type makes revision more informative than chasing an aggregate score. The resulting operating claim should name tested actions, conditions, horizons and the purpose the predictions serve.
System usefulness includes unresolved outcomes and consequential failures, not only completed runs. Audit the action trail and effects; a fluent account of success does not establish an acceptable result.
Open questions
Transferable predictive state remains unresolved: task-oriented representations may discard information a new objective needs. Progress would preserve consequential action rankings after an objective change without requiring complete retraining or universal image reconstruction.
Reliability under stronger optimization remains difficult because search can discover favorable model errors absent from ordinary forecast tests. Progress would maintain reference-environment performance as the planner explores more alternatives, rather than merely increasing imagined return.
Efficient intervention coverage remains difficult when hidden conditions influence recorded actions and some alternatives are rarely attempted. Progress would identify which additional controlled trials establish useful action comparisons without treating unsupported extrapolation as causal evidence.
Long-horizon distribution assessment remains difficult because each case reveals only one future and best-sample metrics reward extra samples. Progress would improve distribution-sensitive scores across held-out conditions while also preserving consequential event predictions.





