6.5.6 · D1Research Frontiers & Practice

Foundations — World models and embodied AI

3,077 words14 min readBack to topic

Before you can read the parent note, you need to earn every symbol it throws at you. This page lists them in build-order: each one is defined in plain words, tied to a picture, and justified by the question it answers. Nothing is used before it is built.


0. The stage: an agent living in a loop

Everything here happens inside one repeating loop. Picture a creature (the agent) sitting inside a room (the environment). At each tick of a clock it sees something, does something, and feels a score.

Figure — World models and embodied AI

This loop is the skeleton the parent note hangs every equation on. If you see this picture in your head, the rest is just labels.


1. Time steps: the subscript

Read out loud as "the quantity one step after the current one." Read as " one step before." That's all a subscript ever does — it points at a moment on the clock. (We'll attach it to real symbols like and once they're defined below.)


2. The state and the observation

The letter stands for state, for observation. They are not the same:

The letter (capital) means the set of all possible states — the collection of every situation that could ever exist. Small is one specific member of that set at time .


3. The action and its set

The letter is for action. This is the only lever the agent controls. Everything the agent influences about its future, it influences through .


4. The reward — the score

The letter is for reward. The notation means " is a function that eats a state and an action and returns a number." (More on functions in §6.)

Figure — World models and embodied AI

5. Probability: , , and

The future is not certain. Push a stack of blocks and it might topple left, might topple right. We need a language for uncertainty.

Figure — World models and embodied AI

This distribution is the world's true physics. A world model is our learned copy of it (§10).


6. Functions, the arrow , and the letter

  • means "a pair: one state and one real number (the reward)". The glues two sets into pairs; is the set of all real numbers (any decimal).

7. The Markov property — "only now matters"

This "chaining one step at a time" is why the parent note's giant expectation is nested and recursive — each step only looks one tick back.


8. Adding up the future: , the return , and horizon

Figure — World models and embodied AI

9. Expectation , samples , and the "hat"


10. Parameters and the learning arrow


11. Building blocks it borrows (whole toolkits)

The parent note assembles three pre-built components. You don't need their internals yet — just what job each does.

Symbol / name Plain job Where to learn it
= VAE latent Squeeze a big image into a short code that keeps the meaning Variational-Autoencoders
= RNN hidden state A memory that carries the past forward through time Recurrent-Neural-Networks
, , MDP Learning to act by trial-and-error and reward Reinforcement-Learning-Basics

The prerequisite map

time index t

state s and observation o

action a

reward r

probability P and sampling

Markov property and MDP

sum and return J over horizon H

expectation E, K samples, hat approx

parameters theta and gradient

World Model M or p of next state and reward

VAE latent z

RNN hidden state h

policy pi and value Q and MDP

Planning and Dyna

Each box is a symbol you now own; the arrows show which idea must exist before the next can be spoken. The whole tree drains into one node — the world model, written either as the machine or as the distribution — which is the parent note's opening definition.


Equipment checklist

Cover the right side and answer aloud. If any one stumps you, re-read its section before opening the parent note.

What does the subscript in point at?
A specific moment on the clock — the state at tick .
What is the difference between and ?
is the full situation (the whole room); is only what the agent's sensors see (the keyhole sliver).
Read in plain English.
The probability of landing in the next state, given we're in the current state and take this action.
What does the bar mean, and what does it NOT mean?
It means "given / assuming"; it does NOT mean "and".
What does mean?
is drawn at random from distribution (like rolling a weighted die).
Why use a probability distribution instead of predicting one next state?
The future can branch; a single prediction collapses to a wrong average, a distribution keeps every branch with its weight.
What are the two equivalent ways to write a world model?
The machine view and the distribution view — same object.
State the Markov property in one sentence.
The next state depends only on the current state and action, not on the full history.
What does "MDP" bundle together?
The states , actions , reward , and the Markov one-step dynamics — the whole game in one object.
What is the return and why sum instead of judging each step?
is the total reward over the horizon ; summing lets a plan trade short-term pain for long-term gain.
What does count in estimation?
The number of random futures (trajectories) we sample and average to approximate the true expectation.
What does the hat in signal?
It is our learned estimate of the true (unknown) rule , tuned by parameters .
What does the gradient tell you?
The direction in knob-space that increases the return fastest — the "steepest way up".
What is a policy versus a value ?
is the strategy (which action to take in a state); is a price tag (expected total reward for a move).
Why compress an image into a latent before predicting?
Predicting a short code is tractable; predicting a million raw pixels is not — dream in the small clean space.
What single job does the RNN hidden state do?
Carries a running memory of the past so the model knows trends like velocity, not just one frozen frame.

You are now equipped to read the parent topic without hitting an undefined symbol.