Skip to content

Observation, State, and Belief

Look at a photograph of a ball in the middle of a table. You cannot tell whether it will move left or right next. Two very different trajectories can produce the same image. A single frame tells us where the ball is, but not its velocity, whether it just collided with something, or whether someone outside the frame is pushing it.

This example exposes the first modeling problem for a world model: the model receives observations, but it must infer a state sufficient for predicting the future.

After this page, you should be able to distinguish observations, environment states, and belief states, explain why memory is part of state estimation, and map the classical predict-correct cycle onto the RSSM prior and posterior.

The Same Observation Can Lead to Different Futures

Let st denote the complete environment state at time t. It may include object positions, velocities, masses, contact relations, and variables the agent cannot directly see. The agent receives an observation ot, such as an image or a set of sensor readings. An action at changes the environment state, which then produces another observation:

st+1penv(st+1st,at),otpobs(otst)

These two distributions describe how the world changes and how the world is seen. An observation can have more numerical dimensions than the state, as an image may contain thousands of pixels, while still omitting variables needed for prediction. High-dimensional does not mean complete.

VariableMeaningExample in a pixel-control task
stHidden environment statePosition, velocity, contact state
otObservation supplied by sensorsOne RGB frame
atAction applied by the agentPush left or right
htCompressed memory of historyRecent motion trend and collision clues

If earlier history no longer improves the prediction of st+1 once st and at are given, then st has the Markov property. Raw observations usually do not. Velocity remains unknown when only one image is available.

A Belief State Estimates the Hidden World

In a partially observable environment, the agent cannot access st directly. It instead maintains a belief state from its observation and action history:

bt(s)=p(st=so1:t,a1:t1)

bt is not a single certain answer. It is the model's probability judgment over possible current states. The same still image may come from a ball moving left or right. More history usually concentrates this distribution. When sensors are noisy or objects are occluded, retaining a distribution is more honest than retaining only a point estimate.

A belief state provides three immediate benefits:

  1. Recover hidden variables: infer velocity, direction, and contact from a sequence of observations.
  2. Carry uncertainty: distinguish "I know where it is" from "either of two positions is plausible."
  3. Support decisions: avoid costly actions in highly uncertain states or act to gather information.

Prediction and Correction

State estimation repeatedly performs two steps. First, the model uses the previous belief and action to predict the current state:

bt(st)=p(stst1,at1)bt1(st1)dst1

When a new observation arrives, the model corrects that prediction:

bt(st)p(otst)bt(st)

The prediction step asks where the system should now be according to its dynamics. The correction step asks which possible states remain credible after seeing new evidence. Kalman filters, particle filters, and modern recurrent state-space models differ in implementation, but they solve this shared problem.

From Belief States to the RSSM

An RSSM does not store the true environment state or evaluate the Bayesian integrals above exactly. It learns a neural approximation:

  • The deterministic hidden state ht summarizes past states, actions, and observations.
  • The prior p(ztht) predicts the latent state without seeing the current observation.
  • The posterior q(ztht,ot) corrects that prediction with the current observation.

When later pages say that the prior supports imagination and the posterior supports training, this should not look like an isolated neural-network trick. It is the predict-correct cycle implemented inside a deep world model.

Stacking the most recent K frames supplies more evidence, but it does not automatically produce a Markov state. Sufficiency still has to be tested: given this representation and the action, does earlier history significantly improve future prediction?

Consequences for P01 and P02

The VAE in P01 only guarantees that its latent variables help reconstruct the current observation. It does not guarantee that they contain velocity or form a state suitable for prediction. When inspecting P01, look beyond reconstructed images. Ask whether position, motion direction, and task-relevant variables can be read reliably from the latent representation.

The RSSM in P02 introduces time. It must use memory to recover information missing from a single frame and learn to continue predicting without new observations. P01 answers how to encode this frame. P02 begins to answer what hidden state the world is in and what happens next.

Closing the Loop on the Photograph

Every device introduced above, the belief distribution, the predict-correct cycle, the RSSM's prior and posterior, is a different answer to the question this page opened with: given only a still photograph of the ball, what is still missing, and how does a model recover it. The next two pages return to the same photograph to show where that missing information can be compressed away by an encoder, and where a dynamics model must reconstruct it from history alone.

Check Your Understanding

  1. Why can two identical pixel observations correspond to different environment states? Name one hidden variable.
  2. In an RSSM, what roles do ht, the prior, and the posterior play in the state-estimation cycle?
  3. Design a small test for whether P01's latent representation preserves object velocity rather than only position.