Introduction
In cooperative multi-agent reinforcement learning the team usually receives one reward, and every agent must eventually act on its own partial observation. Training can see much more: the global state, every agent's observation and action, and every agent's recurrent memory. The question of this task is how that privileged information should become the learning signal of the decentralised actors that are deployed.
The standard answer is a centralised critic. MAPPO trains decentralised PPO actors against a value function of the global state [1], and independent learners without any centralised component are a strong baseline in their own right [2]. Both build every agent's advantage from the same team reward, so an agent whose action did nothing receives the same credit as the agent whose action produced the reward. The variance this adds to multi-agent policy gradients has been analysed directly [3]. Value-decomposition methods factor a joint action value into per-agent utilities [4, 5, 6], trust-region methods update agents sequentially [7, 8], multi-level advantages assign credit to subsets of agents [9], and a second family uses the privileged information to train a centralised guide or teacher that the decentralised policies follow or distil [10, 11, 12], with a centralised sequence model [13] as one such teacher. Others add auxiliary state modelling to the decentralised agents [14].
We start from the observation that the shared reward is two problems at once. Who caused a given reward event is a question about the transition in which it happened, and often the local transitions alone can answer it. What an action changes about the future is a question about counterfactual actions, which a critic conditioned on the action can answer for every action of the agent's alphabet, not only the one it took. Our method answers both with explicit, separately trained models, and builds the actor's gradient from their answers while keeping an unbiased path for whatever they cannot explain.
Method
We call the method Signed Event Credit (SEC). The behaviour policy is the decentralised actor itself; the privileged information enters only through the models that shape its gradient.
Splitting the team reward into signed events
Rewards in the task are vectors over agents, and a team reward is broadcast to all of them. We split each step's reward vector into a shared mass, for each sign separately, and a private excess that an agent's own reward reports beyond what all agents share. Keeping positive and negative mass apart matters because the two often have different causes: a gain and a cost in the same step should not cancel before they are attributed. Rewards are expressed in a power-of-two unit chosen once, from the first nonzero rewards observed, so that the likelihoods below stay numerically scaled whatever the reward magnitude.
The attribution model is a multiple-instance likelihood. A small network gives each agent at step a log-rate for each sign from its local transition: the normalised local observation , its change , and the one-hot action . The team's rate is the sum over agents, and we normalise out the unknown base rate of each sign by dividing by its mean over the batch,
With the shared mass at step , the model is trained to maximise , a density ratio that says where in the batch the mass falls; private mass, whose owner is known, adds a supervised log-softmax term over agents. Nothing in the objective asks which agent caused an event, so the attribution is the posterior the likelihood implies, the softmax of over agents.
def observed_events(rewards):
"""Split a reward vector into shared sign masses and observed local excess."""
team = rewards.mean(-1)
duplicated = jnp.stack([jax.nn.relu(team), jax.nn.relu(-team)], axis=-1)
by_agent = jnp.stack([jax.nn.relu(rewards), jax.nn.relu(-rewards)], axis=-1)
overlap = by_agent.min(-2)
private = (by_agent - overlap[..., None, :]) / rewards.shape[-1]
reported = private.sum(-2)
# Averaging identical broadcasts can differ from the individual value by
# one floating-point rounding. Preserve the team-average convention.
# If signs coexist, a zero local excess for one sign just means the sign
# is absent; the common component of both signs is then zero.
shared = jnp.where((reported.sum(-1) > 0.0)[..., None], overlap, duplicated)
return shared, private, shared + reported
def relative_log_rate(logits):
# Normalise out the unknown base rate of each sign. Only how its observed
# mass is distributed over transitions matters for estimating the sources.
log_rate = jax.nn.logsumexp(logits, axis=-2)
log_mean = jax.nn.logsumexp(log_rate, axis=(0, 1)) - math.log(
log_rate.shape[0] * log_rate.shape[1]
)
return log_rate - log_meanTrusting the attribution only as far as it is informative
An attribution model that has learned nothing produces a near-uniform posterior, and one that has learned the wrong thing is worse than uniform. We measure how informative it is on every batch: the likelihood gain it achieves, with the mass normalised to mean one, as a fraction of the gain an oracle that knew the mass exactly would achieve, . That ratio, clipped to and averaged with weight 0.08 per batch, is a reliability , and an agent's share of a shared event is
where is the private mass and the number of agents. The concentration of these weights, averaged over events by their mass, gives a locality : zero when events look like common team outcomes, one when each event belongs to a single agent. Locality decides three things later, how much weight the peers' predicted effect receives in the gradient, how much of the peers' unexplained return an agent still receives, and how long the trace over the peers' returns is.
logits = self.events.apply(params.critic_params["event"], inputs.view, after, sampled)
log_rate = relative_log_rate(logits)
mean_mass = parts.mean(axis=(0, 1))
shared_mean = shared.mean(axis=(0, 1))
mass = shared / jnp.maximum(shared_mean, 1.0e-9)
gain = (mass * log_rate).mean(axis=(0, 1))
oracle = (mass * jnp.log(jnp.maximum(mass, 1.0e-9))).mean(axis=(0, 1))
reliability = jnp.clip(gain / jnp.maximum(oracle, 1.0e-4), 0.0, 1.0)
new_quality = parallel_mean(
jnp.where(shared_mean > 0.0, 0.92 * quality + 0.08 * reliability, quality)
)
responsibilities = jax.nn.softmax(logits, axis=-2)
n_agents = self.info.num_agents
weights = quality * responsibilities + (1.0 - quality) / n_agents
local_reward = weights * shared[..., None, :] + private
reported = private.sum(-2) / jnp.maximum(parts, 1.0e-9)
weights = weights * (1.0 - reported[..., None, :]) + private / jnp.maximum(
parts[..., None, :], 1.0e-9
)
# If a reward is indistinguishable from a common team event, keep the
# common long trace. Concentrated event posteriors justify shorter
# traces on other agents' streams, while retaining their one-step TDs.
concentration = ((weights**2).sum(-2) * n_agents - 1.0) / max(n_agents - 1, 1)
locality = (parts * concentration).sum() / jnp.maximum(parts.sum(), 1.0e-9)
peer_trace = self.trace * (1.0 - 0.95 * lax.stop_gradient(locality))A critic of signed intensities and action tilts
The centralised critic receives, for each agent, its normalised local view, its action mask and the actor's own recurrent memory, together with the global state and the episode clock. Its first output is a log value per sign, read as a non-negative future reward intensity with a per-sign scale set from the observed reward flux. It is fitted to a -return target of the attributed rewards with the Poisson loss (scaled by ), which suits a quantity that is a non-negative rate.
Its second output is an action tilt: for every candidate action , a log-ratio normalised under the behaviour policy ,
so that is the factor by which taking multiplies the expected intensity. We fit it with a control-variate form of the conditional likelihood,
The second term is the expectation of the first's baseline over actions, so the baseline changes no expectation; in expectation over the loss is , whose maximiser under the normalisation is . The target here uses a shorter trace, , than the value target's 0.95, so the action effect is estimated from less of the far future. A second tilt, fitted the same way to the peers' average target, predicts how the agent's action multiplies its peers' future intensity.
def critic_loss(critic_params, b):
lv, own_tilt, peer_tilt = self.critic.apply(critic_params["value"], b.features)
expected = jnp.exp(lv)
enabled = (new_scale > 1.0e-9).astype(jnp.float32)
value_loss = ((expected - b.value_target * lv) * enabled).mean()
action = jax.nn.one_hot(b.action, self.info.action_dim)
prob = jnp.exp(b.logp)
def conditional_loss(tilt, target, baseline):
log_ratio = log_tilt(tilt, b.logp)
sample = (log_ratio * action[..., None]).sum(-2)
exact = (log_ratio * prob[..., None]).sum(-2)
baseline = lax.stop_gradient(baseline)
# Control-variate form of event-weighted conditional likelihood.
# The mass expected before acting multiplies an exact action sum.
return -(((target - baseline) * sample + baseline * exact) * enabled).mean()
intensity_loss = conditional_loss(own_tilt, b.action_target, expected)
peers = max(n_agents - 1, 1)
peer_target = (b.action_target.sum(-2, keepdims=True) - b.action_target) / peers
peer_value = (expected.sum(-2, keepdims=True) - expected) / peers
transfer_loss = conditional_loss(peer_tilt, peer_target, peer_value)From these two heads the critic gives each action a signed effect on the agent's own future reward and on the others',
and both are centred under by construction.
The actor's gradient: every action's effect, plus what is left
The policy gradient is built from two parts. The dense part uses the critic's effect of every action, not only the sampled one,
where and are regression coefficients of the realised return on the predicted effect, with moving averages over batches. A critic whose predictions do not track realised returns therefore contributes nothing. The residual part keeps what the dense part does not explain: the -return of the TD error after the predicted effect of the taken action is removed, , plus, scaled by , the same residual returns of the other agents over a trace shortened by locality. The weight on each action is
with the residual centred over the batch, and the whole weight divided by its root mean square. These weights enter a PPO-style clipped surrogate summed over all actions, , with . At the old policy its gradient is : an expected gradient over the action alphabet, which has no sampling variance in the action, plus a sampled correction for the part of the return the critic did not predict.
td = signed(td_parts)
local_return = signed(target - v)
coefficient = jnp.clip(moments[0] / jnp.maximum(moments[1], 1e-10), 0.0, 1.0)
peer_coeff = jnp.clip(moments[2] / jnp.maximum(moments[3], 1e-10), 0.0, 1.0)
residual = td - coefficient * selected
own = returns(residual, discount[..., None], self.trace)
peer_td = residual.sum(-1, keepdims=True) - residual
other = returns(peer_td, discount[..., None], peer_trace)
stats = parallel_mean(
jnp.stack(
[
(selected * local_return).mean(),
(selected**2).mean(),
(chosen_external * other).mean(),
(chosen_external**2).mean(),
]
)
)
new_moments = 0.9 * moments + 0.1 * stats
# Other agents' unattributed residuals are extremely noisy in a local
# event. Replace a share of them with their conditional action effect.
# Diffuse team outcomes retain the full common correction.
route = lax.stop_gradient(locality)
noise = own + (1.0 - route) * other
dense = coefficient * credit + route * peer_coeff * external
# Physical units from observed reward flux. A new sign begins with its
# first observed mass; the scale never grows solely through bootstraps.
base_rate = mean_mass / (n_agents * (1.0 - discount.mean()))
base_rate = parallel_mean(base_rate)
new_scale = jnp.where(scale < 1.0e-9, base_rate, 0.95 * scale + 0.05 * base_rate)
denom = jnp.maximum(new_scale, 1.0e-8)
noise = noise - parallel_mean(noise.mean())
weight = probs * dense + sampled * noise[..., None]
magnitude = (noise**2).mean() + (probs * dense**2).sum(-1).mean()
weight /= jnp.sqrt(parallel_mean(magnitude) + 1e-8)The actor and its auxiliary predictions
The deployed actor is a recurrent graph in the task's actor family: a normalised observation embedding, a GRU over the embedding and the previous action, and a policy head. We add action tokens: from its belief the actor produces a 32-dimensional effect vector per candidate action, and reads them through a utility direction computed from its policy features, so that each action's logit gets a term . During training only, two auxiliary heads read the actor's features: one predicts the agent's local value, the other predicts the change of fixed random projections of the local observation and of the standardised global state at a short and a longer lag, conditioned on the centred token of the chosen action. Both enter the actor loss with weight 0.15. The global state therefore shapes the decentralised representation as a prediction target, and the action tokens are trained to carry what each action does. Observation normalisation is folded into the first layer when the actor is exported.
Recurrent gradients across shuffled chunks
Recurrent PPO trains on short chunks of the rollout and cuts the gradient at chunk boundaries. Before the shuffled minibatch updates we run the whole rollout once, in order, at the old parameters, and compute the adjoint , the derivative of the whole-trajectory loss with respect to the recurrent state at the start of chunk . Each minibatch then adds a boundary term for the state its chunk hands on,
whose gradient at the old parameters is exactly the term that truncation drops. The soft limit, with the observed size of one memory step, keeps this linearisation from being extrapolated far from where it was computed. We also correct how chunks are formed: the starter's reshape of the time-major rollout into chunks interleaved time steps from across the rollout, so a "sequence" did not consist of consecutive steps; our chunks are contiguous.
def objective(injection):
def evaluate(hidden, item):
block, perturb = item
loss, (end, _, _) = sequence_loss(params.actor_params, block, hidden + perturb)
return end, loss
_, losses = lax.scan(evaluate, h[0], (blocks, injection))
# Unnormalized derivative per agent/environment. Each minibatch
# later uses its own number of sequences when averaging this term.
return losses.sum() * chunk * self.info.num_envs * self.info.num_agents
old_post = jnp.concatenate([h[1:], last_carry.policy_hidden_state[None]], axis=0)
ends = old_post[chunk - 1 :: chunk]
adjoint = jax.grad(objective)(jnp.zeros_like(ends))
successor = jnp.concatenate([adjoint[1:], jnp.zeros_like(adjoint[:1])], axis=0)
successor = successor.reshape((-1,) + successor.shape[2:])
anchors = ends.reshape((-1,) + ends.shape[2:])
distance = jnp.sqrt(((old_post - h) ** 2).mean() + 1.0e-3)
def actor_loss(actor_params, b, reference, future):
loss, (end, entropy, kl) = sequence_loss(actor_params, b, b.features.memory[0])
change = end - reference
# The transported gradient is exact at the old recurrent state.
# Limit its extrapolation to the observed size of a memory update.
change *= lax.rsqrt(1.0 + (change**2).mean(-1, keepdims=True) / distance**2)
boundary = (change * future).sum(-1).mean() / chunk
return loss + boundary, (entropy, kl)The remaining choices are fixed constants of the file: 4 epochs of 8 minibatches, chunks of at most 16 steps, , a learning rate decaying linearly from 4e-4 to 8e-5 for the actor and from 7e-4 to 1.5e-4 for the critic, and an entropy bonus of 0.005 decaying to a fifth of that. There are no per-setting hyperparameters, where the starter used a tuned table.
Results
| Method | ① | ④ | ② | ③ |
|---|---|---|---|---|
| Win rate or mean return ↑ | Win rate or mean return ↑ | Win rate or mean return ↑ | Win rate or mean return ↑ | |
| GPT-6.2 Astra | 0.880 | 0.522 | 14.40 | 31.03 |
| Recurrent MAPPO | 0.746 | 0.262 | 0.013 | 19.27 |
| IPPO | 0.674 | 0.250 | 0 | 0 |
| HAPPO | 0.523 | 0.201 | 4.199 | 16.16 |
| MACA | 0.864 | 0.420 | 3.239 | 10.88 |
| CTDS | 0.681 | 0.360 | 4.294 | 11.88 |
| MAGPO | 0.753 | 0.395 | 7.532 | 20.73 |
| SMPE² | 0.546 | 0.308 | 0.010 | 5.560 |
| MA²E | 0.561 | 0.221 | 4.085 | 15.33 |
| QMIX | 0.720 | 0.539 | 0.328 | 2.841 |
| QPLEX | 0.743 | 0.512 | 2.000 | 7.776 |
| PQN-VDN | 0.824 | 0.631 | 3.990 | 17.29 |
- ① SMAX smacv2_10_units · SMACv2-style 10v10
- ④ Connector con-10x10x10a · 10-agent routing
- ② RWARE medium-4ag-hard · sparse warehouse
- ③ RWARE tiny-4ag-hard · sparse warehouse
SEC is ahead of every published baseline on SMAX-10v10, RWARE-med-4 and RWARE-tiny-4. On SMAX-10v10 the margin is small: 0.880 against 0.864 for MACA [9]. On RWARE-med-4 and RWARE-tiny-4 it is large: 14.40 against 7.532 for MAGPO [12] on RWARE-med-4, and 31.03 against 20.73 (MAGPO [12]) on RWARE-tiny-4. Against the starter, MAPPO, the gain is present on every setting, from 0.013 to 14.40 on RWARE-med-4 and from 0.262 to 0.522 on Con-10x10x10.
Con-10x10x10 is the exception. There SEC reaches 0.522, which is above every policy-gradient baseline but below PQN-VDN [6] at 0.631 and QMIX at 0.539; QPLEX, at 0.512, is just below it. Our credit is a per-agent decomposition of the gradient, and on this setting two of the methods that learn a joint action value through a factorisation remain stronger.
We have no ablation of the submitted method on the settings in the table, so it measures the whole method. The next section reports which of its parts our development runs supported and by how much.
How we got here
We began from the starter's recurrent MAPPO and from a reading of the reference methods and of the literature on counterfactual and hindsight credit assignment. The first defect we found was in the starter itself: the chunk reshape that skipped time steps inside each training chunk. Our first candidate already had the central idea in its simplest form, a critic that estimates each agent's action contribution and passes the unexplained team return through as a correction.
The method then grew one model at a time, each kept because a matched comparison in development supported it:
- Learned event attribution. A version in which each agent learns from its attributed share of the team reward replaced one in which every agent saw the shared signal. In an intervention probe we changed one agent's action at a time on transitions that carried a reward event, and the attribution model put about 99% of the reward weight on agents whose action could change the outcome. Later, removing the attribution from the otherwise unchanged method lowered development return from 10.516 to 7.961 in a matched run on one environment, which is why it stays.
- Signed intensities instead of squared error. The Poisson intensity critic with its likelihood tilts first looked like a large step, 10.14 against 7.41 for a squared-error local critic at a matched point in one development run. Repeated full-length runs then put its mean close to the squared-error critic's. We kept it, but the evidence for this particular change is weak.
- The boundary adjoint. In a deterministic probe it recovered the full-sequence gradient to a relative error of 2.8e-7, against 0.337 for the truncated gradient. Its effect on the trained policy was small: in a later re-evaluation the version with the adjoint won 52.0% against 51.0% for the version that cuts gradients at chunk boundaries, a difference small relative to the variation between training runs. Removing attribution or the predictive supervision had a clearer cost in our matched shorter runs.
- A wider actor with action tokens. The action-token actor improved matched development results, and widening it raised one development win rate from 48.7% to 53.1% over repeated runs, while on another environment the compact actor stayed slightly ahead.
- Explicit private rewards and a fixed reward unit. In a synthetic test with delayed, signed rewards, changing the reward units dropped mean return from 8.96 to -2.85; fixing a shared unit from the first nonzero rewards restored it to 8.94. On every development environment the chosen unit was 1, so this path is inactive at ordinary reward scales.
Many ideas did not survive:
- A critic's preferred action is not an improvement. We tested whether the critic could rank alternative actions. Its preferred action beat a uniformly chosen legal action, yet switching to it reduced short-horizon return relative to the deployed policy. This is why the critic's effects enter the gradient only through a coefficient regressed on realised returns.
- A model of early episode endings. Episode endings that a single agent's action could have avoided looked like an ideal credit target, since most carried no immediate reward. The learned stopping model predicted risky states well, but put 49.7% of its responsibility on agents that could actually avert an ending, against 49.4% for a uniform split. An assistance rule built on it raised return on one environment and lowered it substantially on another.
- A learned influence graph between agents transferred very little residual credit between agents in practice and gave no gain.
- Coupled action draws across environments reduced the variance of the quantity they were designed for, but not the variance of the whole-episode gradient, and over repeated runs gave no reliable gain in return.
- An adaptive late-training branch that tested policy changes prospectively before adopting them lost to the retained method in the final matched full-length comparison, by 3.21 and 0.69 percentage points of win rate on the two environments compared, and was dropped.
The dead ends share a lesson: a quantity the critic predicts well (a ranking, a risk, a gradient variance proxy) is not evidence that acting on it improves the deployed policy. SEC therefore lets every learned model affect the gradient only in proportion to a measured fit, the attribution's reliability and the critic's regression coefficient, and always keeps the sampled residual return. Our action tilt is closest in spirit to hindsight credit assignment and to counterfactual contribution analysis, which we read while designing it.
Limitations
- Con-10x10x10 is below two value-decomposition baselines. SEC trails PQN-VDN [6] and QMIX there. A per-agent decomposition of the policy gradient may not represent coordinated joint actions the way a factorised joint value does, and we did not find a way to close that gap.
- The method is several models at once, and the evidence for each part is uneven. Attribution had the clearest development support; the Poisson critic's advantage did not hold up in repeated runs; the boundary adjoint is exact as a gradient but made little measured difference. The scored results measure the combination, together with a different, wider actor and a different rollout geometry from the starter, so they cannot be assigned to the credit signal alone.
- The attribution reads local transitions. An event whose cause is not visible in any agent's local observation change, such as a delayed consequence of an earlier action, cannot be placed by the likelihood, and as the measured reliability falls the split returns towards uniform. Our own probes found that predictable negative costs can be explained by state while carrying little immediate dependence on actions.
- Hand-set constants remain. The reliability averaging rate, the trace lengths, the locality rule and the soft limit on the boundary term are chosen, not derived, and were not tuned per setting.
- We did not use a coordinated behaviour policy. The task allows collecting experience with a joint policy; SEC uses the privileged information only to shape the decentralised actor's gradient, and leaves that lever unused.
References
- Chao Yu, Akash Velu, Eugene Vinitsky et al. (2022). The Surprising Effectiveness of PPO in Cooperative, Multi-Agent Games. NeurIPS.
- Christian Schroeder de Witt, Tarun Gupta, Denys Makoviichuk et al. (2020). Is Independent Learning All You Need in the StarCraft Multi-Agent Challenge?.
- Jakub Grudzien Kuba, Muning Wen, Yaodong Yang et al. (2021). Settling the Variance of Multi-Agent Policy Gradients.
- Tabish Rashid, Mikayel Samvelyan, Christian Schroeder de Witt et al. (2018). QMIX: Monotonic Value Function Factorisation for Deep Multi-Agent Reinforcement Learning. ICML.
- Jianhao Wang, Zhizhou Ren, Terry Liu et al. (2021). QPLEX: Duplex Dueling Multi-Agent Q-Learning. ICLR.
- Matteo Gallici, Mattie Fellows, Benjamin Ellis et al. (2025). Simplifying Deep Temporal Difference Learning. ICLR.
- Jakub Grudzien Kuba, Ruiqing Chen, Muning Wen et al. (2022). Trust Region Policy Optimisation in Multi-Agent Reinforcement Learning. ICLR.
- Yifan Zhong, Jakub Grudzien Kuba, Xidong Feng et al. (2023). Heterogeneous-Agent Reinforcement Learning.
- Xutong Zhao, Yaqi Xie (2025). Multi-level Advantage Credit Assignment for Cooperative Multi-Agent Reinforcement Learning. AISTATS.
- Gang Chen (2019). A New Framework for Multi-Agent Reinforcement Learning -- Centralized Training and Exploration with Decentralized Execution via Policy Distillation.
- Yueheng Li, Guangming Xie, Zongqing Lu (2026). Guided Policy Optimization under Partial Observability. ICLR.
- Yueheng Li, Guangming Xie, Zongqing Lu (2026). Multi-Agent Guided Policy Optimization. ICLR.
- Omayma Mahjoub, Sasha Abramowitz, Ruan de Kock et al. (2025). Sable: a Performant, Efficient and Scalable Sequence Model for MARL. ICML.
- Andreas Kontogiannis, Konstantinos Papathanasiou, Yi Shen et al. (2025). Enhancing Cooperative Multi-Agent Reinforcement Learning with State Modelling and Adversarial Exploration. ICML.