Simple Algorithm
Reinforcement Learning · Fixed Point · 28 min

Approximate POMDP Planning

Point-based value iteration and Monte Carlo planning in belief space.

Exact α-vector methods drown in their own success: they keep every plan that is best anywhere in the belief simplex. Approximate solvers give that up. They bound the value from above and below with quantities that are cheap to compute, back up only the beliefs that matter, search between the bounds, or plan online from the current belief with nothing but a simulator. This lesson builds each idea, shows on the tiger problem how far apart the cheap bounds are (from −20 to 189 around a true value of 19.37), and states exactly what each solver guarantees.

What you’ll learn

  • Derive the QMDP and fast-informed upper bounds and blind-policy lower bounds, prove that QMDP bounds V⋆V^\star from above, and show why it does not pay for information.
  • Explain point-based value iteration and its error bound in terms of the density of the belief set, and why reachable beliefs matter.
  • Describe how HSVI and SARSOP search between an upper and a lower bound, and what their termination certifies.
  • Explain online planning with POMCP and DESPOT, and what their guarantees depend on.

Cheap bounds on the optimal value

Two kinds of bounds come almost for free. A lower bound comes from any fixed plan or policy, because its value is achievable: V⋆(b)≥b⋅αV^\star(b)\ge b\cdot\alpha for its α-vector. The simplest are blind policies, which repeat one action whatever they observe. An upper bound comes from pretending that the agent has information it does not have.

DerivationProof that QMDP is an upper bound
  1. (TB(b⋅U))(b)=max⁡a∑sb(s)[r(s,a)+γ∑s′P(s′∣s,a) U(s′)]≤∑sb(s)max⁡a[r(s,a)+γ∑s′P(s′∣s,a) U(s′)]\big(\mathcal T_B(b\cdot U)\big)(b)=\max_a\sum_sb(s)\Big[r(s,a)+\gamma\sum_{s'}P(s'\mid s,a)\,U(s')\Big]\le\sum_sb(s)\max_a\Big[r(s,a)+\gamma\sum_{s'}P(s'\mid s,a)\,U(s')\Big]

    Back up a linear function. For any vector UU, the exact belief backup TB\mathcal T_B of the linear function b↦b⋅Ub\mapsto b\cdot U is the QMDP form built from UU, because the observation branches recombine: ∑oPr⁡(o∣b,a) τ(b,a,o)(s′)=∑sb(s)P(s′∣s,a)\sum_o\Pr(o\mid b,a)\,\tau(b,a,o)(s')=\sum_sb(s)P(s'\mid s,a).

  2. V⋆=TBV⋆≤TB(b↦b⋅VMDP⋆)=VQMDPV^\star=\mathcal T_BV^\star\le\mathcal T_B\big(b\mapsto b\cdot V^\star_{\text{MDP}}\big)=V_{\text{QMDP}}

    Full information is an upper bound. By the inequality and the monotonicity of TB\mathcal T_B, if V≤b⋅UV\le b\cdot U then TBV≤b⋅(TMDP⋆U)\mathcal T_BV\le b\cdot(\mathcal T^\star_{\text{MDP}}U). Start from the constant U0=Rmax⁡1−γ1U_0=\frac{R_{\max}}{1-\gamma}\mathbf 1, which bounds V⋆V^\star, and apply this to V⋆=TBV⋆V^\star=\mathcal T_BV^\star again and again: V⋆(b)≤b⋅UkV^\star(b)\le b\cdot U_k for every kk, and Uk=(TMDP⋆)kU0→VMDP⋆U_k=(\mathcal T^\star_{\text{MDP}})^kU_0\to V^\star_{\text{MDP}}, so V⋆(b)≤b⋅VMDP⋆V^\star(b)\le b\cdot V^\star_{\text{MDP}}. One more exact backup of that bound is exactly VQMDPV_{\text{QMDP}}, and backing up an upper bound keeps it an upper bound, since V⋆=TBV⋆V^\star=\mathcal T_BV^\star and TB\mathcal T_B is monotone:

BoundValue at b=0.5b=0.5Policy it suggests
Blind: always listen (lower)−20-20Never open
Exact optimum V⋆V^\star19.37Open after a lead of two reports
Fast informed bound (upper)87.18Open once b≥0.949b\ge0.949: a lead of two
QMDP (upper)189Open once b≥0.9b\ge0.9: a lead of two
Fully observable MDP (upper)200Open the empty door every step
The tiger problem with p=0.85p=0.85 and γ=0.95\gamma=0.95. Seeing the tiger would let the agent open the empty door every step, worth 10/(1−0.95)=20010/(1-0.95)=200. QMDP pretends that the tiger's position will be revealed after one step; the fast informed bound lets the agent know where the tiger is now but not where it is placed after a door is opened, which is the only reason it is lower. Both upper bounds are far from the truth, yet both suggest the optimal policy here, for the wrong reason.
Check your understanding

Why is VQMDPV_{\text{QMDP}} an upper bound on V⋆V^\star rather than a lower bound?

  1. It scores actions as if the state were known from the next step on, and extra information can only help
  2. Because it maximizes over actions
  3. Because the belief it uses is only approximate
  4. It is a lower bound: the QMDP policy achieves it
Show the answer

A. It scores actions as if the state were known from the next step on, and extra information can only help

Its scores are what an agent could earn if the hidden state were revealed after one step. A real agent has less information, so it can earn at most that. The policy that acts on these scores can earn far less: −10-10 in the tiger problem with a wait action, where VQMDP(0.5)=189.5V_{\text{QMDP}}(0.5)=189.5.

Back up only the beliefs that matter

Exact methods keep every vector that is best somewhere in the simplex. Point-based value iteration (PBVI; Pineau, Gordon & Thrun, 2003) settles for less: it fixes a finite set BB of beliefs and builds one vector per belief, the one that maximizes the value there. No cross-sum is ever formed, because a single belief needs, for each action–observation pair, only the back-projection that scores highest at it:

ga,o b=arg max⁡g∈Ga,o b⋅g,αab=r(⋅,a)+γ∑oga,o b,backup⁡(b)=arg max⁡αab: a∈A b⋅αabg^{\,b}_{a,o}=\argmax_{g\in G_{a,o}}\ b\cdot g,\qquad\alpha^b_a=r(\cdot,a)+\gamma\sum_og^{\,b}_{a,o},\qquad\operatorname{backup}(b)=\argmax_{\alpha^b_a:\ a\in\mathcal A}\ b\cdot\alpha^b_a
Here Ga,oG_{a,o} holds the back-projections ga,oα(s)=∑s′P(s′∣s,a)Z(o∣s′,a)α(s′)g^\alpha_{a,o}(s)=\sum_{s'}P(s'\mid s,a)Z(o\mid s',a)\alpha(s') of the current vectors. A point costs O(AO∣Γ∣S2)\order{AO\abs{\Gamma}S^2}, instead of the A∣Γ∣OA\abs{\Gamma}^O candidates of the exact backup. Each new vector is the value vector of an actual conditional plan, so if the initial vectors are lower bounds (blind policies, for instance), so is every later set.
DerivationWhy density controls the error
  1. α′⋅b′−α⋅b′≤(α′−α)⋅(b′−b)≤∥α′−α∥∞∥b′−b∥1≤Rmax⁡−Rmin⁡1−γ δB\alpha'\cdot b'-\alpha\cdot b'\le(\alpha'-\alpha)\cdot(b'-b)\le\norm{\alpha'-\alpha}_\infty\norm{b'-b}_1\le\frac{R_{\max}-R_{\min}}{1-\gamma}\,\delta_B

    At a belief b′b' outside BB, the point-based backup offers the vector α\alpha chosen at the nearest b∈Bb\in B, where the exact backup would use some α′\alpha'. Since α\alpha is best at bb, α′⋅b≤α⋅b\alpha'\cdot b\le\alpha\cdot b, and Hölder's inequality bounds the loss at b′b'; vectors are values of plans, so their entries differ by at most (Rmax⁡−Rmin⁡)/(1−γ)(R_{\max}-R_{\min})/(1-\gamma):

  2. εt≤(Rmax⁡−Rmin⁡) δB1−γ+γ εt−1⟹εt≤(Rmax⁡−Rmin⁡) δB(1−γ)2\varepsilon_t\le\frac{(R_{\max}-R_{\min})\,\delta_B}{1-\gamma}+\gamma\,\varepsilon_{t-1}\quad\Longrightarrow\quad\varepsilon_t\le\frac{(R_{\max}-R_{\min})\,\delta_B}{(1-\gamma)^2}

    Each backup adds at most this much and discounts the errors already present by γ\gamma, so the errors add up to a geometric series:

Predict before you look

Covering the belief simplex of a POMDP with SS states to L1L_1 distance δ\delta takes on the order of (1/δ)S−1(1/\delta)^{S-1} points. For S=10S=10 and δ=0.1\delta=0.1, that is about 10 to what power?

Show the answer

9

(1/0.1)9=109(1/0.1)^{9}=10^9 points, each needing a backup, for a problem with only ten states. The beliefs actually reachable from b0b_0 are usually a tiny part of the simplex, which is why point-based solvers find their points by simulating forward.

The bound says where the points must go. Covering the whole simplex is the curse of dimensionality in belief space, but the beliefs reachable from b0b_0 often lie near a low-dimensional set. Hsu, Lee and Rong (2007) tied the cost of approximate planning to the covering number of the reachable belief space: a problem with many states can still be easy when its reachable beliefs are few and clustered. PBVI therefore grows BB by simulating forward from its points; in the journal version of the method, the most effective rule adds the successor belief that most reduces the error bound.

Perseus (Spaan & Vlassis, 2005) makes each round cheap. It samples a large set of reachable beliefs once, then backs up randomly chosen points only until every point in the set has improved, exploiting the fact that one new vector usually improves many points at once.

Searching between the bounds: HSVI and SARSOP

Heuristic search value iteration (HSVI; Smith & Simmons, 2004) keeps both bounds and tightens them where it matters for the start belief b0b_0. The lower bound V‾\underline V is a set of α-vectors, values of real plans. The upper bound V‾\overline V is a set of belief–value pairs with an interpolation rule; because V⋆V^\star is convex, any convex combination of upper-bound points is again an upper bound. HSVI evaluates V‾\overline V at a new belief by projecting onto the convex hull of the points with a linear program; its successor HSVI2 replaced this by a faster "sawtooth" interpolation that also respects convexity.

Each trial walks down from b0b_0. It takes the action with the highest upper bound (optimism, as in UCB), then the observation whose next belief has the largest probability-weighted excess gap, the gap V‾−V‾\overline V-\underline V minus what the target accuracy allows at that depth. It stops at depth tt once the gap there is below εγ−t\varepsilon\gamma^{-t}, and then backs up both bounds along the path in reverse.

For the tiger, start from the QMDP upper bound and the blind "always listen" lower bound. The largest gap is at the corners of the simplex, 200−(−20)=220200-(-20)=220, so with ε=0.1\varepsilon=0.1 no trial goes deeper than ⌈log⁡0.95(0.1/220)⌉=151\lceil\log_{0.95}(0.1/220)\rceil=151 steps.

HSVI2 (Smith & Simmons, 2005) computes tighter initial bounds, avoids linear programs and exploits sparsity, with reported speedups of more than two orders of magnitude, and its analysis bounds the work through discounted reachability. SARSOP (Kurniawati, Hsu & Lee, 2008) pushes in the same direction: it tries to sample only the optimally reachable beliefs, those reached under optimal policies, a set that can be far smaller than all reachable beliefs, and uses the bounds to guess which branches an optimal policy would take and to prune points and vectors that cannot matter.

Online planning in belief space: POMCP and DESPOT

Offline solvers prepare for every belief they might meet. Online planners plan only for the current belief, act, observe, update, and plan again: the partially observable version of Planning in Huge MDPs: Sparse Sampling.

POMCP (Silver & Veness, 2010) runs UCT over a tree of histories. Each simulation draws a start state from the current belief, simulates with a black-box generative model, chooses actions inside the tree by an upper confidence bound, and finishes with a rollout policy. The belief itself is a set of particles, states sampled during the search and stored at the history nodes they reach, so the planner never needs PP or ZZ in closed form, only the ability to sample them. Silver and Veness show that the search's values converge to the optimal ones as simulations grow, inheriting UCT's analysis; in practice, too few particles can leave a belief with no particle consistent with a new observation, which implementations repair by injecting fresh particles.

DESPOT (Somani, Ye, Hsu & Lee, 2013; Ye, Somani, Hsu & Lee, 2017) fixes KK scenarios in advance, each a start state drawn from the belief plus a stream of random numbers that determines every later transition and observation. Under fixed scenarios the belief tree becomes a sparse tree with about ADKA^DK nodes for depth DD, instead of a tree that also branches OO ways at every level, and every policy in it can be evaluated by averaging over the scenarios. A large policy can overfit KK scenarios, so DESPOT maximizes the estimated value minus a penalty on policy size, and its guarantee is a regret bound for the best policy in the tree that depends on the size of the optimal policy's representation, not on the numbers of states or observations.

MethodWhat it keepsGuarantee
QMDP, fast informed boundOne vector per actionUpper bounds on V⋆V^\star; no guarantee for their policies
PBVI, Perseusα-vectors at sampled beliefsLower bounds; PBVI's error ≤(Rmax⁡−Rmin⁡)δB/(1−γ)2\le(R_{\max}-R_{\min})\delta_B/(1-\gamma)^2
HSVI, SARSOPLower α-vectors and upper belief–value pointsOn termination, a policy within ε\varepsilon of optimal from b0b_0
POMCPA tree of histories with particle beliefsConverges as simulations grow; needs only a simulator
DESPOTA sparse tree over KK sampled scenariosNear-optimal with high probability; regret depends on the optimal policy's size
Offline solvers certify a policy before acting; online planners spend their computation on the beliefs that actually occur.
Check your understanding

Why does DESPOT penalize the size of the policies it considers?

  1. Because a large policy can fit the KK sampled scenarios rather than the belief, so its estimated value is optimistic
  2. To save memory
  3. Because smaller policies are always better
  4. To make the scenarios deterministic
Show the answer

A. Because a large policy can fit the KK sampled scenarios rather than the belief, so its estimated value is optimistic

With only KK scenarios, a policy with many branches can be tuned to the particular random numbers drawn, like a model with many parameters fitted to a small dataset. Penalizing size trades estimated value for generalization, and the regret bound grows with the size of the optimal policy, not with the number of states or observations.

Key takeaways

  • Cheap bounds bracket V⋆V^\star: blind policies from below; the fast informed bound, QMDP and the fully observable MDP from above, in that order of looseness. For the tiger at b=0.5b=0.5: −20≤19.37≤87.18≤189≤200-20\le19.37\le87.18\le189\le200.
  • QMDP assumes that the state is revealed after one step, so it does not value information: with an uninformative wait slightly cheaper than listen, it waits forever.
  • Point-based methods back up single vectors at sampled beliefs; PBVI's error is at most (Rmax⁡−Rmin⁡)δB/(1−γ)2(R_{\max}-R_{\min})\delta_B/(1-\gamma)^2, so the points should cover the reachable, or better the optimally reachable, beliefs.
  • HSVI and SARSOP search between an upper and a lower bound and certify an ε\varepsilon-optimal policy from b0b_0; POMCP and DESPOT plan online from samples, with guarantees that depend on simulations or on the optimal policy's size, not on the number of states.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

Which ordering holds at every belief?

  1. VQMDP≤V⋆≤VFIBV_{\text{QMDP}}\le V^\star\le V_{\text{FIB}}
  2. V⋆≤VFIB≤VQMDPV^\star\le V_{\text{FIB}}\le V_{\text{QMDP}}
  3. VFIB≤V⋆≤VQMDPV_{\text{FIB}}\le V^\star\le V_{\text{QMDP}}
  4. V⋆≤VQMDP≤VFIBV^\star\le V_{\text{QMDP}}\le V_{\text{FIB}}
Show the answer

B. V⋆≤VFIB≤VQMDPV^\star\le V_{\text{FIB}}\le V_{\text{QMDP}}

Both are upper bounds. The fast informed bound assumes less extra information than QMDP (it accounts for observations of the next state), so it is the tighter one: 87.18 against 189 for the tiger at b=0.5b=0.5, where V⋆=19.37V^\star=19.37.

Question 2

The tiger problem gets a wait action that costs 0.5 and reveals nothing. What does the QMDP policy do at b=0.5b=0.5?

  1. It listens, as the optimal policy does
  2. It opens a door at once
  3. It waits, and since waiting never changes the belief, it waits forever, earning −10-10
  4. It alternates between waiting and listening
Show the answer

C. It waits, and since waiting never changes the belief, it waits forever, earning −10-10

QMDP scores wait at −0.5+0.95×200=189.5-0.5+0.95\times200=189.5 and listen at 189, as if the tiger's position would be revealed either way. The belief stays at 0.5, so the same choice repeats forever: −0.5/(1−0.95)=−10-0.5/(1-0.95)=-10, against the optimal 19.37.

Question 3

What drives PBVI's error bound to zero?

  1. More α-vectors per belief point
  2. More observations
  3. A longer horizon
  4. Belief points that cover the relevant beliefs more densely, so that δB\delta_B shrinks
Show the answer

D. Belief points that cover the relevant beliefs more densely, so that δB\delta_B shrinks

The bound is (Rmax⁡−Rmin⁡)δB/(1−γ)2(R_{\max}-R_{\min})\delta_B/(1-\gamma)^2: only the density of BB in the beliefs that matter can make it small. Restricting attention to reachable beliefs is what makes a small δB\delta_B affordable.

Question 4

HSVI stops when V‾(b0)−V‾(b0)≤ε\overline V(b_0)-\underline V(b_0)\le\varepsilon. What does that certify?

  1. That the policy executing the lower bound's plans loses at most ε\varepsilon from b0b_0
  2. That the upper bound is within ε\varepsilon of V⋆V^\star at every belief
  3. That every reachable belief has been backed up
  4. Nothing, unless the trials reached the maximum depth
Show the answer

A. That the policy executing the lower bound's plans loses at most ε\varepsilon from b0b_0

The lower bound is achieved by real plans, so that policy earns at least V‾(b0)\underline V(b_0), and no policy earns more than V‾(b0)\overline V(b_0). A gap of at most ε\varepsilon at b0b_0 therefore bounds the policy's loss from b0b_0; elsewhere the bounds may still be loose.

Further reading

  • J. Pineau, G. Gordon & S. Thrun, "Point-based value iteration: an anytime algorithm for POMDPs," Proceedings of IJCAI (2003).
  • T. Smith & R. Simmons, "Heuristic search value iteration for POMDPs," Proceedings of UAI (2004).
  • H. Kurniawati, D. Hsu & W. S. Lee, "SARSOP: efficient point-based POMDP planning by approximating optimally reachable belief spaces," Robotics: Science and Systems (2008).
  • D. Silver & J. Veness, "Monte-Carlo planning in large POMDPs," Advances in Neural Information Processing Systems 23 (2010).
  • N. Ye, A. Somani, D. Hsu & W. S. Lee, "DESPOT: online POMDP planning with regularization," Journal of Artificial Intelligence Research 58, 231–266 (2017).