---
title: "QMIX — paper by Rashid et al. (2018) — summary and ideas"
description: "How QMIX combines local action values into a shared team objective, enabling decentralised decisions and stronger StarCraft II coordination."
canonical: "https://research.elamur.ai/free/en/papers/rashid-2018-qmix-monotonic-value-function-factorisation/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/rashid-2018-qmix-monotonic-value-function-factorisation/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/) / QMIX: Monotonic Value Function Factorisation for Deep Multi-Agent Reinforcement Learning

# QMIX: Monotonic Value Function Factorisation for Deep Multi-Agent Reinforcement Learning

Paper · 2018 · Tabish Rashid, Mikayel Samvelyan, Christian Schroeder de Witt et al.

**Authors:** Tabish Rashid, [Mikayel Samvelyan](https://md.research.elamur.ai/free/en/authors/mikayel-samvelyan/), [Christian Schroeder de Witt](https://md.research.elamur.ai/free/en/authors/christian-schroeder-de-witt/), [Gregory Farquhar](https://md.research.elamur.ai/free/en/authors/gregory-farquhar/), [Jakob Foerster](https://md.research.elamur.ai/free/en/authors/jakob-foerster/) and [Shimon Whiteson](https://md.research.elamur.ai/free/en/authors/shimon-whiteson/) · **Year:** 2018 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**326** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2794643322) · arXiv (Cornell University) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [arXiv 1803.11485](https://arxiv.org/abs/1803.11485)
- [OpenAlex](https://openalex.org/W2794643322)

## Deep dive: QMIX: Monotonic Value Function Factorisation for Deep Multi-Agent Reinforcement Learning

How QMIX combines local action values into a shared team objective, enabling decentralised decisions and stronger StarCraft II coordination. · about 36 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A team can share a goal without sharing everything its members know. Each member may see only its immediate surroundings, have limited communication, and need to choose an action independently. Training such a team creates a difficult tradeoff: separate decision makers are practical to deploy, but their actions can succeed or fail through interactions that separate learning does not capture. QMIX addresses this problem by learning a shared assessment of the team’s actions while preserving the ability of each agent to act from its own information.

The paper studies cooperative reinforcement learning, where agents learn through a common reward. Its setting separates training from execution. During training, the learning procedure can inspect the global environment state and the histories of all agents. During execution, each agent must decide using only its own observations and previous actions. QMIX connects these settings through a structured value function. Individual networks assign scores to each agent’s available actions, and a central mixing network combines the selected scores into an estimate of the team’s future return.

The central restriction is monotonicity: increasing an individual agent’s score cannot reduce the combined team score when the other inputs and the state remain fixed. This restriction makes independent greedy choices compatible with maximising the learned team value. Each agent can select its highest-scoring action locally, and their combined choices maximise the central estimate. QMIX therefore avoids searching the space of all action combinations during both action selection and the maximisation needed for learning. Unlike the earlier value decomposition network, or VDN, it can combine individual scores through a nonlinear function rather than simply adding them. It also uses global state information to determine how those scores are combined during training.

The experiments examine a small cooperative game and decentralised combat control in StarCraft II. In the small game, VDN learns an initial choice leading to reward 7, whereas QMIX identifies the choice leading to reward 8. In the combat tasks, QMIX generally learns more reliable winning behaviour than independent Q-learning and VDN, with the clearest advantages when the army contains different unit types. Controlled comparisons indicate that access to the central state and nonlinear combination of individual values work together: adding either feature alone does not consistently reproduce the full method’s performance.

These findings establish the usefulness of a particular compromise between expressive central learning and simple local decisions. They do not show that every cooperative task has the structure QMIX requires. Some tasks make an agent’s preferred action depend on what another agent chooses at the same moment; the monotonic factorisation cannot represent all such relationships exactly. Partial observability creates a further restriction when locally indistinguishable situations require different action rankings. QMIX succeeds by expanding the class of team values that can be learned while retaining a strong structural guarantee about how local decisions fit together.

### Ideas worth borrowing

Preserve the decision rule explicitly. QMIX begins with a requirement about decisions: locally chosen greedy actions should also maximise the learned team value. That requirement is more useful than asking only whether a network can fit observed returns. It specifies how the trained system must behave when its components operate separately. Researchers designing modular systems can use the same approach: first identify the relationship that must hold between component decisions and the overall objective, then choose a representation that preserves it. The reusable idea is to make deployment behaviour part of the architecture’s design.

Constrain only the necessary relationship. VDN’s additive structure makes decentralised action selection straightforward, but addition is a stronger restriction than that decision rule requires. QMIX replaces it with a broader family of monotonic combinations. The lesson is to examine whether an existing simplification is doing more work than necessary. When an architecture is restricted for tractability, a weaker condition may preserve the useful guarantee while admitting richer interactions. This applies especially when a system needs efficient optimisation over several components but a simple sum cannot describe their combined effect.

Let context configure the combination. QMIX does not merely append the global state to a fixed aggregation function. It uses state-conditioned hypernetworks to generate the mixing network’s parameters. This permits the relative influence and interaction of agent scores to change with the situation. The pattern is useful wherever components produce scores with stable local meanings but their collective significance depends on context. It also separates constraints on component inputs from constraints on contextual information: the combination remains monotonic in the individual scores without forcing the same behaviour with respect to the state.

Use richer information where it is available. The paper exploits the distinction between what training can observe and what execution can access. Global state helps shape the learning signal, while local decision networks remain compatible with restricted execution. This is a useful design pattern for systems trained in simulation, controlled environments, or other settings with privileged observations. The essential check is architectural: information available only during training must improve the learning procedure without becoming a hidden requirement of the deployed decision rule.

Separate representation from exploration. The small cooperative game uses full exploration to make failures easier to interpret. If a method has access to all relevant situations yet still favours the wrong initial choice, limited representation becomes a more plausible explanation than failure to discover the rewarding branch. This suggests a general experimental practice: use a deliberately simple, thoroughly explored task to test an architectural claim before interpreting results from a difficult environment. Such a test cannot replace realistic evaluation, but it can expose why a restriction matters.

Ablate interacting features together. The paper examines nonlinear mixing, state conditioning, and a state-dependent additive term through distinct variants. These comparisons reveal that an architectural feature can be useful mainly in combination with another feature. A more flexible aggregation rule does not automatically help if it cannot adapt to context; additional context does not automatically help if the representation cannot use it effectively. For researchers, the reusable lesson is to test plausible alternative explanations directly, instead of attributing a full system’s success to whichever component appears most novel.

### How Mova uses it

For Mova, the small transparent language system written in Rust, QMIX offers an architectural idea rather than an established implementation result. No claim is warranted that Mova already contains the paper’s recurrent agent networks, replay-based training, or state-conditioned mixer. The concrete opportunity is to study whether separate components can retain understandable local scores while a shared objective accounts for their combined contribution.

A possible application would involve components that propose compatible parts of a larger decision. Each component would assign scores using the information it is allowed to inspect. A central training procedure could then assess how their selections work together. If improving any component’s score should never make the complete decision worse, a monotonic combination would provide a clear contract between local scoring and global evaluation. Mova could inspect that contract directly: the meaning of the restriction is specific enough to explain and test.

The qualification matters. QMIX assumes a cooperative decision structure with a shared reward, and its guarantee concerns maximising a learned value function. A collection of language-processing components does not automatically satisfy those conditions. Some linguistic decisions depend strongly on one another. A choice that looks better locally may become worse when another component selects a particular interpretation. If those reversals are central to a task, forcing monotonicity could conceal exactly the interaction that needs to be represented.

A useful exploratory version would therefore start with the decision structure, not with the neural architecture. Mova could identify a narrowly defined task with several local choices, an explicit common score, and a reason to expect stable action rankings across combinations. It could compare a simple additive score with a more flexible monotonic score. The purpose would be to determine whether the extra flexibility captures meaningful cooperation while preserving the ability to explain each local selection.

The separation between training information and execution information is also relevant. A training procedure might have access to a complete labelled example or a global assessment that an individual component cannot consult when making its decision. QMIX suggests a disciplined way to use such information: let it improve the shared training objective while keeping each deployed component’s input requirements explicit. This remains a proposed application, not evidence that the paper’s StarCraft results transfer to language processing.

Transparency would require more than exposing the mixer’s weights. The paper cautions that an individual utility is not necessarily an estimate of return on its own. The corresponding lesson for Mova is that a local score should not be presented as an independent measure of correctness merely because it participates in a successful joint system. An inspectable implementation would distinguish the component’s action ranking, the contextual combination rule, and the final shared evaluation. QMIX makes that distinction conceptually useful, even where its full learning machinery is unnecessary.

### The problem and its context

#### Cooperation under restricted information

The paper’s starting point is a common tension in cooperative control. A team’s success depends on joint behaviour, but its members may have to act separately. The authors motivate this setting with applications such as robot swarms and autonomous cars. In these settings, an agent cannot necessarily obtain a complete description of the environment or exchange all relevant information before choosing an action.

Reinforcement learning approaches the problem through experience. Agents take actions, observe consequences, and receive rewards. In the fully cooperative setting studied here, the reward belongs to the team. An action that appears unhelpful in isolation may support another agent, prevent a later failure, or create an opportunity that the team can exploit. Learning must therefore connect individual choices to consequences that emerge collectively.

Decentralised execution addresses practical restrictions on observation and communication. It also changes the computational problem. A central controller that evaluates every combination of actions faces an action space that grows exponentially with the number of agents. Local decision makers can avoid that search by choosing separately, but only if their separate choices remain compatible with the collective objective.

Training can frequently take place under less restrictive conditions. A simulator or laboratory may expose the complete state, all agents’ observations, and their actions. The authors work within centralised training followed by decentralised execution: use this richer information to learn, then deploy policies that depend only on what each agent can observe locally.

The hard question is how to connect those stages. A central learning procedure can estimate the quality of a joint action, but that estimate does not automatically tell each isolated agent what to do. A useful method must both learn about interaction and provide a practical route back to local action selection.

#### Why independent learning is insufficient

Independent Q-learning, or IQL, assigns each agent its own learning problem. Each learner estimates the quality of its actions while treating the rest of the environment as external. This is simple and naturally compatible with decentralised execution.

The difficulty is that the other agents are also changing. An action may work well when teammates behave one way and poorly after they adopt another strategy. Exploration compounds the problem: even if a teammate’s preferred action is stable, its exploratory choices can alter the outcome of an experience.

From an individual learner’s perspective, the relationship between an action and its consequences can therefore move during training. The paper describes this as non-stationarity. Unlike ordinary Q-learning under its usual assumptions, independent learning does not retain a convergence guarantee merely by exploring indefinitely.

The authors nevertheless treat IQL as a serious baseline. Earlier work discussed in the paper found it surprisingly effective in some cooperative, competitive, and mixed settings. The argument is not that independent learning can never work. It is that it provides no explicit shared representation of how agents’ actions interact, and its learning dynamics can be unstable.

Earlier attempts to stabilise independent learning address parts of this problem. As the paper characterises them, they still learn decentralised values and do not exploit additional global state information in the same way as a central value-learning procedure. QMIX instead changes the representation of the team objective.

#### Central learning and its costs

At the other end of the design space, a method can learn a value for the complete state and joint action. Such a representation can express interaction directly. It can distinguish, for instance, between several agents concentrating their attacks on a target and spreading their attacks across different targets.

The cost is that the central function becomes difficult to use as the team grows. Finding the best joint action may require comparing a very large set of combinations. Even if the value function can be learned, an isolated agent cannot generally maximise it using only its own observation.

The paper discusses actor–critic methods as a way to use central information while retaining local policies. COMA trains decentralised actors with a central critic and uses a counterfactual advantage to address credit assignment. Other cited approaches use per-agent critics or central critics in settings involving competition and continuous actions.

The authors’ concerns about these approaches include the sample efficiency of on-policy learning and the difficulty of scaling a fully central critic. These are motivations for their value-based alternative. They are not experimental findings from a direct comparison between QMIX and every actor–critic approach discussed.

Other earlier methods represent coordination through graphs. Coordination graphs decompose a global objective into local terms based on conditional independence. Sparse cooperative Q-learning focuses coordination on states where it is needed. As described in the paper, these methods require dependency structure to be supplied beforehand. QMIX seeks a shared value representation without requiring the designer to specify those dependencies.

The paper also distinguishes methods that communicate during execution. CommNet exchanges information through a central architecture, while BicNet uses bidirectional recurrent communication in an actor–critic setting. Their execution assumptions differ from QMIX’s requirement that each agent choose from its own history.

#### VDN supplies the immediate starting point

VDN offers a middle position. It represents team value as the sum of individual utilities, each computed from an agent’s local history and candidate action. The entire system is trained using the common reward.

Addition makes decentralised greedy action selection easy. If each agent picks the action with the largest individual utility, their combination also maximises the sum. This provides the missing connection between a shared training objective and separate decisions.

The drawback is expressive capacity. A sum allows each agent’s utility to contribute, but it cannot represent every way those contributions might interact. In the version discussed by the authors, VDN also leaves out extra state information that could be available centrally.

QMIX’s contribution is to examine why addition works and retain that reason without retaining addition itself. The key property is agreement between the best joint action and the collection of best local actions. A monotonic function of individual utilities preserves that agreement while allowing more complicated combinations.

This places QMIX within a wider question about [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/): how much structure should a learner impose to make its predictions useful for the decisions that follow? Here, additional structure reduces representational freedom, but it makes a difficult optimisation problem tractable and keeps execution decentralised.

### The method, step by step

#### Define what the team observes and optimises

The authors describe the cooperative task as a decentralised partially observable Markov decision process, abbreviated Dec-POMDP. This formalism distinguishes the true environment state from each agent’s local view and defines a reward shared by the team.

```
G = ⟨S, U, P, r, Z, O, n, γ⟩
```

G denotes the task. S is the set of possible environment states, and U is the individual action set. P specifies how the environment transitions after a joint action. r is the shared reward function. Z is the observation space, while O determines what an agent observes in a state. n is the number of agents, and γ is the discount factor that controls the importance of later rewards.

At a particular time, the environment has a true state, written s. Each agent chooses an action, and the collection of those actions forms a joint action, written u in bold in the paper. The environment then produces a new state according to P and a common reward according to r.

An individual agent does not generally observe s. It receives a local observation and can retain information about previous observations and actions. The paper denotes this local history by τᵃ, where a identifies the agent. A policy specifies how the agent chooses its next action from that history.

The objective is expected discounted return: the future sequence of rewards, with later rewards reduced according to γ.

```
Rₜ = ∑ᵢ₌₀^∞ γⁱ rₜ₊ᵢ
```

Rₜ is the return beginning at time t. The index i counts how far into the future a reward occurs. rₜ₊ᵢ is the shared reward at that future time, and γⁱ gives its discount. This definition makes the training target sensitive to consequences beyond the immediately observed reward.

A joint action-value function estimates that return after the team takes a particular joint action and then follows a policy.

```
Qᵖⁱ(sₜ, uₜ) = E[Rₜ | sₜ, uₜ]
```

Qᵖⁱ is the value associated with joint policy π, written as a superscript here in plain text. sₜ is the state at time t, and uₜ denotes the team’s joint action at that time. E is expectation over subsequent environment transitions and actions under the policy. The conditioning bar means that the initial state and joint action are fixed when evaluating the expected return.

The central learner may inspect the state and every local history. An executing agent may inspect only its own history. Maintaining that distinction is essential: a successful central value estimate is useful only if the resulting policy respects the intended information restriction.

#### Start from the additive baseline

VDN expresses the team estimate through a sum.

```
Q_tot(τ, u) = ∑ᵢ₌₁ⁿ Qᵢ(τⁱ, uⁱ; θⁱ)
```

Q_tot is the estimated value of the team’s joint action. τ collects all agents’ local histories, and u collects their actions. Qᵢ is the individual utility for agent i, evaluated using its history τⁱ and action uⁱ. θⁱ denotes the parameters of that utility network. The summation includes every agent up to n.

The individual terms need careful interpretation. They are trained because their combination should match a team return. An individual term need not equal the expected reward attributable to that agent, and it need not be a separately valid prediction of future team reward. Its immediate operational role is to rank that agent’s actions.

This distinction matters for both explanation and implementation. If the combined prediction is accurate, it does not follow that every individual score has a unique causal meaning. The decomposition is a useful representation for learning and action selection, not an automatic solution to explaining each agent’s contribution.

#### Require agreement between local and joint choices

QMIX preserves the decision property that makes VDN practical. The joint maximiser should be obtainable by maximising each individual utility.

```
argmax_u Q_tot(τ, u) = (argmax_u¹ Q₁(τ¹, u¹), …, argmax_uⁿ Qₙ(τⁿ, uⁿ))
```

argmax means the input receiving the highest value. On the left, the input is the full joint action u. On the right, each maximisation concerns one agent’s action, using only that agent’s history. The resulting collection of actions is a maximiser of the combined value.

Operationally, this means that the central estimate and the local action selectors agree about greedy behaviour. It also makes the maximisation inside a Q-learning update manageable. The learner can obtain the relevant next joint action through local maximisations instead of enumerating every joint possibility.

QMIX enforces a sufficient condition for that agreement.

```
∂Q_tot / ∂Qₐ ≥ 0, for every agent a
```

The partial derivative describes how the combined value changes when one individual utility Qₐ increases while the other inputs remain fixed. Requiring it to be non-negative makes Q_tot monotonic in each utility. A better local score cannot push the combined prediction downward.

The condition is sufficient, rather than necessary. There are functions whose best joint action could agree with local choices without being monotonic everywhere. QMIX accepts the stronger restriction because it can be enforced directly through the network’s construction.

The intuition is straightforward. Hold every other agent’s selected score fixed. Replacing one agent’s choice with an action that has a larger local score cannot lower the central value. Repeating this reasoning across agents leads to a collection of locally maximal scores that also maximises the mixer’s output.

#### Build local recurrent utility networks

Each agent has a network that produces its utility estimates. In the partially observable combat setting, this network is recurrent. It receives the current local observation together with the previous action, and its internal state summarises earlier information.

The recurrence is important because a current observation need not contain everything relevant to the next choice. An enemy can leave sight, a previous movement can affect positioning, and the history can help distinguish situations that look similar at the present instant. The network cannot recover information that was never available, but it can retain useful information from earlier observations.

In the StarCraft experiments, the recurrent core is a GRU with a 64-dimensional hidden state. Fully connected layers appear before and after that core. The network produces values for the actions available to the agent.

The authors share network parameters across agents to accelerate learning. They add a one-hot agent identifier to the observations so that a shared network can still distinguish agents. Parameter sharing therefore does not require every agent to behave identically in every situation.

During training, each agent explores independently with an ε-greedy rule. Usually it selects a high-valued action, but with probability controlled by ε it explores. During evaluation, action selection is greedy and decentralised.

#### Combine the selected utilities monotonically

The mixing network receives the utilities corresponding to the agents’ selected actions and produces the combined estimate Q_tot. It is a feed-forward network, distinct from the recurrent networks used by the individual agents.

Its weights are constrained to be non-negative. Together with the chosen activation structure, this preserves monotonicity from each utility input to the final output. Biases are not subject to the same sign restriction because shifting an output does not reverse how it responds to an input.

For the combat experiments, the mixer has a hidden layer containing 32 units and uses an ELU activation. The hidden layer enables nonlinear combinations of the local utilities. This is the architectural departure from VDN’s fixed addition.

Nonlinear mixing allows the effect of one utility to depend on the values supplied by the other agents, provided that increasing a utility never reduces the output. This gives the architecture room to express interactions while maintaining stable directions of preference.

The paper relates this construction to work on neural networks with functional restrictions. Its representational argument uses the ability of a suitable monotonic network to approximate monotonic functions. That argument does not remove the monotonicity restriction; it describes the flexibility available within it.

#### Let the state generate the mixer’s parameters

The mixing weights are not fixed parameters used unchanged across all states. Separate hypernetworks take the global state as input and generate the parameters used by the mixer in that state.

For a mixing layer’s weights, the corresponding hypernetwork uses a linear transformation followed by an absolute-value operation. The absolute value makes the generated weights non-negative. Its vector output is reshaped into the matrix required by the mixing layer.

Biases are also generated from the state, but without a non-negativity requirement. The hypernetwork for the final bias uses a hidden layer and a ReLU activation. In the combat architecture, that hidden layer contains 32 units.

This design answers an important question: why not feed the state directly into the monotonic mixer alongside the utilities? The required restriction concerns the utilities, not the state. If state features passed through the same constrained route, the architecture could impose unwanted monotonic relationships between those features and the value estimate.

Generating parameters from the state avoids that unnecessary restriction. A state change can alter the weights and biases in a flexible way, while the resulting mixer remains monotonic with respect to its utility inputs. Context determines the combination rule; the combination rule retains the property needed for decentralised greedy choices.

The state is therefore influential during training without becoming an input to an individual execution policy. The central system uses it to assess joint actions and shape gradients. Each agent’s deployed network still computes its action preferences from local information.

From local observations to cooperative learning The steps in order.

#### Train with replay and a target network

QMIX follows the general learning pattern of deep Q-learning. Experiences are stored, sampled later, and used to reduce the mismatch between current predictions and targets built from observed rewards and estimated future value.

For an ordinary deep Q-network, the paper writes the target as follows.

```
yᴰᑫᴺ = r + γ max_u′ Q(s′, u′; θ⁻)
```

yᴰᑫᴺ is the training target. r is the observed immediate reward, s′ is the next state, and u′ is a candidate next action. Q is the value network, while θ⁻ denotes the parameters of a separate target network. γ discounts the estimated value of the next state.

The target network is periodically copied from the network being trained and held fixed between updates. This separates the moving prediction from the parameters used to construct its immediate target.

The corresponding squared-error objective is:

```
L(θ) = ∑ᵢ₌₁ᵇ (yᵢᴰᑫᴺ − Q(sᵢ, uᵢ; θ))²
```

L is the loss, θ contains the trainable parameters, and b is the sampled batch size. The index i identifies an experience in that batch. sᵢ and uᵢ are its state and action, while yᵢᴰᑫᴺ is its target. Squaring the difference penalises disagreement between predicted and target values.

QMIX applies the same principle to the combined team estimate.

```
yᵗᵒᵗ = r + γ max_u′ Q_tot(τ′, u′, s′; θ⁻)
```

yᵗᵒᵗ is the team-value target. τ′ collects the next local histories, u′ is a candidate next joint action, and s′ is the next global state. Q_tot is evaluated using target parameters θ⁻. The reward r is shared, so the target trains the combination as a team prediction.

Because of monotonicity, the maximisation can be carried out through each agent’s individual utility maximisation. For the dependence on agent count, this replaces a potentially exponential joint search with work that grows linearly.

The complete architecture is optimised through a shared loss.

```
L(θ) = ∑ᵢ₌₁ᵇ (yᵢᵗᵒᵗ − Q_tot(τᵢ, uᵢ, sᵢ; θ))²
```

Here θ includes the trainable parameters of the agent networks, mixer, and hypernetworks. Each sampled item supplies local histories τᵢ, a joint action uᵢ, a global state sᵢ, and a target yᵢᵗᵒᵗ. Gradients pass through the combination into the local utility networks, so the components learn together from the shared reward.

#### Use full episodes for recurrent training

The StarCraft replay buffer retains the most recent 5000 episodes. Training samples 32 episodes uniformly and unrolls each selected episode in full. This preserves the sequence needed to train recurrent internal states, instead of treating every observation as unrelated to its preceding history.

The discount factor is 0.99. Target networks are refreshed after 200 training episodes. Optimisation uses RMSprop with learning rate 5 × 10⁻⁴; the RMSprop setting α is 0.99, and the authors use neither momentum nor weight decay.

Exploration starts with ε at 1.0 and reduces it linearly to 0.05 during 50k timesteps. It then remains at that value for the rest of training. These are training settings, not evaluation settings: test episodes use greedy action selection.

The small cooperative game uses a simpler architecture because its purpose is to isolate representation. Agent networks are feed-forward DQNs with a hidden layer of 64 units and ReLU activation. The mixing network has 8 units. Each agent receives the complete state, and the previous action is not included as an input.

In that game, the replay buffer holds 500 episodes, the sampled batch size is 32, and the target network is updated after 100 episodes. The discount factor remains 0.99, and the RMSprop learning rate is 5 × 10⁻⁴. These differences matter because the simple game is a controlled representational test, not a smaller copy of the partially observable combat task.

#### Understand the representation boundary

The paper’s expressiveness argument has a clear scope. In a fully observable setting, QMIX can represent a joint value that decomposes into a monotonic nonlinear function of appropriately ordered individual utilities. Agent networks supply the local ordering, and the mixer supplies the monotonic combination.

The ordering requirement is central. If an agent’s action is ranked above another action locally, the joint function must not require the opposite ordering when the other agents’ actions are held fixed. A single local ranking cannot simultaneously support contradictory requirements.

Partial observability adds another obstacle. An agent may receive the same available history in situations where the correct action ordering differs. A global-state-conditioned mixer can recognise those situations centrally, but monotonicity prevents it from reversing an ordering supplied by the local utility network.

QMIX consequently offers greater flexibility than an additive decomposition without offering unrestricted joint representation. Understanding that boundary is necessary to interpret both its successful experiments and the kinds of tasks on which the same structure could fail.

### Experiments and results

#### A small game tests the cost of addition

The first experiment is deliberately simple. It is a cooperative game with two agents and a decision followed by a matrix game. At the initial decision, Agent 1 selects which later game will be played. Agent 2’s action at that point has no effect.

The next decision involves both agents. They choose actions and receive a shared reward determined by the selected payoff matrix. The test asks whether a learned joint value can correctly evaluate the consequences of the initial branch.

The authors use full exploration, setting ε to 1. This is important because a failed initial choice should not be explained simply by never discovering an alternative. Both branches and their outcomes are available to learning. The experiment is intended to expose the representational consequences of the decomposition.

The main discussion reports training over 5000 episodes, while the supplementary training description gives a duration of 10k timesteps. The experiment has two successive decisions, and the paper presents these as descriptions of its training setup. The supplementary results describe repeated runs through a loss plot with a 95% confidence interval across 30 independent runs.

VDN settles on the initial action associated with reward 7. QMIX recovers the better initial choice and receives reward 8. The difference is not presented as a gain from hidden state information in this experiment: each agent receives the complete state. Its purpose is to show how the form of the learned value function can alter the decision selected earlier in a sequence.

Two-step cooperative game, reward from the learned strategy QMIX selects the optimal initial branch, while VDN selects the suboptimal branch.

**The numbers**

| System or setting | reward |
| --- | --- |
| VDN | 7 |
| QMIX (this paper) | 8 |

The result illustrates a broader issue in value learning. An approximation error in a later state can affect the apparent quality of an earlier choice. A method need not make an obvious mistake at the final action to learn the wrong overall strategy; a restrictive representation can distort the values that guide the preceding decision.

The paper also analyses learned values and losses for additional variants in its supplementary material. The central numeric conclusion stated in the main discussion is the contrast between the rewards of the strategies learned by VDN and QMIX. The StarCraft results provide the more demanding test of whether the architectural distinction matters beyond this constructed game.

#### Combat tasks require local control of a team

The main experiments use the StarCraft II Learning Environment, SC2LE. Each learning agent controls an allied unit. An opposing army is controlled by the game’s built-in AI, with difficulty set to medium.

The task is combat micromanagement instead of the complete strategy game. Agents choose movements and attacks for an existing army. The two sides have matching army compositions and are placed symmetrically, while placement within each group changes between episodes. At the start, the enemy is ordered to attack the allied side.

The homogeneous Marine scenarios are called 3m, 5m, and 8m. Their allied armies contain 3, 5, and 8 Marines respectively, with a matching enemy army in each case.

The heterogeneous scenarios introduce different combat roles. The 2s_3z map contains 2 Stalkers and 3 Zealots on each side. The 3s_5z map uses 3 Stalkers with 5 Zealots. The 1c_3s_5z map adds 1 Colossus to an army containing 3 Stalkers and 5 Zealots.

These compositions test more than coordination among interchangeable units. Protecting a vulnerable unit, putting another unit in front, and exploiting a favourable arrangement can matter alongside simply concentrating attacks.

The action set includes directional movement, attacking a specified enemy, stopping, and doing nothing. Movement is restricted to the cardinal directions. An attack is available only when its target is within shooting range.

The authors deliberately remove helpful built-in behaviours. Units do not automatically retaliate when idle or attack merely because an enemy is nearby. They also cannot use the game’s attack-move macro-action. These restrictions make the learned policy responsible for acquiring useful combat behaviour.

#### Observation and reward define the learning problem

An agent sees units only within its sight range and only while those units are alive. It cannot directly tell whether an unobserved unit has died or moved out of sight. This creates genuine information limits rather than merely withholding a redundant copy of the state.

For visible allied and enemy units, local inputs include distance, relative position, and, on the heterogeneous maps, unit type. The global state covers units across the map and includes coordinates relative to the map centre, health, shields, cooldown, and the allied agents’ previous actions.

The distinction matters because the central learner receives information that the local utility networks do not. It can assess team situations using combat status and map-wide information while shaping policies that must later act from restricted observations.

All input features are scaled by their maximum values. Sight range is set to 9 and shooting range to 6 for every unit type. These common settings are part of the experimental environment and help define which interactions agents can observe or act upon.

Rewards are shared. Damage dealt to enemy units contributes to the reward at each step. Defeating an individual opponent adds a bonus of 10, and eliminating the enemy army adds 200. The reward scheme is normalised so that an episode’s maximum cumulative reward is 20.

Training therefore receives more guidance than a final win-or-loss signal alone. Intermediate damage and elimination rewards can support learning before reliable victories emerge. The reported evaluation metric, however, is whether the team wins the battle within the time limit.

#### Evaluation measures greedy decentralised wins

Training is paused after every 100 episodes. At each pause, the method plays 20 independent evaluation episodes. Agents choose greedily from their local utilities, without the exploratory action rule used in training.

The test win rate is the percentage of those episodes in which the allied team eliminates every enemy before time expires. The learning curves average this metric across 20 runs and show 95% confidence intervals.

Time limits vary by map. The limit is 60 timesteps for 3m and 5m, and 120 for 8m and 2s_3z. It is 150 for 3s_5z and 200 for 1c_3s_5z. If both armies still have surviving units at the limit, the episode counts as a loss.

These conditions make the metric stricter than simply achieving positive damage or surviving. A policy must complete the task within its allotted horizon. The varying horizons also mean that results belong to their specific scenarios rather than to an undifferentiated combat benchmark.

The main learned baselines are IQL and VDN. The authors additionally compare against a non-learning heuristic with complete observability. That heuristic attacks the nearest enemy and keeps attacking the chosen target until it dies, then selects another nearby opponent.

The heuristic is useful as a behavioural reference, but it has a different information advantage. Its performance indicates what a simple targeting rule can achieve; it does not represent a policy learned under the same local observation restrictions.

#### What the main comparisons establish

IQL does not learn a reliably winning policy across the tested scenarios. The authors report unstable learning and connect it to the changing behaviour of other agents. Its results illustrate the practical difficulty of learning separate action values in a shared, evolving environment.

VDN improves on IQL across the scenarios. The shared objective supports basic coordinated behaviour, including focusing fire. On the 5m and 8m maps, this is sufficient to win most encounters. The 8m scenario is also favourable to the simple heuristic, helping explain why VDN and QMIX perform similarly there.

The smaller 3m battle requires more precise control. VDN does not become a consistently successful policy on that map. This is a useful reminder that more units do not automatically make every aspect of a task harder: the strategic demands of a particular composition and arrangement also matter.

QMIX is the strongest overall method in the main comparisons, with especially clear advantages in heterogeneous armies. The authors identify the largest gaps on 3s_5z and 1c_3s_5z. For those maps, the simple heuristic outperforms VDN.

The paper’s prose does not give exact final win-rate percentages for these learned-method comparisons. Their appropriate interpretation is therefore the reported ordering, consistency, and shape of learning, rather than a fabricated numeric margin. The explicit reward comparison in the small game supports the chart above; the combat discussion supports a qualitative account of the larger-scale advantage.

#### Learned behaviour makes the differences concrete

The authors inspect strategies to understand what higher win rates mean operationally. On 8m, both VDN and QMIX learn to arrange their units in a semicircle before firing on the approaching enemy. This allows attacks from the sides instead of concentrating every unit directly in front.

That observation limits any claim that VDN learns only trivial behaviour. It can discover useful positioning as well as coordinated targeting. The stronger representational restriction does not prevent every sophisticated strategy.

The heterogeneous maps reveal a more substantial difference. On 2s_3z, VDN moves left and attacks once enemies enter range, without effectively arranging favourable unit match-ups. QMIX positions the Stalkers so enemy Zealots cannot reach them directly.

Its allied Zealots first obstruct and then attack the enemy Zealots while the Stalkers fire from safer positions. After dealing with those threats, the team turns to the enemy Stalkers. The authors observe a similar pattern on 3s_5z.

These descriptions connect the central result to complementary roles. Some allied units create protection, allowing others to contribute more safely. The importance of a unit’s action depends on the team configuration, making a context-sensitive combination of utilities a plausible advantage.

The authors also explain an early rise and fall in IQL and VDN performance. Both initially learn to attack a visible enemy, a simple behaviour that can work reasonably well. Further exploration introduces movement and disrupts that strategy. VDN subsequently learns to combine movement and firing, while IQL does not recover the initial successful behaviour.

### What the ablations show

#### Remove state conditioning while preserving nonlinear mixing

QMIX-NS keeps a monotonic mixing network but removes the hypernetworks that condition its parameters on the global state. Its mixing weights and biases are learned directly. Absolute values still enforce non-negative weights.

This comparison asks whether nonlinear aggregation alone explains QMIX’s advantage. The answer is qualified. On the heterogeneous scenarios discussed in the ablation analysis, QMIX-NS is roughly comparable to VDN or slightly better. It does not reproduce the full system’s strong performance.

The result suggests that a more flexible fixed combination is insufficient for the more demanding interactions in these tasks. A nonlinear mixer can express relationships that addition cannot, but those relationships also need to adapt to the situation.

This is an interaction between architectural capacity and available context. Removing state conditioning does not make the network additive, and it does not remove the shared training objective. It specifically tests whether the combination rule benefits from changing with the central state.

The comparison therefore supports a narrower conclusion than saying that state information is universally necessary. It shows that, in these experiments, nonlinear mixing without that information is not consistently enough to obtain the best performance.

#### Keep state conditioning but make the mixer linear

QMIX-Lin removes the mixer’s hidden layer. The resulting combination can be understood as a state-dependent weighted sum of the individual utilities. It retains central state conditioning but loses the hidden nonlinear transformation.

This variant tests whether the main benefit is simply giving different agents different weights in different situations. Such weights are already more flexible than VDN’s fixed sum. They can change how much a utility contributes without introducing the full nonlinear interaction.

On a homogeneous map, the authors find that nonlinear mixing is not always required. A linear factorisation can be sufficient for the coordination demands there. This observation is important because it prevents an overly broad interpretation of the new architecture.

The hidden layer also does not appear to slow learning in the comparison discussed by the authors. The full method can remain competitive when its additional capacity is unnecessary. That is an empirical result about these tasks, not a guarantee that added capacity will always be harmless.

On heterogeneous maps, the strongest behaviour requires both state information and nonlinear factorisation. A state-dependent weighted sum does not consistently recover what the full mixer achieves. The relevant interaction is richer than changing the independent importance assigned to each agent.

#### Add a state-dependent term to VDN

VDN-S is another way to expose the learner to global state. It keeps the additive combination of agent utilities and adds a state-dependent term produced by a network.

That network has a hidden layer containing 32 units and uses a ReLU activation. Its design matches the type of network used to generate QMIX’s final bias, making it a meaningful test of a simpler route for including state information.

The distinction is structural. A state-dependent additive term can alter the team estimate for a situation, but it does not provide the same state-dependent reshaping of how utilities interact. It gives the central estimate additional context without turning the utility combination into the full QMIX mixer.

The authors use comparisons involving VDN-S and QMIX-Lin to argue that effective use of state information requires more than merely making it available somewhere in the architecture. The manner in which state enters the value representation matters.

The behavioural analysis reinforces this point. VDN-S does not learn the protective arrangement that keeps Stalkers away from enemy Zealots. Instead, it positions units near their starting area and attacks as enemies approach.

That observation does not prove that a particular hidden computation causes the winning behaviour. It does show that including a state-dependent term alone is insufficient to produce the same observed strategy in the reported experiments.

#### Interpret the ablations jointly

Across the ablations, QMIX is either the strongest method or competitive with the strongest alternative. The most informative finding is not that every removed feature lowers performance on every map. It is that different tasks expose different representational requirements.

Homogeneous teams can sometimes be handled adequately by simpler combinations. Heterogeneous teams create interactions where state-conditioned nonlinear mixing provides a clearer advantage. This aligns with the learned-policy descriptions, where different unit types take complementary protective and offensive roles.

The evidence supports the complete design more strongly than any single isolated component. A nonlinear mixer without state conditioning is limited. State conditioning through a simpler representation is also limited. Their combination produces the most reliable performance across the tasks studied.

There are limits to what these controls isolate. Removing hypernetworks changes both how state is supplied and how mixing parameters are produced. Removing a hidden layer changes the functional family and the network structure. The comparisons are well targeted at the paper’s design questions, but they are not a complete decomposition of every possible optimisation effect.

Similarly, the observed strategies are explanatory examples rather than quantitative measurements of every behaviour. They help a reader understand the win-rate differences, but they do not establish that protection, formation, or targeting is the sole cause of those differences.

The small game complements these ablations by isolating representation under full exploration. The combat tasks then show that the same representational choices can matter amid partial observability, recurrence, exploration, and heterogeneous roles. Together, the analyses make a stronger case than either a constructed example or a benchmark result would provide alone.

### Limitations

#### The authors identify a structural restriction

QMIX cannot express every joint action-value function. Its mixer must preserve the ordering induced by individual utilities. If the team value requires an agent to reverse its preferred action depending on another agent’s simultaneous choice, a fixed local ranking may be incompatible with the required joint values.

This is an explicit limitation in the paper. The authors provide a representational discussion and distinguish monotonic from non-monotonic payoff structures. Their claim is an expansion beyond VDN, not unrestricted representation of cooperation.

A useful way to understand the restriction is to separate interaction from preference reversal. QMIX can represent nonlinear interactions: the size of an agent’s contribution can depend on the other utilities and on the state. What it cannot freely represent is a reversal in which increasing that agent’s locally preferred utility should reduce the combined value.

This matters because the monotonicity condition is also the source of tractability. Removing it would remove the simple guarantee that individual greedy decisions maximise the central estimate. The limitation and the benefit arise from the same design choice.

The guarantee concerns the learned approximation. A team can maximise Q_tot exactly through local greedy actions while Q_tot remains an imperfect account of the environment. Agreement between local and central decisions should therefore not be confused with a guarantee of optimal real-world behaviour.

#### Partial observability can make local ordering impossible

The appendix explicitly notes a further restriction under partial observability. An agent’s local history may fail to distinguish states that require different action rankings. Even an expressive utility network cannot base its ranking on information absent from its input.

State conditioning in the mixer does not fully repair this problem. The central component may know which state has occurred, but the monotonic relationship prevents it from reversing an incorrect local ordering. The agent still has to choose without that central information during execution.

Recurrent networks can help when past observations contain useful evidence. They do not eliminate ambiguity inherent in the observation process. The representational argument is consequently strongest in the fully observable case and more conditional in a Dec-POMDP.

This is also why privileged training information should not be treated as equivalent to privileged execution information. The global state improves the learning procedure, but it does not grant the deployed agent the ability to distinguish every globally different situation.

#### The empirical scope is specific

A careful reading must keep the benchmark boundaries visible. The combat experiments concern micromanagement of existing armies, not all aspects of StarCraft II. They use matching opposing compositions, particular maps, a built-in opponent, and the specified observation and action restrictions.

The enemy AI’s difficulty is medium. The study does not establish robustness against every possible opponent strategy or against opponents that adapt during evaluation. The changing behaviour that complicates learning comes from the allied learners; the opposing controller follows the benchmark setup.

Reward shaping is another scope condition. Agents receive feedback for damage and eliminations as well as for complete victory. The results do not establish that the same learning speed or final performance would hold if the only feedback were an episode-ending success signal.

The benchmark’s sight and shooting ranges, disabled automatic behaviours, and movement restrictions also shape the task. They make the learning problem explicit and controlled, but they should accompany any attempt to transfer the result to a different control interface.

The authors identify larger teams and greater unit diversity as future experimental directions. They also propose more coordinated exploration as a longer-term complement to QMIX. The paper therefore does not claim that independent ε-greedy exploration resolves the challenges of many-agent learning.

#### The comparisons answer a bounded question

The principal empirical comparisons are with independent learning, additive value decomposition, and variants of the proposed mixer. Earlier actor–critic and communication-based methods provide context, but the paper does not establish a measured advantage over all of them.

Likewise, the centralised heuristic is a reference point with full observability. It is useful for showing whether a learned method exceeds a straightforward targeting strategy, but its information access differs from that of the decentralised agents.

The reported combat learning curves include repeated runs and confidence intervals, supporting a more reliable comparison than a single successful training run. Exact final learned-method win-rate percentages are not stated in the prose, so numerical claims about those margins require caution.

The full-exploration game isolates an important failure mode of additive representation, but it is deliberately constructed and small. It demonstrates that representation can change the learned strategy even when exploration covers the task. It does not quantify how frequently that failure mode occurs across arbitrary cooperative environments.

Finally, individual utilities are not automatically interpretable as independent contributions to reward. The authors explicitly distinguish utility functions from stand-alone return estimates. A transparent use of QMIX should preserve that distinction rather than reading causal credit directly from a component score.

### What came after

No subsequent citing work is identified for discussion here, so there is no supported account of named successors or their results. The paper itself sets out the next questions: evaluation with larger and more varied teams, and exploration procedures that coordinate learning agents more effectively.

Its architectural distinction makes those questions precise. Increasing representational flexibility, supplying richer central context, and improving exploration address different difficulties. QMIX studies the first two through a monotonic value factorisation while using independent exploratory choices.

The open direction is therefore to retain efficient local execution while examining which remaining bottleneck dominates a new task. A failure caused by unseen coordinated actions is different from a failure caused by an incompatible value factorisation or an unresolvable local observation. The paper’s lasting conceptual contribution is to separate those issues clearly enough that further experiments can investigate them.

## Cite

Cite as Tabish Rashid, Mikayel Samvelyan, Christian Schroeder de Witt, Gregory Farquhar, Jakob Foerster and Shimon Whiteson. 2018. QMIX: Monotonic Value Function Factorisation for Deep Multi-Agent Reinforcement Learning. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1803.11485](https://doi.org/10.48550/arxiv.1803.11485) · [arXiv 1803.11485](https://arxiv.org/abs/1803.11485)

```bibtex
@misc{rashid2018qmix,
  title = {{QMIX: Monotonic Value Function Factorisation for Deep Multi-Agent Reinforcement Learning}},
  author = {Tabish Rashid, Mikayel Samvelyan, Christian Schroeder {de Witt}, Gregory Farquhar, Jakob Foerster and Shimon Whiteson},
  year = {2018},
  doi = {10.48550/arxiv.1803.11485},
  eprint = {1803.11485},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1803.11485}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
