Smooth Losses for Factorized Multi-Agent Return Distributions

Teams of agents that must act without talking to each other, such as StarCraft units that each see only their surroundings, are usually trained with a single shared "team value." That value is split into per-agent pieces so each agent can pick its own best action. A family of methods called DFAC does better on the hardest StarCraft maps by predicting the whole spread of possible team outcomes rather than only the average. It splits that spread into a mean, which is factorized the usual way, and a "shape," the remaining spread, which is combined across agents more loosely. A separate line of single-agent work shows that distributional losses help mostly by making the critic easier to optimize, meaning bounded gradients and well-conditioned curvature. Crucially, that benefit has only been shown for categorical (histogram plus cross-entropy) losses, and DFAC uses quantile regression, whose loss has a sharp kink at zero error.

This note proposes keeping DFAC's cheap way of combining agent distributions but training it with a smooth cross-entropy loss. We first convert the combined team quantiles into a differentiable histogram, then score that histogram against a projected target. The claim is testable. If DFAC's gains come partly from optimization geometry, then smoothing the shape loss should lower the critic's curvature ill-conditioning and raise win rates on the hardest maps. If it does neither, the gains are about the representation itself. Either outcome answers a question the literature leaves open.

Core Claim

The mean-shape factorization in DFAC Framework: Factorizing the Value Function via Quantile Mixture for Multi-Agent Distributional Q-Learning and A Unified Framework for Factorizing Distributional Value Functions for Multi-Agent Reinforcement Learning combines agents by adding their quantile vectors. This is a "quantile mixture," costing time linear in agents times quantiles. It trains the result with the quantile Huber loss. The single-agent smoothing results say nothing about this setting. Interpreting Distributional Reinforcement Learning: A Regularization Perspective and Interpreting Categorical Distributional Reinforcement Learning: An Implicit Risk-Sensitive Regularization Effect prove that the categorical loss is Lipschitz and smooth, which yields uniform stability and an improvement in sample complexity from $O(1/\tau^4)$ to $O(1/\tau^2)$, but only for categorical losses. XQC shows empirically that cross-entropy, together with batch and weight normalization, shrinks the critic Hessian's condition number by orders of magnitude, again only for single-agent monolithic critics.

We claim that the two properties can be had at once. The joint quantile mixture can be read as a set of particles and turned into a histogram with a fixed smoothing kernel. The histogram's bin probabilities are then smooth functions of the quantile locations, and cross-entropy against a categorical Bellman target gives bounded gradients with no kink. The mixing stays linear. The IGM guarantee is preserved, because IGM is the property that each agent's greedy action jointly forms the team's greedy action, and it is enforced on the mean exactly as in DFAC.

Why the obvious fix does not work

The natural objection is to make each agent's distribution categorical and combine them categorically. Summing categorical returns requires convolution. Convolution treats agents' returns as independent, which cooperating agents' returns are not. The quantile mixture instead corresponds to adding perfectly co-moving returns, and that is the structural assumption DFAC relies on. Our proposal changes only how the already-mixed distribution is scored, not how it is combined. This distinguishes it from categorical factorization and from DFAC itself.

Method

Let $q_{tot}(s,\mathbf{a}) \in \mathbb{R}^N$ be the $N$ joint quantiles produced by the DFAC mixer, equal to the factorized mean plus the mixed shape. Let $z_1<\dots<z_M$ be fixed bin centers. The predicted bin probabilities are

$$p_m = \frac{1}{N}\sum_{i=1}^{N} \frac{\exp(-(z_m - q_{tot,i})^2/2h^2)}{\sum_{m'}\exp(-(z_{m'} - q_{tot,i})^2/2h^2)},$$

where $h$ is a kernel bandwidth set relative to the bin width. The target histogram $y$ is formed the same way from the target network's Bellman-shifted quantiles $r + \gamma q^-_{tot}$. The loss is $-\sum_m y_m \log p_m$. When $h$ is comparable to the bin width, each particle's gradient is bounded and smooth. As $h$ shrinks, the loss approaches a hard histogram, and as $h$ grows the shape information washes out. The bandwidth therefore controls the trade-off we intend to study.

The particles themselves remain ordered through DFAC's architecture, so the method adds no crossing-repair machinery. We will also test adding XQC's batch and weight normalization to the agent and mixer networks. This separates what the loss contributes from what the architecture contributes.

Research Program

We build three things on top of the PyMARL-based DMIX, DDN and DPLEX implementations in pymarl_HDA.

The first is the loss described above, implemented as a drop-in replacement for the quantile Huber loss.

The second is curvature diagnostics for the joint critic, meaning agent networks plus mixer. We estimate the top and bottom Hessian eigenvalues with Lanczos iterations at fixed checkpoints, following XQC's condition-number measurement. We also report the fraction of negative eigenvalues, because XQC notes that its positive-definiteness assumption requires weight decay that practice omits. We further log per-parameter gradient norms and effective learning rate.

The third is a small theoretical result. The kernel-histogram cross-entropy composed with the linear quantile mixture inherits the Lipschitz and smoothness constants of the categorical loss, with the constants scaled by $1/h$. That extends the uniform-stability argument of the regularization-perspective papers to DFAC's parameterization. The $1/h$ scaling comes from differentiating the Gaussian kernel with respect to particle location.

Baselines

The do-nothing reference is scalar QMIX, trained exactly as in the SMAC codebase. DFAC reports QMIX at a 0% win rate on 6h_vs_8z. The StarCraft Multi-Agent Challenge reports most baselines at 0% on corridor.

The strongest existing methods are the DFAC variants with quantile Huber loss. DDN reports an 83.92% median win rate on 6h_vs_8z (DFAC Framework), and DFAC variants range from 43% to 83% there (Unified Framework). On MMM2, Risk Perspective Exploration reports static DMIX at 4.4% and risk-scheduled DMIX at 51.8%. Among published DFAC-family methods, these are the best reported numbers on these maps. We rerun all of them in our own code with the same environment steps, network sizes, evaluation protocol and seeds, rather than copying numbers across codebases. Every method, including ours, gets the same hyperparameter search budget over learning rate. Our method's bandwidth counts inside that same budget rather than on top of it. On 6h_vs_8z, beating DDN means a higher median win rate across at least ten seeds, with a bootstrap confidence interval on the difference that excludes zero. On MMM2, it means beating static DMIX, and ideally matching risk-scheduled DMIX without any schedule. No reported condition-number result was found on Lacuna for any multi-agent value factorization method, so we establish those references ourselves.

Three ablations isolate the key ingredient. The first applies the same kernel-histogram cross-entropy to a scalar QMIX mean with no shape, producing a two-hot-style histogram around a single value. This asks whether a smooth loss alone, without a learned shape, is enough. The second applies Sinkhorn divergence to the mixed particles, as in Distributional Reinforcement Learning with Regularized Wasserstein Loss. This gives an alternative smooth particle loss. The third crosses each loss with and without batch and weight normalization.

Why not just…?

Why not just add batch and weight normalization to DMIX and keep the quantile loss? XQC reports that normalization improves conditioning but does not bound gradients by itself, and that the cross-entropy loss is needed alongside it. That result is single-agent, though, and a mixing network may behave differently. The normalization-only arm of our factorial design answers this directly. If DMIX with normalization matches our method's win rates and condition numbers, the loss contributes nothing, and we would report that.

Why not just use a smooth scalar loss on QMIX, with no shape? This is the most serious threat. XQC-style gains might come from the cross-entropy loss applied to any target, not from modeling the distribution. Intrinsic Benefits of Categorical Distributional Loss finds that scaling down the distribution-matching term degrades Atari performance toward DQN levels. That suggests the shape matters, but the evidence comes from single-agent Atari. Our first ablation is the decisive check. If the scalar cross-entropy QMIX closes most of the gap to DFAC on 6h_vs_8z and MMM2, the mean-shape split is less important than the literature assumes.

Why not just use Sinkhorn on the mixed particles? SinkhornDRL gives a smooth, convex particle loss and led C51, QR-DQN and MMD-DQN on mean, median and interquartile-mean human-normalized score across 55 Atari games. It is a genuine competitor, and it is included as an arm. It costs iterative matrix operations on every update. The kernel histogram costs one $N \times M$ kernel evaluation. We compare wall-clock time alongside win rate. Sinkhorn winning on both would favor it.

Proposed Experiments

We start with the two-step stochastic matrix games from the DFAC papers. They check whether the new loss still recovers the true return variance, which DFAC reproduces and scalar methods collapse. We then run SMAC Super Hard maps (6h_vs_8z, MMM2, corridor) and two easier controls (2s3z, 3s5z), with at least ten seeds per arm.

The primary metric is median test win rate. The secondary metrics are the Hessian condition-number estimate over training, the negative-eigenvalue fraction, gradient norms and wall-clock time. A bandwidth sweep traces the trade-off between smoothness and shape fidelity. We expect a U-shape: a very small bandwidth reintroduces spiky gradients, and a very large one erases the shape.

The decisive check is a joint condition. Our method must beat quantile-Huber DDN and DMIX in win rate. It must also show a lower condition number. And the no-shape cross-entropy QMIX ablation must remain clearly behind. If win rates improve but conditioning does not, the smoothing explanation is wrong. If the no-shape ablation matches, the mean-shape decomposition is not what drives the gains.