All lessons in World Models: Learn, Generate, Plan, and Evaluate

Compute Returns in Imagination

Build continuation-aware targets and explain how model error enters policy learning.

45 minutes · Members lesson · preview

What you will learn

  • Compute continuation-aware lambda-return targets backward through a trajectory.
  • Explain how bootstrapping and model error affect imagined targets.
  • Extend the programme artifact with executable terminal and continuing cases.

A model predicts a sequence of states and rewards. To improve a policy, you need a target that combines those rewards with an estimate of what happens beyond the finite rollout. That target is already a mixture of learned quantities, so its meaning deserves a careful calculation.

This is the Improve phase of the Latent Imagination programme. Add the outputs and derivation below to the report begun in the Model phase. The workbook computes targets; it does not train a neural actor or critic.

Choose another lesson