Simple Algorithm
Reinforcement Learning · Fixed Point · 30 min

Belief MDPs & α-Vectors

Why POMDP values are piecewise-linear and convex, and how exact solvers use it.

Every finite-horizon POMDP value function is the upper surface of finitely many planes over the belief simplex, one for each conditional plan worth keeping. That fact, due to Smallwood and Sondik, is what makes exact POMDP planning possible at all, and its consequences mark the limits: the planes multiply doubly exponentially, pruning them takes linear programs, the infinite-horizon value is generally not of this form, and some infinite-horizon questions are undecidable. This lesson builds the theory from conditional plans, computes the tiger's planes exactly, and maps the complexity landscape.

What you’ll learn

  • Define conditional plans and their α-vectors, and prove that the optimal tt-step value is the upper envelope of finitely many α-vectors.
  • Derive the exact α-vector backup, count its output, and prune it with linear programs, including incremental pruning.
  • Compute the tiger problem's two-step α-vectors and read off the plans they stand for.
  • Describe infinite-horizon solutions as finite-state controllers, and state the complexity results: PSPACE-completeness, undecidability and nonapproximability.

Plans are vectors

A conditional plan of depth tt, or policy tree, is an action to take now together with, for each possible observation, a plan of depth t−1t-1 to follow afterwards. It prescribes up to tt actions without ever mentioning beliefs. Its expected discounted reward depends only on the hidden start state, so it is a vector αp∈RS\alpha_p\in\R^S, its α-vector, and from a belief bb the plan is worth b⋅αp=∑sb(s)αp(s)b\cdot\alpha_p=\sum_sb(s)\alpha_p(s): linear in bb.

DerivationThe value vector of a plan
  1. αp(s)=r(s,a)+γ∑s′P(s′∣s,a)∑oZ(o∣s′,a) αpo(s′)\alpha_p(s)=r(s,a)+\gamma\sum_{s'}P(s'\mid s,a)\sum_oZ(o\mid s',a)\,\alpha_{p_o}(s')

    Let plan pp start with action aa and continue with plan pop_o after observing oo. Condition on the start state ss, the next state s′s' and the observation:

  2. Vp(b)=∑sb(s) αp(s)=b⋅αpV_p(b)=\sum_sb(s)\,\alpha_p(s)=b\cdot\alpha_p

    From belief bb the start state is distributed as bb, so the plan's value is the corresponding average of its vector:

DerivationProof
  1. Vt(b)=sup⁡πVtπ(b)=max⁡p∈ΠtVp(b)V_t(b)=\sup_\pi V^\pi_t(b)=\max_{p\in\Pi_t}V_p(b)

    Plans suffice. With tt decisions left and a given starting belief, every policy, however it uses the history or randomizes, is a mixture of deterministic policies, and a deterministic policy chooses each action as a function of the observations so far: it is a depth-tt plan. A mixture is never better than its best component, so the optimum is a maximum over plans:

  2. ∣Πt∣=A(Ot−1)/(O−1)\abs{\Pi_t}=A^{(O^t-1)/(O-1)}

    Linear pieces. Each VpV_p is linear in bb, and a maximum of finitely many linear functions is piecewise linear and convex. Finitely many, but enormously many: a plan picks one of AA actions at each of the 1+O+⋯+Ot−11+O+\dots+O^{t-1} nodes of its tree.

The plan view tells you what an optimal policy looks like, not only what its value is. The region of beliefs where a given plan is best is an intersection of half-spaces, hence convex, so the simplex splits into convex cells, one per useful plan, and the optimal first action is constant on each. The value function never has to be stored over a continuum: a finite list of vectors is the whole answer.

α-vector (TL, TR)Plan: first action; then after hear left / hear rightBest for b=Pr⁡(TL)b=\Pr(\text{TL}) in
(−100.95, 9.05)(-100.95,\ 9.05)open left; then listen[0, 0.024][0,\ 0.024]
(−16.06, 6.93)(-16.06,\ 6.93)listen; then listen / open left[0.024, 0.386][0.024,\ 0.386]
(−1.95, −1.95)(-1.95,\ -1.95)listen; then listen / listen[0.386, 0.614][0.386,\ 0.614]
(6.93, −16.06)(6.93,\ -16.06)listen; then open right / listen[0.614, 0.976][0.614,\ 0.976]
(9.05, −100.95)(9.05,\ -100.95)open right; then listen[0.976, 1][0.976,\ 1]
The tiger problem's optimal two-step value (p=0.85p=0.85, γ=0.95\gamma=0.95): five vectors survive out of the 27 the backup generates. For example, listen, then open right after hear left is worth −1+0.95 (0.85×10+0.15×(−1))=6.93-1+0.95\,(0.85\times10+0.15\times(-1))=6.93 if the tiger is on the left. Near b=0.5b=0.5 the best two-step plan listens twice: one report, right 85% of the time, does not justify a gamble on the last step.
Check your understanding

How many distinct depth-3 plans does the tiger problem have, with 3 actions and 2 observations?

  1. 33=273^3=27
  2. 37=2,1873^7=2{,}187
  3. 3×23=243\times2^3=24
  4. 73=3437^3=343
Show the answer

B. 37=2,1873^7=2{,}187

A depth-3 tree has 1+2+4=71+2+4=7 nodes, each choosing one of 3 actions: 37=2,1873^7=2{,}187 plans. Exact value iteration never lists them all. It builds horizon 3 from the 5 surviving vectors of horizon 2, generating 3×52=753\times5^2=75 candidates, of which 9 survive.

The exact backup and pruning

Enumerating plans is hopeless, but the useful plans of horizon tt can be built from the useful ones of horizon t−1t-1. Write 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') for the back-projection of a vector through action aa and observation oo, and Ga,o={ga,oα:α∈Γt−1}G_{a,o}=\{g^\alpha_{a,o}:\alpha\in\Gamma_{t-1}\}.

Γt=prune⁡(⋃a∈A {r(⋅,a)}⊕γGa,o1⊕γGa,o2⊕⋯⊕γGa,oO)\Gamma_t=\operatorname{prune}\Big(\bigcup_{a\in\mathcal A}\ \{r(\cdot,a)\}\oplus\gamma G_{a,o_1}\oplus\gamma G_{a,o_2}\oplus\cdots\oplus\gamma G_{a,o_O}\Big)
X⊕Y={x+y:x∈X, y∈Y}X\oplus Y=\{x+y:x\in X,\ y\in Y\} is the cross-sum. Each element is the vector of a plan that starts with aa and follows, after each observation, a plan from Γt−1\Gamma_{t-1}: exactly the recursion of the previous step. Before pruning there are A∣Γt−1∣OA\abs{\Gamma_{t-1}}^O vectors.

Two classic algorithms organize this work. The witness algorithm builds each action's set by searching for beliefs at which the current set is provably incomplete, adding a vector for each witness found (Kaelbling, Littman & Cassandra, 1998). Incremental pruning (Zhang & Liu, 1996; Cassandra, Littman & Zhang, 1997) prunes the cross-sum one observation at a time:

prune⁡(X⊕Y⊕W)=prune⁡(prune⁡(X⊕Y)⊕W).\operatorname{prune}(X\oplus Y\oplus W)=\operatorname{prune}\big(\operatorname{prune}(X\oplus Y)\oplus W\big).

It is exact because if x+y+wx+y+w is best at some belief bb, then x+yx+y is best at bb within X⊕YX\oplus Y: otherwise a better partial sum at bb would give a better full sum at bb. So pruning partial sums never discards a piece that a needed full sum uses, and the intermediate sets stay small.

Horizon hhVectors generated by the plain backupVectors kept after pruning
2275
3759
102,18727
2011,16365
The tiger problem (p=0.85p=0.85, γ=0.95\gamma=0.95): the plain backup generates 3∣Γh−1∣23\abs{\Gamma_{h-1}}^2 candidates. Pruning keeps the growth roughly linear in hh here, while the number of depth-20 plans, 3220−13^{2^{20}-1}, is beyond astronomical. Problems with more states and observations are far less kind: the cross-sum alone is exponential in OO, and on hard problems the pruned sets grow so fast that exact methods stall after a few horizons.

Infinite horizons, controllers and the limits of exactness

As t→∞t\to\infty with γ<1\gamma<1, VtV_t converges uniformly to V⋆V^\star, which is therefore convex, but in general not piecewise linear: infinitely many plans can matter. Sondik (1978) identified finitely transient policies, whose values are piecewise linear after all, and represented them as finite graphs of plans.

The tiger problem is a clean example. Its optimal policy from Partial Observability & POMDPs is a finite-state controller with five nodes, one for each lead from −2-2 to 22: the three inner nodes listen and move one step left or right with each report, and the two outer ones open a door and return to lead 0. Evaluating a controller is a linear system with one equation per (node, hidden state) pair:

W(n,s)=r(s,an)+γ∑s′P(s′∣s,an)∑oZ(o∣s′,an) W(η(n,o),s′),W(n,s)=r(s,a_n)+\gamma\sum_{s'}P(s'\mid s,a_n)\sum_oZ(o\mid s',a_n)\,W\big(\eta(n,o),s'\big),

where ana_n is the action of node nn and η(n,o)\eta(n,o) its successor after observation oo. Each node's values W(n,⋅)W(n,\cdot) form an α-vector. For the tiger, the ten equations give b⋅W(0,⋅)=19.37b\cdot W(0,\cdot)=19.37 at b=0.5b=0.5, the optimal value, and starting each belief at its best node gives the lower bound max⁡nb⋅W(n,⋅)≤V⋆(b)\max_n b\cdot W(n,\cdot)\le V^\star(b), exact at the beliefs the controller visits. Policy iteration can be run directly on controllers: evaluate them by this linear system, then improve them with an exact backup whose new vectors add, replace or prune nodes (Hansen, 1998).

Key takeaways

  • A conditional plan's value is linear in the belief, b⋅αpb\cdot\alpha_p, and the optimal tt-step value is the maximum over finitely many plans: piecewise linear and convex (Smallwood & Sondik, 1973).
  • The exact backup builds Γt\Gamma_t from Γt−1\Gamma_{t-1} by back-projections, cross-sums over observations and a union over actions, A∣Γt−1∣OA\abs{\Gamma_{t-1}}^O candidates in all; LP pruning, witnesses and incremental pruning keep only vectors that are best somewhere.
  • For the tiger problem, 5 of 27 vectors survive at horizon 2 (open, listen once, or listen twice), and the infinite-horizon optimum is a five-node controller whose node vectors give V⋆(0.5)=19.37V^\star(0.5)=19.37.
  • Finite-horizon POMDP planning is PSPACE-complete, infinite-horizon policy existence is undecidable even with discounting (though ε\varepsilon-approximation by truncation is possible), and constant-factor approximation is intractable for several classes.

Check yourself

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

Question 1

What does an α-vector represent?

  1. The value of one belief
  2. The expected discounted reward of one conditional plan, for each possible hidden start state
  3. A probability distribution over the hidden states
  4. The gradient of V⋆V^\star at the current belief
Show the answer

B. The expected discounted reward of one conditional plan, for each possible hidden start state

αp(s)\alpha_p(s) is what plan pp earns in expectation if the hidden state starts at ss; from a belief bb the plan is worth b⋅αpb\cdot\alpha_p. The value function is the upper envelope of the vectors of the useful plans.

Question 2

Why may incremental pruning prune partial cross-sums without losing any vector of the final set?

  1. Because cross-sums are commutative
  2. Because the partial sums are much smaller than the full one
  3. Because each observation's vectors are independent of the others
  4. Because a full sum that is best at some belief is made of partial sums that are best at the same belief, and those survive pruning
Show the answer

D. Because a full sum that is best at some belief is made of partial sums that are best at the same belief, and those survive pruning

If x+y+wx+y+w is best at bb but x+yx+y were beaten at bb by x′+y′x'+y', then x′+y′+wx'+y'+w would beat x+y+wx+y+w at bb. So every needed full sum is built from needed partial sums, and pruning the partial sums is safe.

Question 3

With γ<1\gamma<1, what can be said in general about the infinite-horizon optimal value V⋆V^\star of a POMDP?

  1. It is piecewise linear and convex, with at most ASA^S pieces
  2. It need not be convex
  3. It is convex, as the uniform limit of the convex VtV_t, but in general not piecewise linear
  4. It equals the value of planning as if the state were visible
Show the answer

C. It is convex, as the uniform limit of the convex VtV_t, but in general not piecewise linear

Uniform limits of convex functions are convex, so V⋆V^\star is convex. Infinitely many plans can matter, so it need not be piecewise linear; finitely transient policies, such as the tiger's five-node controller, are the exceptions where it is.

Question 4

Infinite-horizon policy existence is undecidable for discounted POMDPs, yet their values can be computed to any accuracy ε\varepsilon. How do these fit together?

  1. Truncating at a horizon HH with γHRmax⁡/(1−γ)≤ε\gamma^HR_{\max}/(1-\gamma)\le\varepsilon gives ε\varepsilon-accurate values; what is undecidable is whether the exact value reaches a given threshold
  2. The undecidability result applies only without discounting
  3. Values can be computed only for two-state POMDPs
  4. They do not fit together: one of the two claims is false
Show the answer

A. Truncating at a horizon HH with γHRmax⁡/(1−γ)≤ε\gamma^HR_{\max}/(1-\gamma)\le\varepsilon gives ε\varepsilon-accurate values; what is undecidable is whether the exact value reaches a given threshold

Approximating within ε\varepsilon and deciding an exact threshold are different questions. Finite-horizon truncation (itself PSPACE-hard) settles the first; the second can need infinite precision about what infinitely long plans achieve, and Madani, Hanks and Condon show it is undecidable.

Further reading

  • R. D. Smallwood & E. J. Sondik, "The optimal control of partially observable Markov processes over a finite horizon," Operations Research 21(5), 1071–1088 (1973).
  • E. J. Sondik, "The optimal control of partially observable Markov processes over the infinite horizon: discounted costs," Operations Research 26(2), 282–304 (1978).
  • L. P. Kaelbling, M. L. Littman & A. R. Cassandra, "Planning and acting in partially observable stochastic domains," Artificial Intelligence 101(1–2), 99–134 (1998).
  • A. R. Cassandra, M. L. Littman & N. L. Zhang, "Incremental pruning: a simple, fast, exact method for partially observable Markov decision processes," Proceedings of UAI (1997).
  • O. Madani, S. Hanks & A. Condon, "On the undecidability of probabilistic planning and related stochastic optimization problems," Artificial Intelligence 147(1–2) (2003).