Multi-Agent Reinforcement Learning
- Multi-agent RL generalizes single-agent RL to settings where multiple agents interact, cooperate, or compete
- AlphaStar (2019) and OpenAI Five (2019) demonstrated multi-agent RL at superhuman level in complex games
- MARL theory is still immature: non-stationarity and credit assignment are open research problems
Multi-agent RL involves multiple independent learning agents that share an environment. Agents may cooperate (maximizing a shared reward), compete (zero-sum games), or do both (mixed-cooperative). Each agent faces a non-stationary world because other agents are also changing their policies.
- Game theory (Nash equilibrium, mechanism design) provides the solution concepts for multi-agent settings
- Connects to emergent communication, social dilemmas, and AI safety (misaligned multi-agent outcomes)
- Independent Q-learning, MADDPG, and QMIX are key MARL algorithms each with different coordination assumptions
- Formalise the multi-agent problem as a Markov game (stochastic game) and distinguish cooperative, competitive, and mixed settings.
- Explain why independent Q-learning fails in the multi-agent setting due to non-stationarity from the perspective of each agent.
- Describe the Centralised Training with Decentralised Execution (CTDE) paradigm and explain why it resolves the non-stationarity problem during training.
- Explain QMIX value decomposition and MADDPG centralised critics, and compare their assumptions.
- Define a Nash equilibrium in a normal-form game and explain what it means in the context of multi-agent RL.
TL;DR
Multi-agent RL generalises single-agent RL to settings with multiple interacting agents. Independent Q-learning fails because each agent faces a non-stationary environment as others learn simultaneously. The dominant solution paradigm — Centralised Training, Decentralised Execution (CTDE) — resolves this by allowing agents to share information during training while operating independently at deployment time. QMIX and MADDPG are the canonical CTDE algorithms for cooperative and mixed settings respectively.
Intuition
In single-agent RL, the environment is stationary given a fixed policy. In multi-agent settings, each agent’s environment includes the other agents — and as they all learn simultaneously, the effective environment changes for everyone. This is the root cause of most MARL difficulties. The Centralised Training, Decentralised Execution (CTDE) paradigm resolves this asymmetry: during training, agents can share global state and each other’s observations; at execution, each agent acts only on its own local information.
The key MARL insight: training is a coordination problem; execution is a scalability problem. CTDE gets the best of both worlds — globally coordinated training with scalable independent deployment.
Markov Games (Stochastic Games)
A Markov game [7] with agents is a tuple where:
- : shared state space.
- : action space for agent ; joint action .
- : transition probability depending on the joint action of all agents.
- : reward for agent , which may depend on all agents’ actions.
- : shared discount factor.
Cooperative: all agents share the same reward . The goal is to maximise the team return.
Competitive (zero-sum): . One agent’s gain is another’s loss. Examples: chess, Go, poker.
Mixed (general-sum): agents have different reward functions that may partially overlap. Examples: trading, autonomous driving.
Why Independent Q-Learning Fails
The simplest approach: give each agent a separate Q-learning update, treating other agents as part of the environment. This is called Independent Q-Learning (IQL). The problem is fundamental: from agent ‘s perspective, the transition depends on the actions of all other agents. As other agents update their policies, this transition distribution changes — the environment is non-stationary from each agent’s perspective. Standard Q-learning convergence proofs assume a stationary environment; without this, Q-values can cycle or diverge.
Specifically, suppose two agents are learning simultaneously. Agent 1’s Bellman update targets , but the reward was generated under agent 2’s old policy. By the time agent 1 uses this target, agent 2 has already changed — the target is stale. In cooperative tasks, this causes coordination failures; in competitive tasks, agents oscillate without converging to an equilibrium.
The non-stationarity problem is the central obstacle in MARL. Every time agent 2 updates, the Markov assumption is violated for agent 1. IQL can work in practice for simple tasks, but it has no convergence guarantees and fails for coordination-heavy problems.
Centralised Training, Decentralised Execution (CTDE)
The CTDE paradigm [8] addresses non-stationarity during training by allowing agents to access global state (all agents’ observations and actions), then deploying agents using only their local information.
During training: agent uses a centralised critic conditioned on the full state and all agents’ actions . This resolves non-stationarity because the centralised critic “sees” what all agents are doing.
During execution: each agent uses only its local policy conditioned on its own observation . No communication or global information is required at deployment.
This is practically powerful because: training can be centralised on a cluster with full information sharing, while deployment can be fully decentralised (each agent runs independently, even without network connectivity).
QMIX: Monotonic Value Decomposition
QMIX [1] addresses cooperative MARL where all agents share a single team reward. The core insight: each agent maintains its own local utility function , but the joint action-value function should be consistent with decentralised execution. QMIX enforces the IGM (Individual-Global-Max) condition:
If this holds, each agent can greedily maximise its own and the result is globally optimal. QMIX enforces a monotonicity constraint:
This is implemented with a mixing network whose weights (output of a hypernetwork conditioned on global state ) are constrained to be non-negative. The mixing network takes individual values and combines them into ; the non-negativity of weights ensures monotonicity.
QMIX was evaluated on StarCraft Multi-Agent Challenge (SMAC) and became the de facto cooperative MARL baseline.
MADDPG: Centralised Critics for Mixed Environments
MADDPG [2] extends DDPG to multi-agent mixed cooperative-competitive settings. Each agent has:
- A local actor acting on its own observation.
- A centralised critic conditioned on all agents’ observations and actions.
The actor is trained with the deterministic policy gradient from the centralised critic:
Because the critic sees all agents’ actions, it can correctly attribute credit even in mixed games where cooperation and competition coexist. Agents in MADDPG can also optionally model other agents’ policies (opponent modeling) for competitive settings.
Nash Equilibria in MARL
A Nash equilibrium (NE) is a joint policy such that no agent can improve its expected return by unilaterally changing its own policy, given the others’ policies:
where denotes the joint policy of all agents other than .
In a two-player zero-sum game, the minimax theorem guarantees the existence of a unique Nash equilibrium in mixed strategies, and both players achieve their minimax values. This is the game-theoretic foundation behind AlphaZero’s self-play convergence.
In cooperative games, the Nash equilibrium typically coincides with the joint optimum. In general-sum games, multiple NE may exist and they may be inefficient (the Prisoner’s Dilemma is a classic example where the NE is globally suboptimal).
Case Studies: OpenAI Five and AlphaStar
OpenAI Five [4]: Five separate neural networks play Dota 2 using PPO. Each agent observes partial information (its own hero’s perspective). Key innovations: (1) team spirit parameter in the reward that blends individual and team reward, allowing a spectrum from fully selfish to fully cooperative; (2) self-play with league training; (3) distributed training at 180 years of game experience per day.
AlphaStar [3]: Mastered StarCraft II — a game with 1,000+ possible actions per step, long time horizons (thousands of steps), and partial observability. Used a centralised policy trained via population-based training with a league of agents. The architecture uses transformers to process multi-entity observations, a pointer network for action selection, and LSTM for temporal integration.
Both systems demonstrate that with sufficient scale and well-designed multi-agent training infrastructure, MARL can reach superhuman performance in complex partially observable games.
Emergent Communication
Cooperative MARL agents can develop emergent communication protocols when given a discrete communication channel [6]. Early work showed that agents develop grounded symbols that refer to game entities. However, emergent languages are often uninterpretable to humans, not compositional, and brittle — they only communicate what’s needed for the task, not general language.
Single-Agent vs Multi-Agent: Comparison
| Dimension | Single-Agent RL | Multi-Agent RL |
|---|---|---|
| Environment stationarity | Stationary (given fixed policy) | Non-stationary (other agents change during training) |
| Credit assignment | Direct — one agent, one reward | Hard — joint rewards must be decomposed across agents |
| Convergence guarantees | Q-learning converges under mild conditions | IQL has no guarantees; CTDE methods have partial guarantees |
| Scalability | Single policy network | N policy networks; joint action space grows exponentially |
| Communication | Not needed | Optional; emergent or engineered protocols |
| Training paradigm | On-policy or off-policy | CTDE, self-play, population-based training |
| Equilibrium concept | Optimal policy | Nash equilibrium (may not be unique or efficient) |
| Hallmark algorithms | DQN, PPO, SAC | IQL (baseline), QMIX, MADDPG, MAPPO, QMix+ |
Real-World Applications
Multi-robot coordination: warehouse robots (Amazon Kiva) navigate without collisions; cooperative teams in search-and-rescue. CTDE methods trained in simulation, deployed individually.
Trading: market microstructure with multiple interacting strategies. Each strategy is an agent; the market price is an emergent property. Zero-sum competition with complex mixed incentives.
Ad auctions: multiple bidders (agents) compete in repeated auctions. Mechanism design intersects with MARL — the auction rules shape the equilibrium.
Multi-player games: poker, Diplomacy (Facebook CICERO), StarCraft, Dota — all require reasoning about other agents’ policies and intentions.
When to use cooperative MARL over single-agent with a team reward: when the joint action space is too large for a single policy to handle (e.g., grows fast), or when agents must be deployed independently without communication.
Pop Quiz
- 1. Why does independent Q-learning (IQL) fail to converge in cooperative multi-agent settings?
- 2. What is the CTDE paradigm, and why does it resolve the non-stationarity problem?
- 3. What does QMIX's monotonicity constraint ensure?
- 4. In a two-player zero-sum game, what does a Nash equilibrium guarantee?
- 5. What distinguishes cooperative MARL from single-agent RL with a team reward?
Interview Q&A
Why does independent Q-learning fail, and what is the CTDE rationale?onsite
Independent Q-learning gives each agent its own Q-function trained on its own experience. From agent ‘s perspective, the transition function is — this depends on the joint distribution of other agents’ policies . Since other agents are updating their policies simultaneously, changes each step, making the environment non-stationary. Q-learning requires a Markov, stationary environment to converge; non-stationarity breaks this.
CTDE addresses this by maintaining a centralised critic conditioned on the full state and all agents’ actions. During training, the centralised critic sees everything, making the effective environment stationary. The policy (actor) is still local . At deployment, only the local policy runs, so no inter-agent communication is needed. The price paid is that training requires centralised infrastructure; the benefit is principled credit assignment and stable learning.
Define Nash equilibrium in a 2-player zero-sum game, and explain what self-play converges to.onsite
A Nash equilibrium (NE) in a two-player zero-sum game is a pair of strategies such that:
for all strategies of player 1 and of player 2, where is the payoff to player 1 (player 2 gets ). Neither player can improve by unilaterally deviating.
The minimax theorem guarantees a unique minimax value . Both players achieve this value at the NE.
Self-play in theory converges to the NE for two-player zero-sum games when combined with the right update rule (fictitious play, counterfactual regret minimisation, or mirror descent). In practice, deep RL self-play (AlphaGo/AlphaZero) uses iterative policy improvement with MCTS rather than directly computing the NE — this works empirically but the theoretical connection is less clean for function approximation. AlphaStar uses a population-based league specifically to avoid cycling, which can occur with naive self-play.
What makes cooperative MARL different from single-agent RL, and when would you use QMIX vs MADDPG?phone
Single-agent RL with a team reward assumes one central controller with access to all agents’ observations — it acts in a joint action space that grows exponentially with the number of agents. Cooperative MARL instead assumes decentralised execution: each agent acts independently at runtime, observing only its local information. The challenge is coordinating these independent agents to achieve team goals.
QMIX is designed for pure cooperative settings: all agents share one team reward and the goal is to maximise it jointly. QMIX’s monotonicity constraint means each agent can greedily maximise its own and the result is globally optimal for the team — this is the IGM condition. QMIX cannot handle settings where agents have different reward functions.
MADDPG works for cooperative, competitive, or mixed settings because each agent has its own centralised critic that can encode that agent’s individual objective. The actors are still local and deterministic. Use QMIX when you want lightweight cooperative coordination with strong theoretical guarantees; use MADDPG when agent objectives differ or when you need stochastic continuous-action policies.
References
- Rashid, T., Samvelyan, M., Schroeder de Witt, C., Farquhar, G., Foerster, J. N., and Whiteson, S. (2018). QMIX: Monotonic Value Function Factorisation for Deep Multi-Agent Reinforcement Learning. ICML 2018 (arXiv preprint). arXiv:1803.11485
- Lowe, R., Wu, Y., Tamar, A., Harb, J., Abbeel, P., and Mordatch, I. (2017). Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments. NeurIPS 2017 (arXiv preprint). arXiv:1706.02275
- Vinyals, O., Babuschkin, I., Czarnecki, W. M., Mathieu, M., Dudzik, A., Choi, J., Powell, R., Ewalds, T., Georgiev, P., Oh, J., et al. (2019). Grandmaster level in StarCraft II using multi-agent reinforcement learning. Nature 575, 350-354. doi:10.1038/s41586-019-1724-z
- Berner, C., Brockman, G., Chan, B., Cheung, V., Debiak, P., Dennison, C., Farhi, D., Fischer, Q., Hashme, S., Hesse, C., et al. (2019). Dota 2 with Large Scale Deep Reinforcement Learning. arXiv preprint. arXiv:1912.06680
- Sutton, R. S., and Barto, A. G. (2018). Reinforcement Learning: An Introduction (2nd ed.). MIT Press. ISBN 978-0-262-03924-6
- Foerster, J. N., Assael, Y. M., de Freitas, N., and Whiteson, S. (2016). Learning to Communicate with Deep Multi-Agent Reinforcement Learning. NeurIPS 2016 (arXiv preprint). arXiv:1605.06676
- Shapley, L. S. (1953). Stochastic Games. Proceedings of the National Academy of Sciences 39(10), 1095-1100. doi:10.1073/pnas.39.10.1095
- Oliehoek, F. A., and Amato, C. (2016). A Concise Introduction to Decentralized POMDPs. Springer. doi:10.1007/978-3-319-28929-8