Search

Search papers and lessons

Decentralized POMDP

Level 4 · 14 min read

A decentralized POMDP is a team version of a POMDP: agents share one reward, but each sees only its own observations and picks only its own action, so the team must coordinate without sharing what it sees.

On this page

  • Colour = topic mix
  • Probability
  • Discrete math
  • Reinforcement learning
  • Calculus
  • Linear algebra
  • Microeconomics
  • ReadReady to readNot yet

TL;DR

A decentralized partially observable Markov decision process (Dec-POMDP) is a team version of a POMDP. Several agents share one team reward, but each agent sees only its own observations and chooses only its own action. The problem is hard because the best team plan depends on what everyone sees, while each agent has to act on its own part of the information.

Builds on: POMDP, Markov Game · Leads to: Centralized Training with Decentralized Execution, QMIX

Where it's used

Teams of robots with limited sight. Several robots explore a building, each with a camera that sees only its own corridor. They share one goal, such as finding every package, and often cannot talk continuously. Each robot picks its route from its own view, yet the team's coverage depends on where all of them go.

Cooperative game benchmarks. The QMIX paper trains teams of learning agents on StarCraft II micromanagement maps, where each agent controls one unit and sees only its surroundings, and the whole team wins or loses together. The environment comes from the StarCraft II Learning Environment described by Vinyals and colleagues.

Shared-reward sensing. Several sensors each measure a different part of a shared hazard, such as a gas leak spreading across a site. The team is rewarded for an accurate response, but each sensor only sees its neighbourhood, so the team has to combine local readings through its rules.

How it works

A tiny game first. A package is in room 1 or room 2, each with probability one half. Two robots, A and B, each have a sensor that reports the correct room 80 percent of the time. The sensors are independent given the room. Each robot picks a room to go to, and the team earns a reward of 1 only if both robots end up in the package room.

  1. The package is placed. Suppose it is in room 2. Check: the hidden state is "room 2", and neither robot can see it directly.
  2. Each sensor reads. Robot A's sensor says room 2, which is correct. Robot B's sensor says room 1, which is wrong. Check: the two readings are independent given the room, so B's error does not depend on A's.
  3. Each robot acts on its own reading. A goes to room 2 and B goes to room 1. There is no radio link, so neither robot knows what the other saw. Check: the joint choice is (2, 1), and neither robot could condition on the other's sensor.
  4. The team reward is computed. A is in the package room, but B is not, so the team reward is 0. Check: A's correct move earns nothing, because the reward needs both robots in the package room.
  5. Another draw. Again the package is in room 2, but this time both sensors say room 2. This happens with probability 0.8×0.8=0.640.8 \times 0.8 = 0.64 given room 2. Both robots go to room 2, and the reward is 1. Check: success requires both sensors to be right.
  6. Compare rules over many draws. The rule "go to the room your sensor names" earns 0.640.64 on average. The rule "both always go to room 1" earns 0.50.5, because the reward is 1 only when the package is in room 1. Check: the rule that ignores the sensors is worse here, even though it needs no information at all.
flowchart LR
  S[Hidden package room] --> OA[Robot A sensor]
  S --> OB[Robot B sensor]
  OA --> AA[Robot A picks a room]
  OB --> AB[Robot B picks a room]
  AA --> R[Team reward: 1 only if both pick the package room]
  AB --> R

Each robot is correct 80 percent of the time on its own, but the team needs both to be right, so the team does worse than either robot alone would suggest.

The math

Step 1 in symbols: the model

Definition: Decentralized POMDP

A Dec-POMDP for NN agents is a tuple (S,A1,…,AN,T,R,O1,…,ON,O,γ)(\mathcal{S}, \mathcal{A}_1, \ldots, \mathcal{A}_N, T, R, \mathcal{O}_1, \ldots, \mathcal{O}_N, O, \gamma). Here S\mathcal{S} is the set of hidden states, Ai\mathcal{A}_i is the set of actions of agent ii, and T(s′∣s,a)T(s' \mid s, \mathbf{a}) is the probability that the next state is s′s' after the joint action a=(a1,…,aN)\mathbf{a} = (a_1, \ldots, a_N). The reward R(s,a)R(s, \mathbf{a}) is one number shared by the whole team. Oi\mathcal{O}_i is the set of observations of agent ii, O(o∣s′,a)O(\mathbf{o} \mid s', \mathbf{a}) is the probability of the joint observation o=(o1,…,oN)\mathbf{o} = (o_1, \ldots, o_N), and γ∈[0,1)\gamma \in [0, 1) is the discount factor.

Compare this with the Markov Game. The difference is that the reward is shared rather than per agent, and that no agent sees the state. Compare it with the POMDP as well: the observation is now a tuple, one entry per agent, and the action is a tuple too. The one-agent case is exactly a POMDP.

Step 2 in symbols: local histories and rules

Agent ii knows only its own history τit=(oi1,ai1,…,oit)\tau_i^t = (o_i^1, a_i^1, \ldots, o_i^t) of observations and actions. A rule for agent ii is a policy πi(ai∣τi)\pi_i(a_i \mid \tau_i), a probability of each action given that history. The team's rule is the tuple π=(π1,…,πN)\pi = (\pi_1, \ldots, \pi_N). This is the decentralization constraint: each factor of π\pi may use only its own history.

In the two-rooms game the history is one observation, so a rule is simply a map from "what my sensor said" to "which room I go to".

Step 3 in symbols: the belief no single agent has

A central planner who saw every history could keep the joint belief

bt(s)=P(st=s∣τ1t,…,τNt),b_t(s) = P\big(s_t = s \mid \tau_1^t, \ldots, \tau_N^t\big),

the probability of each state given all the histories together. This is the belief of an ordinary POMDP over joint actions, and it is updated with Bayes' Rule as one joint observation arrives. The optimal action can depend on this joint belief. But no agent holds it, because each agent holds only its own τit\tau_i^t. That gap, between the information the best plan needs and the information each agent has, is the source of the difficulty.

Step 4 in symbols: the value of a team rule

The value of a team rule is one number, the expected discounted team reward:

V(π)=Eπ[∑t=0∞γt R(st,at)].V(\pi) = \mathbb{E}_{\pi}\Big[\sum_{t=0}^{\infty} \gamma^t\, R(s_t, \mathbf{a}_t)\Big].

The expectation covers the hidden states, the observations and the choices made by the rules. The value is not the sum of separate values for the agents, because each reward term depends on all the actions at once.

For the two-rooms game, with one observation and one action per robot and no transitions, the value of a pair of rules is

V(π1,π2)=∑sP(s)∑o1,o2O1(o1∣s) O2(o2∣s) R(s,π1(o1),π2(o2)).V(\pi_1, \pi_2) = \sum_{s} P(s) \sum_{o_1, o_2} O_1(o_1 \mid s)\, O_2(o_2 \mid s)\, R\big(s, \pi_1(o_1), \pi_2(o_2)\big).

Here P(s)P(s) is the prior, Oi(oi∣s)O_i(o_i \mid s) is robot ii's sensor model, and RR is 1 when both robots pick the room ss and 0 otherwise.

Step 5 in symbols: the centralized value for comparison

If one planner saw both observations, it could choose the joint action directly. For each joint observation o\mathbf{o} it would pick the joint action that maximises ∑sP(s,o) R(s,a)\sum_s P(s, \mathbf{o})\, R(s, \mathbf{a}), and the best total is the sum of these maxima over all o\mathbf{o}. The gap between this centralized value and the best decentralized value is the price of not sharing observations. The worked examples compute it for the two-rooms game.

Worked examples

Example
1. Tiny: one draw of the two-rooms game

The package is in room 2. Robot A's sensor says 2, and robot B's sensor says 1.

  1. Probability of this observation pair given room 2: 0.8×0.2=0.160.8 \times 0.2 = 0.16. Only one robot is right.
  2. Under the rule "follow your own sensor", A goes to room 2 and B goes to room 1.
  3. Robot A is in the package room and robot B is not, so the team reward is R=0R = 0.
  4. Interpretation: the reward is shared, but it needs both robots to match the state. A correct decision by one robot earns nothing if the other robot's decision is wrong.
Example
2. Standard: the best rules and the centralized bound

Each robot has two possible sensor readings and two rooms, so it has four possible rules for turning a reading into a room: follow the sensor, do the opposite of the sensor, always room 1, or always room 2. The team therefore has 4×4=164 \times 4 = 16 pairs of rules. Under the prior, the team's success probability for a pair is ∑s12P(robot 1 right∣s) P(robot 2 right∣s)\sum_s \tfrac12 P(\text{robot 1 right} \mid s)\, P(\text{robot 2 right} \mid s), where "right" means the rule sends that robot to room ss.

  1. Both follow the sensor: each robot is right with probability 0.80.8 in either room, so the value is 0.8×0.8=0.640.8 \times 0.8 = 0.64.
  2. Both always room 1: the team succeeds only when the package is in room 1, so the value is 0.50.5.
  3. One follows the sensor and the other always goes to room 1: when the package is in room 1, the first robot is right with probability 0.80.8 and the second with probability 11, giving 0.80.8. When the package is in room 2 the second robot is never right, giving 00. The average is 0.40.4.
  4. Both do the opposite of their sensor: each is right with probability 0.20.2, so the value is 0.040.04.
  5. The best of the 16 pairs is "both follow the sensor", with value 0.640.64. The value is linear in each robot's mixing probabilities when the other's rule is fixed, so mixing rules cannot beat the best pure pair.
  6. Centralized comparison: a planner that sees both readings chooses the room with the larger joint probability for each pair of readings. For readings (2,2)(2, 2), the package is in room 2 with probability 12⋅0.8⋅0.8=0.32\tfrac12 \cdot 0.8 \cdot 0.8 = 0.32 and in room 1 with probability 12⋅0.2⋅0.2=0.02\tfrac12 \cdot 0.2 \cdot 0.2 = 0.02, so the planner picks room 2 and gets 0.320.32. The readings (1,1)(1, 1) give 0.320.32 by symmetry. For each disagreeing pair, the two rooms are equally likely, 12⋅0.8⋅0.2=0.08\tfrac12 \cdot 0.8 \cdot 0.2 = 0.08 each way, so each pair gives 0.080.08. The total is 0.32+0.32+0.08+0.08=0.800.32 + 0.32 + 0.08 + 0.08 = 0.80.
  7. Interpretation: sharing the two readings lifts success from 0.640.64 to 0.800.80. The 0.160.16 gap is what the team loses by not sharing.
Example
3. Realistic: why brute force is hopeless

Three robots each have 5 actions and 5 observations, and the team plans two steps ahead. A rule for one robot is a tree: a first action, then for each of its 5 possible observations, one second action.

  1. Choices per robot: the first action has 5 options.
  2. For each of the 5 observations, the second action has 5 options. That is 55=3,1255^5 = 3{,}125 combinations.
  3. One robot's rules: 5×3,125=15,6255 \times 3{,}125 = 15{,}625.
  4. Joint rules for three robots: 15,6253=3,814,697,265,62515{,}625^3 = 3{,}814{,}697{,}265{,}625, about 3.8 trillion.
  5. Interpretation: even this tiny team is far beyond checking every joint rule. Exact planning is only feasible for very small problems, and practical methods either approximate the joint value or learn the rules from simulated experience.

Try it: two robots, each with 4 actions and 4 observations, planning two steps ahead. How many rules does one robot have? Answer: 4×44=4×256=1,0244 \times 4^4 = 4 \times 256 = 1{,}024.

Common mistakes and tradeoffs

It is tempting to think that if every agent shares the team reward, each can solve its own POMDP and the team will do well. In fact the others' rules change what is best for each robot, so the environment each agent sees is not stationary. In the two-rooms game the rule "follow your sensor" happens to be optimal, but that comes from the symmetry of this game, not from a general principle.

It is tempting to think that sharing every observation removes the difficulty. In fact sharing turns the problem into a single POMDP over joint actions, which is easy to state and works in principle. The costs are the bandwidth and latency of the link, the cost of a joint action space that grows as the product of the agents' action sets, and the fact that many teams cannot share observations at all. The 0.640.64 to 0.800.80 gap in the examples is what sharing buys.

It is tempting to think the team value is the sum of the agents' values. In fact each robot is right 80 percent of the time on its own, but the team reward needs both to be right, so the team succeeds only 64 percent of the time under that rule.

It is tempting to think that a shared goal means a shared plan. In fact two agents with the same reward can still choose different actions when they cannot see the same evidence. Coordination has to be designed into the rules.

Use a Dec-POMDP when several agents must act without sharing their full information, they share one reward, and the cost of failing as a team is what matters. Do not use it when one controller can see everything (use a POMDP over joint actions), or when the agents have their own goals (use a Markov Game and look for an equilibrium, as in Nash equilibria). When the team can train together in simulation but must act on local information, the usual alternative is Centralized Training with Decentralized Execution: a shared critic sees everything during training, and each agent's policy uses only its own observations at run time.

History

Craig Boutilier's 1996 work on coordination in multiagent decision processes made the shared-reward team case a standard problem in planning. The formal Dec-POMDP model followed. In 2002 Bernstein, Givan, Immerman and Zilberstein showed that finite-horizon planning for a decentralized team is NEXP-complete, a harder class than the PSPACE-complete problem for a single agent's POMDP. Their result means that no efficient exact algorithm is expected in general, and explains why the field turned to approximations and learning.

In the deep reinforcement learning era, the question changed from "how do we compute the best rules?" to "how do we train local rules that work well?" Lowe and colleagues (2017) and Foerster and colleagues (2017) proposed training with shared information and acting on local information, and QMIX (2018) gave a method for factorising a team value into local values that can be maximised separately. That line of work produced the benchmarks on StarCraft II micromanagement.

It caught on because it matches many real teams: they must act on partial information, they succeed or fail together, and they can often train together in simulation before they are deployed.

Recap

  • A Dec-POMDP is a POMDP for a team: one shared reward, several agents, and a hidden state that no agent sees directly.
  • Each agent's rule may use only its own history of observations and actions.
  • The best plan depends on a joint belief that no single agent holds, which is why the problem is harder than a single-agent POMDP.
  • Sharing all observations would make it an ordinary POMDP over joint actions, at the price of communication and a large joint action space.
  • Exact planning is intractable in general, so practice uses approximations and training with shared information but local execution.
  • Read next: Centralized Training with Decentralized Execution for the training scheme that most deep methods use, and QMIX for a team value that can be maximised locally.

Check yourself

QuestionRecall: what makes a Dec-POMDP decentralized, and what do the agents share?Show answer

Each agent's action depends only on its own history of observations and actions, not on what the other agents saw. The agents share one team reward and the dynamics of a hidden state. Because the state is hidden, each agent acts on its own noisy view of it.

QuestionComputation: three robots each follow their own sensor, which is right with probability 0.8 independently given the room. What is the probability that all three go to the package room?Show answer

Each robot must be right, and the three sensors are independent given the room. The probability is 0.8×0.8×0.8=0.5120.8 \times 0.8 \times 0.8 = 0.512.

QuestionWhy: why can't the agents simply use the joint belief that a central planner would keep?Show answer

The joint belief is conditioned on every agent's observations, and no single agent sees all of them. A local rule can use only that agent's own history. So the best plan may need information that no agent holds, which is exactly the constraint the Dec-POMDP imposes.

QuestionApplied: five delivery drones share one reward for total deliveries. Each drone has a camera, and the radio link between them drops out often. Would you model this as a Dec-POMDP, and what would you check first?Show answer

Yes. The drones share one team reward, each sees only part of the world, and communication is unreliable, so the team must act on local information much of the time. Check first how often the link drops and how much a plan that works without communication loses compared with one that uses it. Then check the size of the joint action space, because exact planning grows very fast. A reasonable next step is to train local policies in simulation with a shared critic, and test them under the real drop rate.

Sources