QMIX
Definition
QMIX
A CTDE value-based method for common-reward games that combines individual utilities into the joint action-value with a learned monotonic mixing function: The mixing parameters come from a hypernetwork fed with centralised information: .
Intuition
Linearity was never the point
VDN adds utilities so that every agent’s greedy action adds up to the best joint action. But that only needs one thing: making any agent’s utility bigger should never make the team value smaller. QMIX keeps that guarantee and drops the sum, so the team value can be any increasing function of the utilities, and the function can change with the state.
Mathematical Formulation
Target and loss, from a shared buffer of :
- : the mixing network; : a network that outputs ‘s weights from (typically the global state)
- taking each agent’s max inside is valid only because is monotonic
- covers the utility networks and the hypernetwork, trained together
Monotonicity is enforced by making the mixing weights non-negative (in the original design the hypernetwork’s weight outputs pass through an absolute value). Strictly, non-negative weights give , the form the original QMIX paper uses; the AGAI course writes . Either way raising a utility never lowers the joint value, which is all IGM needs.
utilities: h_1 → Q(h_1,·;θ_1) ... h_n → Q(h_n,·;θ_n)
↘ ↙
z → f_hyper(·;θ_hyper) ──θ_mix──► f_mix(·;θ_mix) → Q(h, z, a; θ)
Key Properties / Variants
- Satisfies the IGM property: decentralised greedy execution on each agent’s utility.
- Generalises VDN: with the sum as mixing function it is VDN, so it can represent everything VDN can and more.
- Utilities need not look like returns: in the linear game (A,A) = 1, (A,B) = (B,A) = 5, (B,B) = 9, QMIX’s utilities are about (0.19, 0.96) and (−0.21, 0.68) for (A, B), yet the mix reproduces all four values and both agents greedily pick B.
- Uses centralised information only through the hypernetwork, during training.
- Limitation (MARL book): a monotonic mix cannot represent games where one agent’s best action flips with the other’s choice (for instance a matching game with two optimal joint actions). Methods such as QTRAN go beyond monotonic decomposition.
Connections
- Special case: Value Decomposition Networks (VDN)
- Criterion: Individual-Global-Max Property
- Base algorithm: Deep Q-Network (DQN)
- Training mode: Centralised Training with Decentralised Execution
- Problem addressed: Multi-Agent Credit Assignment