Markov and Partially Observable Decision Processes › Partially Observable Decision Processes

Michael BrenndoerferJune 7, 20267 min read
World Models HandbookAll chapters
Part 2 of 12Inference, Decisions, and Control
Chapter 7Markov and Partially Observable Decision Processes › Partially Observable Decision Processes
Reading section 7 of 14 · Partially Observable Decision Processes · 7 minSection 7 of 14 · 7 min

Book contents

Section 7 of 14 · 7 min read

Markov and Partially Observable Decision Processes › Partially Observable Decision ProcessesOne section · Sections in this chapter7 / 14 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

This section formalizes decision making under incomplete observation. The central result is elegant: if the agent summarizes its history into a belief distribution over states, it recovers an MDP, albeit one with a continuous and high-dimensional state space.

Definition: Partially Observable MDP

A POMDP extends an MDP with two ingredients:

  • Ω\Omega: a set of observations,
  • O(o′∣s′,a)O(o' \mid s', a): the emission model, the probability of observing o′o' after taking action aa and landing in state s′s'.

The agent never sees sts_t. It sees only the observation sequence, and its decisions may depend on the entire history ht=(o0,a0,o1,…,ot)h_t = (o_0, a_0, o_1, \ldots, o_t).

Two structural notes help in reading the definition. First, the emission model conditions on the action aa as well as the new state s′s', which captures the fact that sensors are often directional or action-dependent: looking left reveals the left corridor regardless of where the wall actually is. Second, the underlying MDP mechanics are still present and still Markov; partial observability changes what the agent knows, not how the environment evolves. The distinction between epistemic limitation and physical randomness, blurred in everyday speech, is drawn sharply here: slips live in PP, ignorance lives in OO.

The POMDP is the honest formalism for embodied agents. Cameras do not report object velocities, tactile sensors do not report friction coefficients, and a single image does not reveal what is behind the sofa. Any world model deployed on real sensor data is implicitly a POMDP model, whether or not its builders use the term.

Histories and Belief States

With full observability, the optimal policy was a function of the current state. With partial observability, the optimal policy is a function of the entire history, because different histories consistent with the same latest observation can warrant different actions. Two agents standing in front of the same door should turn the handle only if their arrival routes imply the room behind it is unlocked; the latest observation alone cannot say. Histories grow without bound, so we need a compressed summary that preserves everything decision-relevant.

The right summary is the belief state: the posterior distribution over the true state given the history,

bt(s)=P(st=s∣ht).b_t(s) = P(s_t = s \mid h_t).

After taking action ata_t and receiving observation ot+1o_{t+1}, Bayes rule updates the belief:

bt+1(s′)=η  O(ot+1∣s′,at)∑sP(s′∣s,at) bt(s),b_{t+1}(s') = \eta\; O(o_{t+1} \mid s', a_t) \sum_{s} P(s' \mid s, a_t)\, b_t(s),

where η\eta normalizes the distribution. Read the update as a dialogue between prediction and correction: the inner sum predicts where the state might have moved under the action, smearing each unit of belief across successors according to the transition kernel, and the emission factor corrects that prediction in light of what was actually observed, amplifying candidates consistent with the sensor reading and suppressing those inconsistent with it.

A tiny numeric example makes the predictor-corrector dialogue visible. Suppose the robot can be in three corridor cells, L, C, or R, and hears a beep that only the right-hand cell emits reliably.

In[7]:
Code
cells = ["L", "C", "R"]
b0 = np.array([1 / 3, 1 / 3, 1 / 3])  # initial belief: uniform

## Transition: a symmetric inward drift under the chosen action.
P_walk = np.array([[0.6, 0.4, 0.0], [0.2, 0.6, 0.2], [0.0, 0.4, 0.6]])

## Emission P(beep | cell): mostly R, faintly C.
p_beep = np.array([0.05, 0.20, 0.90])

b_pred = P_walk.T @ b0  # prediction: smear forward
eta = p_beep @ b_pred  # normalizer

b_post = p_beep * b_pred / eta  # correction: reweight by evidence
Out[8]:
Visualization
Grouped bar chart: the uniform prior predicts to 0.27, 0.47, 0.27 over L, C, R, then a beep updates the belief to about 0.04, 0.27, 0.69.
Belief over three corridor cells before the action, after predicting through the transition kernel, and after correcting with the observed beep. Prediction moves mass symmetrically toward cell C; correction then raises cell R to about 0.69 while leaving about 0.27 on C.

Prediction alone moves mass symmetrically inward, taking the uniform prior to approximately (0.27,0.47,0.27)(0.27, 0.47, 0.27) over L, C, and R. The beep then suppresses L and shifts the posterior to approximately (0.04,0.27,0.69)(0.04, 0.27, 0.69). Cell R becomes the most likely location, but substantial uncertainty remains on C. One step of the filter has turned an uninformative prior into a useful, calibrated localization by multiplying predictive plausibility against sensor likelihood and renormalizing.

Beliefs that were sharp before an action may widen afterward, reflecting new uncertainty introduced by the transition, then sharpen again when the observation arrives. This is exactly the predictor-corrector structure of the Kalman filter and its nonlinear cousins, which the next chapter develops in depth; the formula above is the discrete-state special case of that whole family.

The Belief MDP

Here is the result that makes POMDPs tractable to reason about. Treat the belief btb_t itself as a state. The belief evolves stochastically (through the observations it receives), it is Markov (because it is a deterministic function of the previous belief, action, and fresh observation noise), and it carries a well-defined expected reward:

ρ(b,a)=∑sb(s)∑s′P(s′∣s,a) R(s,a,s′).\rho(b, a) = \sum_{s} b(s) \sum_{s'} P(s' \mid s, a)\, R(s, a, s').

The intuition for the Markov claim is subtle but crucial. The old state sts_t was Markov for the environment, but the agent's observation stream is not Markov in oto_t: knowing only the latest pixel, you cannot know where you are. Under the POMDP transition and observation model defined above, the true posterior belief condenses all evidential content of the history. Since bt+1b_{t+1} is computed from (bt,at,ot+1)(b_t, a_t, o_{t+1}) alone, conditioning on the pair (belief, action) leaves nothing predictive in earlier beliefs, which restores the property that made planning recursive in the first place. This theorem concerns the true posterior under the true model. If an agent updates a surrogate belief with misspecified transition or observation probabilities, that internal state need not retain all predictive information in the history.

The POMDP is therefore equivalent to an MDP over the space of beliefs. Early incomplete-information control work includes Åström's 1965 formulation, while Smallwood and Sondik's 1973 finite-horizon analysis developed belief-space dynamic programming and its piecewise-linear convex value structure. All the machinery of the first half of this chapter applies, with one sobering caveat: the belief space is a continuum of probability distributions, with dimension equal to the number of states minus one. Exact value iteration over beliefs is practical only for tiny problems, and finding optimal POMDP policies is computationally intractable in the worst case. Practical systems use approximations such as point-based value iteration, particle filters, or, increasingly, learned latent representations that play the role of beliefs implicitly. Those approximations occupy several later chapters.

One further wrinkle distinguishes belief-space planning from ordinary MDP planning: because collecting information changes the belief, acting can serve two purposes at once. An action might gather reward or gather evidence, and sometimes the best evidence-gathering move earns nothing immediately. This state-information tension vanishes in a fully observed problem with known dynamics, where no action teaches the agent anything new about the current state or model. Fully observed problems with unknown dynamics can still require exploration to learn the model.

Beliefs, Memory, and World Models

The belief state explains why memory helps. An agent without memory can only react to its latest observation; an agent that maintains a belief carries forward everything its history taught it. Recurrent world models, which we will meet in Part III, learn exactly this skill end to end: their latent state is trained to be a sufficient summary of history for predicting and controlling the future, performing implicitly the job that the Bayes update performs explicitly here.