Cooperative Multi-Agent RL
Teams of learners: centralized training with decentralized execution.
A team of agents shares one reward, yet each acts on what it alone sees. That makes the problem a decentralized POMDP, provably harder than anything a single agent faces, and it brings two troubles a single learner never meets: teammates who learn make the world shift under you, and a shared reward does not say who earned it. This lesson builds the model, shows how independent learners go wrong, and develops the dominant remedy, centralized training with decentralized execution, through value factorization, centralized critics and counterfactual credit assignment, ending with what the benchmarks do and do not show.
What you’ll learn
- Define a Dec-POMDP, and explain why optimal planning is NEXP-complete even for two agents and what that implies.
- Explain independent learning, its non-stationarity, and the coordination pathologies of miscoordination and relative overgeneralization, using the climbing game.
- Describe centralized training with decentralized execution and the individual–global-max condition, and test which team payoffs an additive factorization can represent.
- Derive difference rewards, prove they are aligned with the team reward, and quantify how they sharpen each agent's learning signal as the team grows.
- Assess the cooperative benchmarks, including what SMACv2 revealed about SMAC and what the strength of plain PPO suggests.
Teams and the Dec-POMDP
In a cooperative problem every agent receives the same reward: robots in a warehouse, traffic lights along a corridor, the units of a StarCraft army, players of the card game Hanabi. If one controller could see everything and command everyone, the team would be a single agent with a huge joint action. It cannot: each agent acts on its own observations, often with little or no communication. That restriction is the whole difficulty of cooperative multi-agent RL.
Where does the hardness come from? A single agent in a POMDP can summarize its history by a belief over states. An agent in a team cannot: what it should do depends on what its teammates have seen, and they reason about what it has seen, and so on. An optimal decentralized policy must therefore specify an action for every possible history. With actions and observations, a deterministic policy for horizon is a tree with decision nodes, so each agent has raised to that power of policies, and the team has the product.
Two agents each have 2 actions and 2 possible observations, and the horizon is 4. The number of joint deterministic policies is . What is ?
Show the answer
30
Each agent's policy tree has decision nodes, each with 2 choices: policies. Two agents give joint policies, and one more step of horizon roughly squares the count per agent (from to ). This doubly exponential growth is what the NEXP-completeness result formalizes.
Independent learners and their pathologies
The simplest approach ignores the team: each agent runs single-agent RL, for instance Q-learning, on its own observations and actions, treating teammates as part of the environment. These are independent learners (IQL; Tan, 1993). They scale to any number of agents and often work, but they break the assumptions behind single-agent guarantees. From agent 's point of view the environment is non-stationary: the transitions and rewards it experiences depend on its teammates' policies, which keep changing. A replay buffer makes this worse, since it stores experience generated by teammates who no longer exist in that form; Foerster et al. (2017) correct for it with importance weights and with fingerprints, such as the training iteration and exploration rate, added to each agent's input.
Two coordination failures recur (Matignon, Laurent & Le Fort-Piat, 2012). Miscoordination: when several joint actions are optimal, agents choosing independently can combine incompatible halves of different ones. Relative overgeneralization (Panait, Tuyls & Luke, 2008): an agent's part of the best joint action looks bad on average, because exploring teammates often pair it with a penalty, so the team drifts to joint actions whose parts are merely safe.
| Agent 1 plays | Agent 2: | Agent 2: | Agent 2: |
|---|---|---|---|
Early in learning, agent 2 explores uniformly over . Which of agent 1's actions has the highest expected payoff?
- , the action of the optimal joint action
- All three are equal
Show the answer
C.
Averaging each row over agent 2's uniform play gives : , : , : . The same holds for agent 2 (columns: , , ). Each agent learns that its safe action is best, and the optimal joint action is never tried often enough together to show its worth. That is relative overgeneralization.
Centralized training, decentralized execution
Training usually happens in a simulator, where everything is visible: the global state, every agent's observations and actions, even every agent's parameters. Only execution must be decentralized. Centralized training with decentralized execution (CTDE; Oliehoek, Spaan & Vlassis, 2008; Kraemer & Banerjee, 2016) exploits that asymmetry, in two main ways.
- Value factorization. Learn a per-agent utility for each agent and combine them into a team value trained on the shared reward; at execution each agent acts greedily on its own utility. This is value decomposition.
- Centralized critics. Train decentralized actors with a critic that sees the global state and all actions, which keeps the critic's learning problem stationary while the actors change (COMA, MADDPG, MAPPO).
VDN (Sunehag et al., 2018) takes the sum, , which satisfies IGM because a sum is maximized by maximizing each term. QMIX (Rashid et al., 2018) mixes the utilities with a network whose weights are generated from the global state and constrained to be nonnegative, so is monotone in each and IGM still holds. The price is expressiveness. A sum cannot represent interaction: for two agents, a payoff table is a sum of per-agent terms exactly when every sub-table has zero interaction, . The Fixed Point lesson Value Factorization: VDN & QMIX works out what monotonic mixing can and cannot represent.
Which of these two-agent team payoffs (rows: agent 1's action, columns: agent 2's) can VDN represent exactly as ?
Show the answer
B.
Its interaction term is : take and . The others have interaction , and : their payoffs depend on the combination of actions, which a sum cannot express. A coordination payoff like the first is exactly what teams face.
Credit assignment among teammates
A shared reward tells every agent how the team did. Agent 's learning signal therefore contains the contributions of all its teammates, which from its point of view are noise, and the noise grows with the team. This is structural credit assignment: deciding which agent deserves credit, as opposed to which earlier action.
Aligned. The subtracted term does not depend on , so any change of agent 's action, with the others fixed, changes and the team reward by exactly the same amount. An agent that improves its difference reward improves the team's:
Less noisy. Take agents that each work () or idle (), with team reward and default action "idle". Then exactly, while the team reward adds the teammates' choices. If each teammate works with probability , independently,
The effect of agent 's own choice is 1 whatever the team size, while the noise around it has standard deviation . The signal-to-noise ratio of the shared reward falls like , and the number of samples needed to detect the agent's effect grows like .
With agents whose teammates each work with probability , what is the standard deviation of the teammates' contribution to agent 's shared reward? (Agent 's own effect is 1.)
Show the answer
4.97
. A single team reward tells agent almost nothing about its own action: its effect of 1 is buried in noise five times larger. The difference reward has none of that noise.
Difference rewards need the counterfactual , which a simulator or a model of the reward can supply; Tumer & Agogino (2007) used them to coordinate agents in air traffic flow management. COMA (Foerster et al., 2018) learns the counterfactual instead. Its centralized critic estimates , and each agent's advantage replaces the default action by an average over the agent's own policy: . Because the subtracted term does not depend on , it leaves the policy gradient unbiased; the proof, and its subtleties under partial observability, are in Multi-Agent Policy Gradients: COMA, MADDPG & MAPPO.
Benchmarks, and what they show
The StarCraft Multi-Agent Challenge (SMAC; Samvelyan et al., 2019) made cooperative MARL measurable: each unit of a StarCraft II army is an agent with a limited field of view, fighting the game's built-in AI. It became the standard benchmark for value factorization and centralized critics, and then revealed its limits. Ellis et al. (2023) trained open-loop policies that see only their agent ID and the time step, nothing of the battle, and found that they reach non-trivial win rates on many SMAC maps; only four (3s5z_vs_3s6z, corridor, 6h_vs_8z and 5m_vs_6m) defeated them. Many scenarios could be solved by memorizing a fixed sequence of moves. SMACv2 randomizes unit types and start positions and uses the units' true sight and attack ranges, so that policies must react to what they observe.
A second surprise came from the simplest methods. Yu et al. (2022) found that PPO with a centralized value function (MAPPO) is competitive with or better than specialized off-policy methods across particle environments, SMAC, Google Research Football and Hanabi, with modest tuning but careful implementation choices; even independent PPO, with no centralized component, did well on hard SMAC maps (Schroeder de Witt et al., 2020). Benchmarks of many algorithms under common protocols (Papoudakis et al., 2021) tell the same story as in single-agent RL (Benchmarks & Honest Evaluation): implementation details and tuning can matter as much as the algorithm.
| Approach | What training shares | What each agent executes | Examples | Main weakness |
|---|---|---|---|---|
| Independent learners | nothing | its own policy | IQL, IPPO | non-stationarity; relative overgeneralization |
| Value factorization | state, all utilities, team reward | greedy action on its own utility | VDN, QMIX, QPLEX | restricted class of team values |
| Centralized critic | state and joint action in the critic | its own stochastic policy | COMA, MADDPG, MAPPO | credit is only as good as the critic |
| Learned communication | messages, and gradients through them | policy plus messages | DIAL, CommNet | protocols hard to interpret; needs a channel |
Key takeaways
- A Dec-POMDP gives a team one reward but each agent only its own observations; optimal finite-horizon planning is NEXP-complete for two or more agents, so provably not polynomial, because no belief state summarizes what teammates know.
- Independent learners treat teammates as environment, which makes their world non-stationary and leads to miscoordination and relative overgeneralization: in the climbing game, exploration makes the safe action look best.
- Centralized training with decentralized execution uses global information only during training; IGM makes individually greedy actions jointly greedy, and VDN (a sum) and QMIX (a monotone mixture) satisfy it at a cost in expressiveness.
- Difference rewards are aligned with the team reward and strip out teammates' noise, whose standard deviation grows like ; COMA learns a policy-averaged version with a centralized critic.
- SMAC's open-loop solvability and the strength of plain PPO (MAPPO, IPPO) are reminders that benchmark design, implementation and tuning shape conclusions in cooperative MARL as much as algorithms do.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
Optimal finite-horizon planning is NEXP-complete for two-agent Dec-POMDPs. What follows?
- It is as hard as NP-complete problems, so a polynomial algorithm would exist if P = NP
- No polynomial-time algorithm exists, unconditionally, because P ≠ NEXP is a theorem
- It becomes easy if the agents jointly observe the state (a Dec-MDP)
- It is no harder than a single-agent POMDP with the joint action
Show the answer
B. No polynomial-time algorithm exists, unconditionally, because P ≠ NEXP is a theorem
The time hierarchy theorem gives , so NEXP-complete problems are provably not in P, unlike NP-complete ones, whose status depends on the P versus NP question. Bernstein et al. show that the hardness persists for Dec-MDPs, and a centralized POMDP is only PSPACE-complete.
What is relative overgeneralization?
- Agents overfit to their teammates' current policies
- Agents generalize too much across states that should be treated differently
- An agent's component of the optimal joint action looks worse on average than a safer action, because exploring teammates often pair it with penalties
- Two optimal joint actions exist and agents choose halves of different ones
Show the answer
C. An agent's component of the optimal joint action looks worse on average than a safer action, because exploring teammates often pair it with penalties
In the climbing game, is part of the best joint action but averages against a uniformly exploring partner, while the safe averages . Independent learners chase the averages and settle on mediocre joint actions. The last option describes miscoordination, a different failure.
What does the individual–global-max (IGM) condition buy a value-factorization method?
- It lets each agent act greedily on its own utility at execution while the joint action is greedy for , and it makes the maximization in the learning target cost evaluations instead of
- It guarantees that the learned team value equals the true optimal team value
- It removes the non-stationarity caused by teammates' learning
- It allows the agents to communicate during execution
Show the answer
A. It lets each agent act greedily on its own utility at execution while the joint action is greedy for , and it makes the maximization in the learning target cost evaluations instead of
IGM is a consistency condition between centralized values and decentralized greedy choices. It says nothing about whether is accurate: VDN and QMIX satisfy it by construction yet cannot represent many team payoffs, which is the subject of Value Factorization: VDN & QMIX.
Why is the difference reward aligned with the team reward?
- Because it is always smaller than the team reward
- Because it averages over the teammates' actions
- Because the subtracted term does not depend on agent 's action, so changing changes and the team reward by the same amount
- Because the default action is optimal
Show the answer
C. Because the subtracted term does not depend on agent 's action, so changing changes and the team reward by the same amount
With the other agents' actions fixed, and differ by a quantity that cannot affect, so they rank agent 's actions identically. What the subtraction removes is the teammates' contribution, the noise in agent 's signal.
What did the SMACv2 authors' open-loop experiment reveal about the original SMAC benchmark?
- That value factorization fails on every SMAC map
- That SMAC is too hard for current methods
- That centralized critics are unnecessary
- That policies conditioned only on agent ID and time step, ignoring all observations, reach non-trivial win rates on many maps, so many scenarios reward memorized move sequences
Show the answer
D. That policies conditioned only on agent ID and time step, ignoring all observations, reach non-trivial win rates on many maps, so many scenarios reward memorized move sequences
If a policy that never looks at the battle can win, the scenario does not test reacting to partial observations. Only four original maps defeated open-loop policies; SMACv2 randomizes unit types and start positions to restore the need for closed-loop play.
Go deeper
- Value Factorization: VDN & QMIX · Decomposing a team’s Q-function, and the individual–global max principle.
- Multi-Agent Policy Gradients: COMA, MADDPG & MAPPO · Centralized critics, counterfactual baselines and the surprising strength of PPO.
- Communication & Social Dilemmas · Emergent communication, sequential social dilemmas and opponent shaping.
Further reading
- D. S. Bernstein, R. Givan, N. Immerman & S. Zilberstein, "The complexity of decentralized control of Markov decision processes," Mathematics of Operations Research 27(4), 819–840 (2002).
- C. Claus & C. Boutilier, "The dynamics of reinforcement learning in cooperative multiagent systems," Proceedings of the Fifteenth National Conference on Artificial Intelligence (AAAI), 746–752 (1998).
- F. A. Oliehoek & C. Amato, A Concise Introduction to Decentralized POMDPs (SpringerBriefs in Intelligent Systems, Springer, 2016).
- S. V. Albrecht, F. Christianos & L. Schäfer, Multi-Agent Reinforcement Learning: Foundations and Modern Approaches (MIT Press, 2024).