TL;DR
QPLEX is a method for teaching a team of agents to act well together when each agent can only see its own part of the world. It learns one joint value during training and, at the end, each agent acts alone from its own observations. Its key move is a duplex dueling network that builds the joint value so the team's best joint action is exactly the combination of each agent's best action. On StarCraft II micromanagement tasks it beat the earlier multi-agent Q-learning methods, both when the data came from live play and when it came from a fixed dataset.
Builds on: Decentralized POMDP, Centralized Training with Decentralized Execution, QMIX: Monotonic Value Function Factorisation for Deep Multi-Agent, Dueling Network Architectures for Deep Reinforcement Learning · Leads to: none yet in the graph
Why it mattered
Cooperative multi-agent reinforcement learning is the study of teams of learners that share one reward. The paper's motivating examples are sensor networks, coordinated robot swarms and autonomous cars. A common test bed is StarCraft II micromanagement, where a team of units is controlled through the StarCraft Multi-Agent Challenge (SMAC). The paper evaluates on 17 scenarios: 14 standard SMAC maps and 3 new very hard ones. Teams in these scenarios range from 2 to 27 agents.
The paper's contribution is that it gives multi-agent Q-learning full expressiveness and scalability at once. Before it, the strongest value-factorisation methods either kept a simple structure that cannot represent every good joint policy, or relaxed the consistency requirement that makes decentralised action safe. QPLEX keeps the consistency exact by construction, and the paper reports that this translates into higher win rates and better sample efficiency across the benchmark.
The problem
A team of agents has a joint action made of one action per agent. The number of joint actions is the number of individual actions raised to the power , so it grows exponentially with the team size. Each agent also sees only its own history of observations and actions, because of partial observability. A Dec-POMDP (Decentralized POMDP) is the standard model for this setting.
The usual answer is centralised training with decentralised execution (Centralized Training with Decentralized Execution): during training the learner may use global information, but at run time each agent picks its action from its own history. To make this work in value-based methods, the joint action-value function must be factorised into per-agent functions so that the joint greedy action equals the tuple of individual greedy actions. This is the IGM (Individual-Global-Max) principle. It has two payoffs: decisions made during execution are consistent with the team's joint plan, and training can compute the one-step target of the joint function without enumerating all joint actions.
Two earlier methods satisfy IGM with sufficient but restrictive conditions. VDN (Value-Decomposition Networks For Cooperative Multi-Agent Learning) makes the joint value a plain sum of per-agent values. QMIX (QMIX: Monotonic Value Function Factorisation for Deep Multi-Agent) makes it a monotonic function of them, so each per-agent value only needs to go up when the joint value goes up. Both conditions are sufficient, not necessary, so some joint value functions that satisfy IGM cannot be represented. QTRAN turns IGM into soft penalties, and WQMIX reweights QMIX's projection towards better joint actions. Both are approximations and cannot guarantee exact IGM consistency. The question QPLEX answers is how to get exact consistency with full expressiveness and a scalable network.
How it works
QPLEX works on the joint value through a dueling split, one part per agent. Here is the pipeline in the order it runs, and a tiny instance traced through it.
flowchart LR O[Each agent history] --> Q[Individual Q networks] Q --> D[Per agent value V and advantage A] D --> T[Transformation with joint history] T --> M[Dueling mixing network] M --> J[Joint Q tot] J --> L[TD loss for training]
- Each agent has its own recurrent Q-network. It reads its hidden state from the last step, its current observation and its last action, and outputs one value per action. This is the network that runs at execution time. It is a Recurrent Neural Network so that its choice can depend on the history it has seen.
- Split each agent's value into a state value and an advantage. The agent's value is the largest of its action values, and its advantage for each action is how far that action falls below the best one. This is the dueling decomposition from Dueling Network Architectures for Deep Reinforcement Learning, and the advantage is the object in Advantage Function.
- Transform the split with joint information (training only). A transformation network looks at the joint history and produces a positive weight and a bias for each agent. It rescales that agent's value and advantage. The weight is always positive, so the ordering of the agent's actions is unchanged.
- Add the state values. The joint state value is the plain sum of the transformed per-agent values. Since state values do not affect which action is chosen, the sum imposes no constraint.
- Weight the advantages. The joint advantage is a sum of the per-agent advantages, each multiplied by a positive importance weight. The weights come from a Multi-Head Attention module over the joint history and joint action.
- Form the joint value and train. The joint value is the joint state value plus the joint advantage. It is trained with a temporal-difference error (Temporal-Difference Learning) whose target comes from a Target Network.
- Execute alone. At run time the mixing and transformation parts are removed. Each agent picks the action with the largest from its own network.
A tiny trace. Take two agents with two actions each. In the paper, the weights in step 5 come from attention. Here they are fixed so you can check the arithmetic, and the transformation in step 3 is the identity.
- Agent 1 has and . So its value is and its advantages are .
- Agent 2 has and . So and . Check: , which is .
- The joint state value is .
- Take the weights and . Both are positive, as the method requires.
- The joint advantage for each joint action is . For that is . For it is . For it is . For it is .
- Add the state value. The joint values are , , and .
- The best joint action is , and it is the only one with advantage zero. Each agent's own best action is also 1 for agent 1 and 0 for agent 2, so the joint best is the combination of the individual bests. That is IGM holding exactly in this instance.
Check the arithmetic in the trace another way: should equal . It does.
Worked examples
- Set every weight to . Then the correction term in Step 6 in symbols (below) vanishes.
- Use the same individual values as the tiny trace: , .
- The joint value at is .
- Interpretation: with all weights equal to 1, the joint value is the plain sum of the individual values. That is the VDN structure, and it is a special case of QPLEX, not a different method.
- Keep the individual values from the trace, so and , and .
- Change the weights to and .
- Compute the joint advantages: gives , gives , gives , and gives .
- Add : is , , and for the four joint actions in that order.
- The best joint action is still , with advantage zero and value .
- Interpretation: the weights change the size of the joint values, but not which joint action wins. Here any positive weights give the same choice, because the sign pattern of the advantages is fixed.
Suppose a team of 5 units, each with 6 possible actions, is trained with QPLEX. A joint action is one choice per unit, so there are joint actions.
- A search over all joint actions to find the best one needs 7,776 joint values to be compared.
- In execution, each unit only compares its own 6 values. The five comparisons take value reads in total.
- Each unit's own best action combined gives the joint best, by IGM. So the 30 reads give the same decision the 7,776-way search would give, if the factorisation is exact.
- The same argument explains why the paper cares about exactness. A factorisation that only approximates IGM can make the 30-read choice differ from the true joint best.
Try it: if the team had 10 units with 6 actions each, how many joint actions would there be, and how many individual value reads would execution need? Answer: joint actions, and individual reads.
The math
The paper's central object is the advantage-based IGM principle.
Given a joint action-value function over joint action-observation histories and joint actions , and individual functions , the individual functions satisfy advantage-based IGM for when both are written as a state value plus an advantage, , with the maximum over actions, and the joint advantage and individual advantages have the same greedy choices: equals the tuple of .
Because does not depend on the action, comparing actions only depends on the advantages. That is why this form is equivalent to the ordinary IGM condition (the paper's Proposition 1). The paper also shows the following: a joint advantage is zero at the best joint action and negative elsewhere, and each individual advantage is zero at its best action and not positive elsewhere. The constraint therefore reduces to sign conditions on the advantages.
Step 1 in symbols
Each agent computes and .
Step 3 in symbols
The transformation gives, for each agent , a positive weight and a bias , and sets
Since , the advantage of an action keeps its sign and its order, so each agent's greedy choice is unchanged.
Steps 4 and 5 in symbols
The joint state value and joint advantage are
The weights come from attention heads:
where and are sigmoid outputs in and is a positive key. Each term is therefore positive, and so is . The sigmoid also keeps each between 0 and 1, which makes each agent's share of the joint advantage sparse.
Step 6 in symbols
The joint value is . Substituting the sums, and writing for the sum of the transformed individual values, gives
The first sum is the value that the earlier method Qatten computes. The second term is the correction that QPLEX adds to reach full expressiveness.
The training loss is the squared temporal-difference error, with the target taken from frozen parameters :
where is the team reward, the discount factor and the next joint history.
Results
The paper evaluates on small matrix games, a two-state MMDP and the 17 StarCraft II scenarios, with 6 random seeds per method and results shown as the median with the 25th and 75th percentiles.
| Setting | What the paper reports |
|---|---|
| Matrix games (harder one-step game) | QPLEX, QTRAN and WQMIX reach the optimum. QMIX, VDN and Qatten fall into a local optimum caused by miscoordination penalties. |
| Two-state MMDP | QMIX, VDN and Qatten diverge in their joint value. QPLEX, QTRAN and WQMIX converge to the optimal value. |
| SMAC, online data collection | Averaged over the 17 scenarios, QPLEX's median test win rate exceeds the baselines by at least 10%. It is the best performer on up to 8 tasks and underperforms on 2. On the hardest map, 5s10z, the gap is above 30% in test win rate. |
| SMAC, offline data collection | QPLEX significantly outperforms the other multi-agent Q-learning baselines. QMIX and Qatten do not always learn stably, and VDN is weak. |
What the numbers mean: the matrix games and the two-state MMDP are designed to isolate expressiveness and stability. They show that a method with a restricted function class can get stuck or diverge even when the environment is simple. The StarCraft II results show that the same advantage holds in a large, partially observable benchmark. The offline result matters because it shows QPLEX can learn from a fixed log of past play without new exploration, which the paper links to the wider Offline Reinforcement Learning literature.
The limits are real. Results are on one simulator and one family of tasks. The paper uses a small attention module (1 layer with 4 heads) for the complex maps, because learning gets harder as the module grows. The method is for discrete actions, and the paper names continuous action spaces as the next step.
Common mistakes and tradeoffs
It is tempting to think that QPLEX lets each agent see the whole team at run time. In fact the global information is used only during training, in the transformation and the mixing network. At execution each agent runs only its own recurrent Q-network on its own history, because that is all it can observe.
It is tempting to think that making the mixing weights larger always helps. In fact the weights must be positive, and the paper's proof depends on that. A negative weight would flip the order of one agent's advantages and break IGM for that agent.
It is tempting to think that a richer joint function is always better. In fact the paper's results show that the value of exactness depends on the setting. With online data collection and epsilon-greedy exploration, a method whose greedy choices are exact gathers better training data. QTRAN, which relaxes IGM, did worst there in the paper's experiments, even though it did well on the small matrix games. Relaxation can be cheaper but may not reach the best joint policy.
When to use QPLEX: cooperative teams with a shared reward, a value-based learner, and enough data or compute to train the attention module. When not to use it: a single agent (use Deep Q-Network), competing agents (the setting is a Markov Game with separate rewards, and IGM does not apply), or a team so small that a joint table is cheap. Alternatives: VDN for the simplest additive structure, or QMIX when a monotonic mixer is enough. QPLEX is larger and slower than both, so it is worth it when expressiveness is the bottleneck.
Reading guide
Read the paper in this order. Each section lists the lessons it leans on.
- Abstract and Section 1 (Introduction). Needs Centralized Training with Decentralized Execution, Value-Decomposition Networks For Cooperative Multi-Agent Learning and QMIX: Monotonic Value Function Factorisation for Deep Multi-Agent. The introduction gives the motivation and the claim of full IGM expressiveness.
- Section 2.1 (Dec-POMDP). Needs Decentralized POMDP and Partially Observable Markov Decision Process. The team has one reward, and each agent only sees its own observation.
- Section 2.2 (multi-agent Q-learning). Needs Deep Q-Network, Q-Learning and Temporal-Difference Learning. Equation (1) is the TD loss used in training.
- Section 2.3 (CTDE and IGM). Needs Centralized Training with Decentralized Execution. Equation (2) defines IGM.
- Section 3.1 (advantage-based IGM). Needs Dueling Network Architectures for Deep Reinforcement Learning and Advantage Function. Definition 1 and Fact 1 are the core of the method.
- Section 3.2 (architecture). Needs Multi-Head Attention, Recurrent Neural Network and Target Network. Figure 1 is the architecture; equations (8) to (11) are the mixing rule.
- Section 4 (experiments). Needs Offline Reinforcement Learning for the offline setting. Read Sections 4.1 and 4.2 first, since they are small and isolate the effects.
- Appendix A (proofs). The proofs of Proposition 1 and Fact 1 are short once Advantage Function is clear. Proposition 2 uses the universal approximation of neural networks, which the paper cites rather than proves.
Check yourself
QuestionWhat does the IGM principle require of the individual and joint greedy actions?Show answer
The joint greedy action must equal the tuple of individual greedy actions, one per agent. Each agent can then act on its own Q-function at execution time, and the team still plays the joint-optimal action. Without it, decentralised execution could choose a joint action that is not the best one.
QuestionIn the tiny trace, what is if ?Show answer
It is 3.0. With both weights equal to 1, , which equals . That is the VDN sum.
QuestionWhy must each be strictly positive?Show answer
A positive weight keeps the sign of each agent's advantages, so the agent's ordering of actions is preserved. If a weight were zero or negative, the joint advantage could rank that agent's actions in the wrong order, and the best joint action would no longer be made of the agents' individual best actions.
QuestionA team of 4 drones shares one reward. During training a learner sees every drone's position; at run time each drone sees only its own sensors. Which parts of QPLEX run on each drone?Show answer
Each drone runs only its own recurrent Q-network and takes the action with the largest . The transformation network and the dueling mixing network use global information, so they are used only during training and removed at execution.