---
title: "Counterfactual Multi-Agent Policy Gradients — Foerster 2017"
description: "How COMA assigns credit in cooperative reinforcement learning using a central critic, counterfactual baselines, and decentralised policies."
canonical: "https://research.elamur.ai/free/en/papers/foerster-2017-counterfactual-multi-agent-policy-gradients/"
---
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/foerster-2017-counterfactual-multi-agent-policy-gradients/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2017](https://md.research.elamur.ai/free/en/papers/2017/) / Counterfactual Multi-Agent Policy Gradients

# Counterfactual Multi-Agent Policy Gradients

Paper · 2017 · Jakob Foerster, Gregory Farquhar, Triantafyllos Afouras et al.

**Authors:** [Jakob Foerster](https://md.research.elamur.ai/free/en/authors/jakob-foerster/), [Gregory Farquhar](https://md.research.elamur.ai/free/en/authors/gregory-farquhar/), Triantafyllos Afouras, [Nantas Nardelli](https://md.research.elamur.ai/free/en/authors/nantas-nardelli/) and [Shimon Whiteson](https://md.research.elamur.ai/free/en/authors/shimon-whiteson/) · **Year:** 2017 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

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

- [arXiv 1705.08926](https://arxiv.org/abs/1705.08926)
- [OpenAlex](https://openalex.org/W2617547828)

## Deep dive: Counterfactual Multi-Agent Policy Gradients

How COMA assigns credit in cooperative reinforcement learning using a central critic, counterfactual baselines, and decentralised policies. · about 37 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

When several agents receive the same reward, success does not tell each participant what it contributed. A good team outcome may follow from an agent’s useful action, its teammates’ decisions, or a combination that only works together. This ambiguity makes cooperation difficult to learn. Counterfactual Multi-Agent Policy Gradients introduces COMA, an actor-critic method that gives each agent a more specific learning signal while preserving a shared objective. The central question is practical: how can training use information about the whole team without requiring every agent to possess that information when acting?

COMA separates training from execution. During training, a central critic estimates the future return associated with the team’s joint action. Each actor—the component that chooses an agent’s action—still depends only on that agent’s local observations and past actions. The critic then asks a restricted counterfactual question: given what everyone else did, how does this agent’s chosen action compare with its own alternatives? It evaluates those alternatives under the agent’s current policy and subtracts their probability-weighted value from the value of the action actually taken. The resulting advantage measures the chosen action relative to what that agent would ordinarily do in the same team context.

This comparison avoids assigning a manually designed reward to each participant. It also avoids selecting a special default action or running an additional environment simulation for every counterfactual. COMA instead uses its learned critic to evaluate alternatives. Its critic architecture makes that calculation manageable: other agents’ actions enter as inputs, and the outputs give values for the actions available to the agent being assessed. A shared critic can therefore process agents together without producing an output for every possible team action.

The experiments use StarCraft micromanagement, with a separate controller for each allied unit. The authors make execution substantially harder than in earlier centralised setups by restricting each unit’s visibility and removing access to attack commands that automatically move a unit toward a distant target. Across the tested scenarios, COMA learns better policies than the independent actor-critic baselines and the centralised alternatives used in the controlled comparisons. The authors report improvements in learning speed, final performance, and consistency. Their strongest COMA policies also compare favourably with published centralised controllers, although those comparisons use best-performing policies and give the earlier controllers more information and more powerful actions.

The contribution is therefore both an algorithm and an experimental argument about credit assignment. Access to a global state helps the critic, but that alone does not explain COMA’s results: replacing its counterfactual baseline with a general state-value baseline makes performance worse. The findings concern a small collection of cooperative combat tasks, instead of a demonstration of large-scale coordination or practical vehicle control. The paper also distinguishes its convergence argument from its implementation: the theoretical result requires assumptions about critic accuracy and training that the experimental neural-network procedure does not establish.

### Ideas worth borrowing

#### Separate training information from execution requirements

A component that teaches a policy need not obey all the policy’s deployment constraints. COMA’s actors must act from local histories, but its training critic can inspect the broader situation. This separation is useful whenever a simulator or controlled training environment reveals information that individual participants will later lack. The reusable idea is to decide explicitly which information improves learning and which information will actually be available during operation. That decision can permit a richer evaluator without turning execution into a central coordination service.

#### Compare alternatives while holding context fixed

A team reward mixes the effects of many decisions. COMA narrows the comparison by changing only the action of the participant receiving credit. Its teammates’ actions stay fixed, making the baseline specific to the interaction that occurred. This principle applies beyond cooperative combat: when assessing a component inside a larger decision process, an alternative evaluated in a different surrounding context may answer the wrong question. A controlled comparison should preserve the circumstances relevant to the contribution being assessed.

#### Use the current policy as the reference

A manually selected default action can be arbitrary or inappropriate. COMA replaces that choice with an expectation over the focal agent’s current action distribution. The reference therefore reflects the alternatives the agent is actually likely to choose. This makes the comparison responsive to learning: an action is assessed against the agent’s present behaviour rather than against a fixed convention. Elsewhere, the same idea can help define an adaptive baseline when there is no natural neutral action and the decision space is small enough to evaluate alternatives.

#### Design outputs around the counterfactual query

The critic does not enumerate every team action. It receives teammates’ actions as context and returns the values of the focal agent’s possible actions. This is an architectural decision driven by the calculation the algorithm needs. The broader lesson is to identify the family of related queries an evaluator will repeatedly answer, then arrange its outputs to answer that family together. Such a design can eliminate repeated computation without changing the comparison being made.

#### Keep attribution aligned with the shared objective

COMA changes the signal used to train an actor while retaining the team’s return as the objective. Its baseline has zero expected contribution to the policy gradient under the stated conditions. That distinction matters when individual rewards would encourage behaviour that looks locally productive but damages collective success. A reusable design question is whether a proposed attribution mechanism improves the learning signal while preserving the objective, or quietly substitutes a different objective that is easier to optimise.

#### Test the mechanism through nearby alternatives

The experiments compare COMA with methods that remove particular ingredients: central information, action-conditioned evaluation, or the counterfactual baseline. These comparisons make the explanation more informative than a comparison against an unrelated system alone. They suggest a general experimental pattern: identify the components that carry the claimed mechanism and construct alternatives that preserve as much surrounding machinery as possible. The remaining differences still require interpretation, but the resulting evidence speaks more directly to why the method works.

### How Mova uses it

For Mova, a small transparent language system implemented in Rust, COMA offers a possible design for learning among cooperating components. It does not establish an existing Mova implementation. Its relevance depends on whether a language-processing task can be expressed as a sequence of decisions by components that share an outcome measure. The useful transfer is the structure of the credit-assignment problem, rather than the StarCraft task or the particular recurrent architecture.

One possible setting would involve several components proposing actions that jointly determine an analysis or response. A component might select among candidate interpretations, another might decide what supporting information to retain, and another might choose how to realise an answer. These are proposed roles, not claims about Mova’s current architecture. If their decisions were trained only from an overall success signal, each component would face COMA’s central difficulty: a successful result would not reveal whether its own choice helped.

A COMA-inspired experiment could preserve a shared task score while recording the choices made by all participating components. During training, an evaluator could inspect information that the individual components do not use directly. For a selected component, it would estimate the outcome associated with the actual joint choice and compare it with outcomes predicted for that component’s alternatives. The other choices would remain fixed. This would give the experiment a concrete attribution question: did the selected interpretation, retrieval choice, or response action improve the predicted result relative to that component’s usual alternatives?

Transparency would require exposing the comparison itself. A useful record could show the chosen action, the alternatives considered, their policy probabilities, the critic’s estimated values, and the resulting advantage. Such a record would make the training signal inspectable. It would not make the attribution automatically correct, because the comparison would still depend on an estimated evaluator. COMA’s counterfactual is a learned assessment of alternatives, rather than a verified observation of what an unexecuted alternative would have caused.

The critic’s output design is especially relevant if Mova components choose from bounded candidate sets. An evaluator could receive the shared context and the other components’ selected actions, then produce a value for each candidate of the focal component. That arrangement would make the policy-weighted baseline available from the same output vector. It would be a closer transfer of COMA than treating an unrestricted stretch of generated text as a directly enumerable action space.

The distinction between a bounded choice and open-ended language is consequential. The paper’s experiments use discrete actions whose alternatives can be evaluated together. A language system may instead face a very large set of possible continuations, and its task score may be delayed, ambiguous, or incomplete. Applying the same baseline would then require additional design decisions about action granularity and evaluation. The paper discusses possible continuous-action extensions, but it does not demonstrate credit assignment for language processing or establish that its computational advantages survive such a change.

A careful Mova experiment would therefore begin with a narrow cooperative task and a clearly defined shared reward. It would compare a counterfactual baseline against simpler learning signals while keeping the participating components and their execution information consistent. The relevant measures would include task success, learning stability, and the reliability of the predicted alternatives. Until such an experiment exists, COMA is a concrete research direction for Mova: a way to investigate component-level learning without assuming that a separate hand-written reward correctly captures each component’s contribution.

### The problem and its context

#### Cooperation makes a shared reward ambiguous

The paper studies fully cooperative reinforcement learning. Agents interact with an environment, choose actions, and receive a common reward. Their interests are aligned by construction, but alignment does not make learning straightforward. A shared reward describes the outcome of a joint decision. It does not identify how that outcome depends on each participant.

Consider the combat setting used in the experiments. Several allied units may need to concentrate attacks on an opponent. A unit’s attack can be useful because teammates attack the same target, while an individually plausible attack elsewhere may contribute less to winning. Positioning also changes which attacks become possible. An action’s value consequently depends on the surrounding joint behaviour, rather than only on what happens to the unit taking it.

The authors describe this as multi-agent credit assignment. The problem is not merely deciding whether the team did well. Each agent needs a learning signal that helps distinguish useful choices from unhelpful ones within that team outcome. If every actor receives an undifferentiated global signal, exploratory actions by its teammates can make that signal noisy.

Designing individual rewards is one possible response, but the paper identifies a central risk. A local reward may fail to encourage an agent to accept a personal disadvantage that benefits the group. It may also be unavailable when the application naturally supplies only an overall outcome. COMA therefore keeps the cooperative objective and changes how its gradient is estimated.

#### Why execution is decentralised

A central controller could, in principle, choose an action for every participant. The difficulty is that the number of possible joint actions increases exponentially with the number of agents. Even when each participant has a modest action set, combining all choices creates a much larger decision space.

Information constraints provide a separate reason for decentralisation. An agent may observe only its surroundings, and communication may be restricted. A policy that requires the complete environment state would then be unsuitable for execution, irrespective of whether central computation were affordable.

The paper consequently requires each actor to choose actions from its own action-observation history. This history matters because the current observation may omit relevant information. In StarCraft, an enemy that disappears from view may still be alive, and remembering earlier observations can influence a sensible action.

Decentralised execution does not imply that training must follow the same restrictions. A simulator or laboratory may provide the global state and permit unrestricted information sharing during learning. The authors place their approach within this existing planning paradigm: use central resources to learn policies that later operate locally.

The research question is how to exploit that opportunity. Sharing actor parameters can make experience useful across participants, but it does not by itself tell an actor how its action interacted with its teammates. COMA assigns the richer training information to a critic whose purpose is policy evaluation.

#### Earlier independent learning

The related-work discussion describes independent learning as a common approach to multi-agent reinforcement learning. Each participant learns as though it were solving its own decision problem, using its local information. Earlier work combined deep Q-learning with this perspective in two-player Pong and used related methods to investigate cooperative and defective behaviour in sequential social dilemmas.

COMA’s independent actor-critic baselines carry the same general idea into policy-gradient learning. They share parameters across agents, but their critics still evaluate local histories and, where relevant, local actions. Shared weights therefore coexist with independent evaluation.

This distinction is important. Parameter sharing does not mean that a critic receives the other agents’ actions or knows the full state. Agents can use the same network and still receive learning signals that omit information needed to interpret their interactions.

The paper also discusses earlier decentralised actor-critic work in which the actors and critics use per-agent information. In that work, hand-designed local rewards address credit assignment. COMA instead aims to derive an agent-specific signal from a central estimate of the shared return.

#### Communication and centralised critics

Another line of earlier research learns communication between agents through gradient-based training. The authors identify parameter sharing and gradients passed between participants as ways those methods exploit central training. Their objection is specific: these mechanisms do not, in the work discussed, provide COMA’s use of extra state information or its explicit treatment of credit assignment.

Communication and counterfactual credit are different functions. Communication can change what information an actor possesses before acting. A counterfactual critic changes the learning signal used after observing a joint action. COMA’s actors do not need to exchange messages at execution time to benefit from central evaluation during training.

The paper also identifies concurrent work by Lowe and colleagues that uses centralised critics in multi-agent policy gradients. The authors distinguish that approach by its separate critic for each participant, its competitive setting, and its continuous actions. Their own contribution centres on cooperation and an agent-specific counterfactual baseline.

The point is not that central evaluation alone is unprecedented. COMA’s argument concerns what the critic should estimate, how its estimate should be converted into credit, and how that conversion can be computed efficiently.

#### Difference rewards as the immediate precursor

Difference rewards provide the closest conceptual starting point. They compare the reward from the actual team action with the reward from an altered action in which a particular agent is assigned a default choice. If the comparison is constructed appropriately, the agent can improve its difference reward by making choices that also improve the shared reward.

This gives a direct interpretation of contribution: how much better was the team outcome than the reference outcome for this participant? The practical costs are substantial, however. Computing the reference may require another simulation, and each agent may require its own counterfactual run.

The authors emphasise that StarCraft does not provide the controlled replay available in simpler environments where experiences can be reproduced from arbitrary states with controlled randomness. Counterfactual reward evaluation therefore cannot simply be assumed available.

Earlier work also approximated difference rewards rather than obtaining them through simulation. That still leaves the default action to be chosen and can introduce an additional approximation into actor-critic training. COMA instead uses the critic it already needs and defines its reference through the current policy.

#### Why StarCraft is an informative test

Earlier StarCraft micromanagement research commonly used controllers with complete state access and control over the team. The paper describes approaches based on sequential action selection with zero-order optimisation and on recurrent architectures that exchange information between units.

COMA changes the conditions under which the controlled units act. Their observations become local, and the action interface no longer lets them rely on a distant attack command to perform movement automatically. The resulting task brings the execution constraints into the experiment itself.

This matters for [evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/): performance comparisons only make sense alongside the information and actions available to each system. A controller given global visibility and built-in movement assistance solves a different decision problem from a local controller that must position itself before attacking. The paper uses both controlled comparisons within its decentralised setting and a more qualified comparison with earlier centralised results.

### The method, step by step

#### Start with a cooperative decision process

The formal setting is a stochastic game with a shared reward. At each timestep, every agent chooses an action, the environment transitions, and the team receives a reward. The paper represents the task as:

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

Here, G denotes the game. S is the set of environment states, U is an individual agent’s action set, and P specifies transition probabilities. The function r supplies the common reward. Z is the observation set, O determines what an agent observes, n is the number of agents, and γ is the discount factor.

The distinction between state and observation is fundamental. The state describes the environment, while an observation is the information available to a particular participant. An actor cannot generally reconstruct the state from a single local view.

The paper collects simultaneous actions into a joint action:

```
u = (u¹, …, uⁿ) ∈ Uⁿ
```

The symbol u denotes the joint action, uᵃ is the action selected by agent a, and Uⁿ is the set of combinations of individual actions across the agents. A superscript −a will denote the collection of agents other than a. Thus, u⁻ᵃ means the teammates’ actions with the focal agent’s action omitted.

Each agent uses a stochastic policy conditioned on its own history:

```
πᵃ(uᵃ | τᵃ)
```

Here, πᵃ is agent a’s policy, uᵃ is a candidate action, and τᵃ is that agent’s action-observation history. The expression gives the probability of selecting the action after that history. The joint history τ collects the local histories across participants.

A history-based policy can behave differently after the same current observation if preceding events differ. In the experiments, a recurrent actor provides the memory mechanism. Its hidden state summarises information carried forward through the sequence.

#### Define what the critic predicts

The objective concerns future reward, rather than only the immediate effect of an action. The discounted return is:

```
Rₜ = Σₗ₌₀^∞ γˡ rₜ₊ₗ
```

Rₜ is the return beginning at time t, rₜ₊ₗ is the shared reward received l steps later, and γ discounts rewards further into the future. The index l ranges over future steps. The experimental discount setting is 0.99.

A state-value function predicts return before fixing the current action:

```
V^π(sₜ) = Eπ[Rₜ | sₜ]
```

V^π is the value under the joint policy π, sₜ is the state at time t, and Eπ denotes an expectation over trajectories generated by that policy and the environment. Rₜ is the discounted return.

An action-value function conditions additionally on the action:

```
Q^π(sₜ, uₜ) = Eπ[Rₜ | sₜ, uₜ]
```

Q^π is the expected return when the state sₜ and joint action uₜ are specified, after which behaviour follows π. This action-conditioned estimate lets the critic distinguish different team decisions made in the same state.

The familiar advantage subtracts a state-value reference:

```
A^π(sₜ, uₜ) = Q^π(sₜ, uₜ) − V^π(sₜ)
```

A^π is the advantage of the joint action under π. Q^π estimates its return, and V^π supplies the state’s average return under the policy. This is useful background, but COMA will replace the shared reference with a separate conditional comparison for each agent.

The corrected COMA formulation also conditions its critic on the joint action-observation history. The distinction becomes essential in the theoretical argument: a history-dependent policy may behave differently in the same physical state after different histories.

#### Connect evaluation to policy learning

A policy-gradient method changes action probabilities in directions associated with higher expected return. The paper begins with the REINFORCE estimator:

```
g = E[Σₜ₌₀ᵀ Rₜ ∇θπ log π(uₜ | sₜ)]
```

Here, g is the expected policy-gradient estimate, E averages over sampled trajectories, and T is the trajectory horizon used in the sum. Rₜ is the return following time t. The parameter vector θπ controls the policy, ∇θπ denotes differentiation with respect to those parameters, and π(uₜ | sₜ) is the probability of the selected action uₜ in state sₜ.

The logarithmic derivative describes how changing policy parameters changes the probability of an action. Multiplying it by a return gives actions associated with better outcomes greater influence on learning. In practice, trajectory samples approximate the expectation.

An actor-critic method uses a learned evaluator to replace the raw return with a value-based signal. Subtracting an appropriate baseline can reduce the variability of that signal without changing its expected gradient. A common temporal-difference signal is:

```
δₜ = rₜ + γV(sₜ₊₁) − V(sₜ)
```

The symbol δₜ denotes the temporal-difference error, rₜ is the immediate reward, γ is the discount factor, and V estimates state value. The states sₜ and sₜ₊₁ are the current and subsequent states. This compares the observed reward plus predicted continuation with the earlier prediction.

Using a central state-value critic would give every actor access to a better-informed version of this signal. Yet it would still evaluate the team outcome without explicitly comparing that actor’s action with its alternatives. COMA adds that missing comparison.

From local decisions to counterfactual policy updates The steps in order.

#### Replace a default action with a policy-weighted reference

The difference-reward precursor can be written as:

```
Dᵃ = r(s, u) − r(s, (u⁻ᵃ, cᵃ))
```

Dᵃ is the difference reward for agent a. The function r gives the immediate shared reward, s is the environment state, and u is the actual joint action. The expression u⁻ᵃ contains the other agents’ actions, while cᵃ is a chosen default action substituted for agent a.

The second reward term remains unchanged when the agent changes its actual action, because the comparison uses cᵃ instead. This gives the construction its alignment with the shared reward. The practical problem is obtaining that counterfactual reward and choosing a useful default.

COMA works with predicted return and a policy-weighted baseline:

```
Aᵃ(s, τ, u) = Q(s, τ, u) − Σᵤ′ᵃ πᵃ(u′ᵃ | τᵃ) Q(s, τ, (u⁻ᵃ, u′ᵃ))
```

Aᵃ is the advantage assigned to agent a. Q estimates the return given global state s, joint history τ, and a joint action. The actual joint action is u. The summation ranges over alternative actions u′ᵃ for agent a, weighted by their probabilities under πᵃ after local history τᵃ. The teammates’ actions u⁻ᵃ remain fixed in every alternative.

The first term asks how valuable the critic believes the actual team action is. The second asks how valuable the team action would be on average if the focal agent acted according to its current policy while everyone else retained the actions they actually selected.

This is a conditional reference, rather than an average over all possible team behaviour. A particular attack might be above the focal agent’s policy average when teammates concentrate on the same target, yet below its average when another choice would better complement their actions.

The baseline does not assign each agent an independently observed portion of the final reward. It creates an actor-specific comparison within a shared return estimate. Its usefulness depends on whether the critic distinguishes the relevant alternatives accurately.

The policy weighting also gives the reference an adaptive character. As the actor changes, its average alternative changes. An action that once looked unusually good may become ordinary once the policy reliably selects similarly valuable actions.

#### Understand why the baseline preserves the expected gradient

At first, a baseline that depends on the policy may appear circular. The actor determines the reference distribution, while the reference influences how the actor learns. The paper explains why this does not create the self-consistency difficulty associated with optimising an aristocrat utility through value-based methods.

For the focal agent, the baseline does not depend on the particular action sampled from its policy. It sums over that agent’s alternatives. The identity underlying the cancellation is:

```
Σᵤᵃ πᵃ(uᵃ | τᵃ) ∇θ log πᵃ(uᵃ | τᵃ) = ∇θ Σᵤᵃ πᵃ(uᵃ | τᵃ) = 0
```

The summation covers agent a’s actions uᵃ. Its policy πᵃ assigns probabilities after history τᵃ, and θ denotes actor parameters. The gradient operator ∇θ differentiates those probabilities. Their sum is 1, so its derivative is 0.

Because the counterfactual baseline is constant with respect to the sampled focal action, it can be taken outside this action sum. Its expected contribution therefore vanishes. The argument allows dependence on the state, histories, and teammates’ actions; the crucial restriction concerns dependence on the focal action being averaged.

This explains what the baseline changes and what it preserves. It changes individual sampled updates and may reduce their variability. Under the proof’s conditions, it leaves the expected policy gradient intact. That is an objective-preservation argument, not a guarantee that every sampled update is helpful.

The resulting cooperative gradient is:

```
gₖ = Eπ[Σₐ ∇θₖ log πᵃ(uᵃ | τᵃ) Aᵃ(s, τ, u)]
```

Here, gₖ is the policy gradient at training iteration k, θₖ is the actor parameter vector at that iteration, and Eπ averages under the joint policy. The sum runs over agents a. Each actor’s logarithmic policy derivative is weighted by its counterfactual advantage Aᵃ.

Parameter sharing allows gradients from different agents to update common actor weights. Shared parameters do not force identical behaviour, because agents receive different local observations, identifiers, and recurrent histories.

#### Make the critic answer all local alternatives together

A direct critic with an output for every joint action would need an output space of size |U|ⁿ. Here, |U| denotes the number of individual actions and n the number of agents. The paper avoids that representation.

For a selected agent, the critic receives the other agents’ actions as part of its input. Its output contains a value for each action of the selected agent. The output dimension is therefore |U|. The counterfactual baseline follows by weighting these values with that actor’s action probabilities.

This arrangement also supplies the value corresponding to the action actually taken. The algorithm does not need a separate critic invocation for each possible focal action. Since the same central critic serves every agent, their evaluations can be combined in a batch.

The distinction between output size and overall difficulty is important. COMA avoids explicitly enumerating the joint action space in its output layer, but its inputs still describe a multi-agent situation. The critic must learn interactions among actions, and the team must discover useful joint behaviour through experience.

The authors explored further factorisation of the critic and internal parameter sharing. In their investigation, coordinated exploration was the more immediate scaling obstacle. They leave a fuller study of factored critics for future work.

#### Train the critic from trajectories

The critic is trained on-policy, using experience generated by the current actors. The paper uses a variant of TD(λ), which mixes returns over different future horizons. An n-step target has the form:

```
Gₜ⁽ⁿ⁾ = Σₗ₌₁ⁿ γˡ⁻¹ rₜ₊ₗ + γⁿ fᶜ(·ₜ₊ₙ, θᶜ)
```

Gₜ⁽ⁿ⁾ is the n-step return target. The index l counts rewards within that horizon, γ discounts them, and rₜ₊ₗ is the reward at the indicated future step. The function fᶜ is the critic, θᶜ denotes its parameters, and ·ₜ₊ₙ stands for the critic inputs at the bootstrap point.

The target combines observed rewards with an estimated continuation value. Longer horizons rely on more observed outcomes, while shorter horizons rely earlier on the critic’s prediction.

The mixed target is:

```
y⁽λ⁾ = (1 − λ) Σₙ₌₁^∞ λⁿ⁻¹ Gₜ⁽ⁿ⁾
```

The symbol y⁽λ⁾ denotes the TD(λ) target, λ controls the weighting across horizons, n indexes the n-step returns, and Gₜ⁽ⁿ⁾ is the return defined above. The implementation uses λ=0.8, selected through coarse tuning on the 5m scenario and then retained across maps.

The critic minimises squared prediction error:

```
Lₜ(θᶜ) = (y⁽λ⁾ − fᶜ(·ₜ, θᶜ))²
```

Lₜ is the critic loss at time t, θᶜ contains critic parameters, y⁽λ⁾ is the training target, and fᶜ(·ₜ, θᶜ) is the critic prediction for the relevant inputs. The squared discrepancy is reduced by minibatch gradient descent.

Bootstrapped values come from a target network whose parameters are periodically copied from the critic. For the feedforward central critics, the update interval is 150 training steps; for the recurrent independent critics, it is 50 steps. The central critic receives a parameter update at each timestep, explaining the difference in these schedules.

#### Build local actors and richer training inputs

The actor uses GRUs, described in the paper as 128-bit units, with fully connected processing before and after the recurrent component. A hidden state carries information through time. The independent critics add output heads to the actor’s final layer, whereas the central critic is a separate feedforward network with ReLU processing.

An actor observes units inside a circular field of view around its own unit. Its features include distance, relative coordinates, unit type, and shield information. Features are normalised by their maximum values. The actor is not told the current target of another unit.

The global training representation covers all units, regardless of visibility. Coordinates are measured relative to the map centre, and the state also includes allied health and firing cooldown information. The central action-value critic receives this representation together with the focal agent’s local observation and the action context needed for its counterfactual outputs.

A central state-value critic instead receives the global state with all local observations. Those observations do not add new underlying state information, but they provide egocentric distances. This helps clarify that input representation, rather than only the abstract choice between global and local information, is part of the implemented comparison.

Exploration uses a mixture of the actor’s softmax distribution and a uniform distribution:

```
P(u) = (1 − ε) softmax(z)ᵤ + ε / |U|
```

P(u) is the probability of an individual action u, z is the actor’s final output vector, and softmax(z)ᵤ is its normalised probability for that action. The parameter ε sets the uniform mixture weight, while |U| is the action-set size. This ensures that each action retains probability at least ε / |U|.

The authors reduce ε linearly from 0.5 to 0.02 over 750 training episodes. This exploration mechanism is part of the learning setup, instead of a separate solution to coordinated exploration.

#### Follow the batch training cycle

Training uses a batch size of 30. With parameter sharing, entries can represent agents across episodes and timesteps, allowing their computations to be processed together.

Each training cycle first collects 30/n environment episodes, where n is the agent count. It then trains the feedforward critic through the episode, proceeding backwards from its end. Finally, it unrolls the recurrent actor, accumulates gradients across time, and updates the actor.

The paper counts this completed cycle as an episode in its learning plots. That convention matters when interpreting the horizontal axis: a plotted training episode is defined by the batch procedure, rather than simply being interchangeable with a single battle.

Both actor and critic use RMS-prop with learning rate 0.0005 and alpha 0.99, without weight decay. The StarCraft skip-frame setting is 7. The implementation uses TorchCraft and Torch 7.

#### Keep the convergence statement conditional

The convergence argument treats the product of local actors as a joint policy:

```
π(u | τ) = ∏ₐ πᵃ(uᵃ | τᵃ)
```

The joint policy π assigns a probability to joint action u given joint history τ. The product combines the local probabilities produced by actors πᵃ. Each factor depends only on its own agent’s history τᵃ, preserving decentralised action selection.

After the baseline cancels in expectation, the remaining gradient can be interpreted through a single-agent decision process whose state includes both the environment state and the joint history. This permits the authors to invoke an existing policy-gradient convergence result.

The lemma states:

```
lim infₖ ‖∇J‖ = 0    with probability 1
```

J is expected discounted return, ∇J is its gradient with respect to actor parameters, and k indexes learning iterations. The norm measures gradient magnitude. The statement concerns approaching stationarity under the lemma’s assumptions.

Those assumptions include bounded rewards, a differentiable policy, compatible critic representation, unbiased critic targets as in TD(1), and critic convergence before estimating each policy gradient. They are stronger than the conditions demonstrated by the practical training procedure.

The erratum is therefore substantive. The authors correct an earlier critic formulation that omitted joint history and revise the proof accordingly. Their experimental choice λ=0.8 should not be confused with the TD(1) condition used in the theoretical result.

### Experiments and results

#### The task tests local cooperation under restricted information

The experiments assign a decentralised controller to each allied StarCraft unit. Enemy units use the game’s built-in AI, which the authors describe as reasonable but suboptimal. The tasks use symmetric opposing teams.

The homogeneous scenarios include 3 marines, called 3m, and 5 marines, called 5m. Another scenario uses 5 wraiths, called 5w. The mixed scenario, 2d_3z, combines 2 dragoons with 3 zealots. These settings test cooperation across different unit compositions without establishing performance for large teams.

Available actions include movement in a direction, attacking a specified enemy, stopping, and taking no action. The decisive change from earlier centralised setups concerns visibility and attack behaviour. An actor’s field of view is tied to weapon range, so a ranged unit must first position itself appropriately before it can attack.

In the ordinary attack interface, selecting a distant target can cause a unit to move into range using built-in pathfinding. The restricted setting removes this assistance. It also leaves agents unable to distinguish a dead enemy from one outside their view, allowing invalid attack choices that produce no action.

The task consequently combines memory, positioning, target selection, and cooperation. Focused attacks are useful, but the actor must also learn how to reach a position from which an attack is available and maintain information about units that disappear from observation.

#### A visibility comparison shows why the restriction matters

The authors include a hand-coded policy that advances into range and then concentrates attacks on enemies in sequence. On 5m, changing the information conditions substantially changes its success:

Hand-coded heuristic on 5m, win rate under different visibility Restricting visibility makes the same heuristic substantially less successful.

**The numbers**

| System or setting | win rate % |
| --- | --- |
| Limited field of view | 66 |
| Full field of view (this paper) | 98 |

The star identifies the stronger visibility setting for this heuristic. These are heuristic results, rather than COMA scores. Their role is to show that the decentralised benchmark is materially harder even for a policy with an explicitly programmed cooperation strategy.

The comparison also cautions against treating all StarCraft micromanagement results as interchangeable. A high win rate can depend on information access and action assistance, not only on the quality of the learning algorithm.

#### The reward is shared but shaped

Every allied agent receives the same reward. At each timestep, the reward reflects damage dealt to opponents, reduced by half the damage received by allies. An opponent’s death adds 10 reward points. Winning adds the team’s surviving health together with 200.

This is richer feedback than a terminal win signal alone. The method must solve credit assignment within a common damage-and-outcome objective, rather than infer all useful behaviour from victory or defeat at the end of a battle.

The reward also differs from assigning separate rewards to individual units. An agent can benefit from a teammate’s successful attack or suffer from damage elsewhere on the team. COMA’s actor-specific signal is derived from the central critic’s estimate of that common return.

#### The evaluation measures repeated learning, not a single run

For each method, the authors conduct 35 independent trials. Every 100 training episodes, they suspend learning and evaluate the policies over 200 episodes. The learning curves average evaluation outcomes across episodes and trials and display one standard deviation.

The main performance metric is win rate against the fixed enemy controller. The final-results caption defines its aggregate as mean win percentage over the final 1000 evaluation episodes. It also specifies 95% confidence intervals.

These reporting choices address different questions. Repeated trials reveal whether a method reliably learns useful behaviour. Periodic evaluation shows learning speed and instability over training. Final-window averages describe sustained late performance, while the maximum-performance comparison describes the strongest policies found.

The exact win percentages for COMA and its learned baselines are not stated in the running results discussion. The supported comparison is therefore the authors’ reported ordering and curve interpretation, instead of a numerical margin reconstructed from the figures.

#### COMA performs best in the controlled actor-critic comparisons

Across the scenarios, the authors report that COMA exceeds the independent actor-critic alternatives. The independent methods eventually find reasonable behaviour in 5m, but require more training to do so.

This is informative because the independent critics share early network layers with the actors. Such sharing might have been expected to accelerate learning. The observed advantage of the central critic suggests that better-informed evaluation matters more than that architectural convenience in these tasks.

COMA also surpasses central-QV in both learning speed and final performance across the tested settings. This is the comparison most directly relevant to the counterfactual baseline, because central-QV retains central evaluation and an action-value estimate but uses a state-value reference.

Against central-V, COMA achieves stronger final performance and typically reaches effective policies sooner. The authors additionally report more stable training. They interpret these patterns as benefits of an action-specific, shaped learning signal instead of a global temporal-difference error alone.

The claims should retain their experimental scope. The paper presents COMA as the strongest and most consistent method among the actor-critic variants it tests. It does not establish that its baseline will improve every cooperative task, every critic architecture, or every reward design.

#### The published central-controller comparison uses best policies

The paper also compares its strongest trained policies with published centralised results. Those include GMEZO, a greedy-MDP approach with episodic zero-order optimisation, and a centralised DQN controller.

The earlier controllers have full visibility and access to attack commands that combine movement with attacking. COMA’s evaluated actors remain decentralised and locally informed. The authors report that their best policies achieve comparable performance in most of the settings.

This is an encouraging result under restrictive execution conditions, but it answers a different question from the trial-averaged comparisons. It shows what the best COMA policies can achieve, instead of showing that a typical training run matches a central controller.

There is also a specific qualification for 5w: the published DQN and GMEZO policies were trained on a larger map before evaluation on that scenario. The comparison should therefore be read with the training and execution conditions attached.

### What the ablations show

#### Central information improves policy evaluation

The independent baselines test what happens when the critic remains local. IAC-Q estimates action values from an agent’s own history and action. IAC-V estimates a local state value and uses a temporal-difference learning signal.

Both share parameters across participants, so their weakness cannot simply be attributed to maintaining entirely separate actor networks. Agents still receive different observations and identifiers and develop different recurrent states. What they lack is a critic that explicitly conditions on the broader team situation.

COMA’s stronger results support the usefulness of central information during training. A critic observing the team can distinguish situations that may appear similar locally but have different implications for future return.

The comparison does not isolate a pure information effect in every implementation detail. The independent critics are output heads attached to the recurrent actor, while the central critic is a separate feedforward network. Therefore, information access and critic architecture change together. The authors’ interpretation is plausible, but a careful reading should retain that implementation difference.

#### A central state value leaves credit assignment unresolved

Central-V uses the global state during training but does not condition its value estimate on the current joint action. Actors learn through the central temporal-difference error.

This method can evaluate whether the team is in a promising situation and whether the subsequent transition is better than expected. It does not explicitly compare one participant’s chosen action with that participant’s available alternatives while retaining its teammates’ choices.

COMA’s better final performance, and its generally faster learning, show that global information alone does not reproduce the full benefit. The result supports a distinction between knowing more about the team and assigning a more useful learning signal to a particular actor.

The comparison also exposes a tradeoff. Estimating a state value avoids conditioning on the joint action, which can simplify the prediction problem. COMA nonetheless performs better in the tested tasks, suggesting that its more targeted signal is worth the additional evaluation burden there.

#### A global value baseline does not replace the counterfactual

Central-QV is the most focused test of the baseline. It learns both an action-value function and a state-value function, then subtracts the latter from the former.

That subtraction evaluates the joint action against a general state reference. COMA instead asks how the focal actor’s action compares with its own policy-weighted alternatives under the actual teammate actions.

The reported superiority of COMA in training speed and final performance across settings is therefore evidence for the conditional comparison. Retaining a central action-value critic is insufficient to match the results when the baseline discards the focal-agent structure.

The experiment still leaves more than a symbolic change. Central-QV must learn an additional value estimate, so differences in estimation difficulty can affect the outcome. The controlled comparison supports the practical design as a whole; it does not measure every possible contributor to that difference independently.

#### The stability explanation follows from the baseline’s behaviour

The authors connect COMA’s stability with what happens as an actor becomes increasingly greedy. If almost all probability falls on the chosen action, the policy-weighted baseline approaches that action’s estimated value. Its counterfactual advantage correspondingly approaches zero.

This gives the learning signal a natural dependence on the actor’s remaining uncertainty. Once the current policy is nearly concentrated on a choice, the average alternative under that policy becomes close to the same choice.

The paper uses this property to interpret the observed stability relative to central-V. It is an explanation consistent with the algorithm and results, instead of a separate experiment that isolates this mechanism from critic accuracy, exploration, or optimisation.

A vanishing advantage also should not be interpreted as proof that the policy is globally good. It describes the relationship between the current policy and its baseline. The quality of the policy still depends on what learning and exploration discovered.

#### The comparisons identify useful ingredients without exhausting them

The ablations collectively support central evaluation, action-conditioned return estimates, and an agent-specific counterfactual reference. The actor architecture and general training procedure are held consistent across methods, and all critics use TD(λ), making the comparisons more informative.

They do not explore every design decision. The paper does not present a broad sensitivity study over critic architectures, all reward alternatives, or different ways of defining counterfactual action distributions.

The authors report that λ was particularly sensitive and that λ=0.8 worked best for COMA and the baselines in their tuning. They also note exploratory work on factored critics. These observations help locate practical concerns, but they are not substitutes for a full ablation programme on those dimensions.

### Limitations

#### The authors identify exploration and scale as unfinished work

The paper explicitly leaves larger teams for future investigation. Centralised critics become more difficult to train as the interaction structure grows, and useful coordinated exploration becomes harder.

Its architectural efficiency addresses a particular obstacle: the critic does not need an output for every team action. That does not remove the difficulty of discovering successful combinations of decisions or estimating their consequences from limited experience.

The authors’ investigation of factored critics reinforces this distinction. They found exploration more restrictive than critic centralisation in the settings they examined. That observation explains why a smaller output layer should not be equated with a complete scaling solution.

They also identify sample efficiency as an open requirement for practical applications. Vehicle coordination motivates the work, but the paper does not demonstrate a system learning safely or efficiently in that setting.

#### Continuous actions are proposed rather than tested

The implemented method focuses on discrete action sets. This makes it possible to compute the baseline by weighting a vector of action values with the actor’s probabilities.

The paper suggests extending the expectation to continuous actions through sampling or through distributions and critic forms that permit analytic evaluation. These are proposed routes beyond the tested algorithm.

They do not establish that an extension will retain the same computational cost, estimation quality, or empirical advantage. Sampling could introduce another source of variability, while an analytic expectation would constrain the functional choices. The experiments do not resolve those questions.

#### The theoretical guarantee has stronger assumptions than training

The authors state a convergence result under the conditions inherited from the policy-gradient argument. Those include compatible critic representation, unbiased targets, and critic convergence before policy updates.

The experimental procedure uses deep function approximation, finite training, target networks, and λ=0.8. The paper does not demonstrate that this procedure satisfies the theorem’s assumptions.

The formal conclusion concerns stationarity under those conditions. It does not guarantee the best possible cooperative policy, successful exploration, or a useful outcome in every run. A policy class constrained to decentralised information may also exclude behaviours available to an unrestricted central controller.

The erratum makes the information issue particularly important. The corrected critic depends on both state and joint history. A proof for history-dependent actors cannot simply replace that conditioning with physical state alone without further justification.

#### Learned alternatives are not observed counterfactual outcomes

A careful reader should distinguish counterfactual estimation from counterfactual measurement. COMA learns values from trajectories and uses those values to compare actions that may not have been taken in the current situation.

This avoids the need for extra simulations, but it shifts the burden to critic generalisation. If the critic poorly estimates an alternative, the advantage can give an unhelpful account of the selected action.

The baseline’s zero expected gradient contribution does not remove action-value estimation error. The cancellation establishes a property of the baseline within the gradient argument; it does not turn an inaccurate critic into an accurate one.

Nor does COMA produce a unique allocation of team success. Its attribution is relative to the actor’s policy and the teammates’ actual actions. A different reference policy or surrounding joint action can change the comparison.

#### The experimental scope is narrow

The reported tasks involve small symmetric teams fighting a fixed built-in opponent. They offer a useful test of local coordination, but do not establish behaviour against changing adversaries or across broad deployment conditions.

The actors also operate within a particular interface, observation design, reward function, and recurrent architecture. The mixed-unit scenario adds variation, but the experiments remain within StarCraft micromanagement.

The shared reward supplies substantial intermediate information through damage and kills. A reader should therefore avoid extending the results automatically to cooperative tasks where the only feedback is a rare terminal success.

Similarly, the benchmark’s restricted visibility is a meaningful decentralisation constraint, but it is not a demonstration of arbitrary communication failures or deployment changes. The evidence concerns the specific local-observation regime the authors construct.

#### Published best-performance comparisons need qualification

The comparison with centralised controllers is deliberately asymmetric. Earlier controllers receive more information and more powerful attack behaviour, while COMA uses restricted local actors. This makes competitive best-case performance notable.

However, comparing the strongest policies does not establish equal reliability, equal sample efficiency, or equal average performance across training runs. Those conclusions require corresponding reporting.

The 5w training-map qualification further limits direct equivalence. The paper’s more controlled evidence comes from its own actor-critic comparisons, where the execution setup and actor training are shared.

The numerical results discussion also does not give exact pairwise win-rate margins for those learning methods. The qualitative ordering is clear in the authors’ account, but it should not be converted into invented effect sizes or read-off numerical claims.

### What came after

#### The direct theoretical continuation concerns the critic’s information

The paper’s revised discussion points to later analyses by Lyu and colleagues concerning centralised and decentralised critics. These works matter because COMA’s critic is not merely an implementation convenience: its conditioning information enters the validity of the policy-gradient argument.

The corrected formulation adds joint history alongside the environment state. The paper also describes a related result covering a family of cooperative policy-gradient methods that includes COMA, under access to correct policy values.

That continuation sharpens an important distinction. Rich training information can be useful, but a state-based critic is not automatically interchangeable with a history-aware critic for partially observed, history-dependent actors. The theorem must match the information structure being evaluated.

#### Communication and summarisation provide a different application context

[Deep Communicating Agents for Abstractive Summarization](https://md.research.elamur.ai/free/en/papers/celikyilmaz-2018-deep-communicating-agents-abstractive-summarization/) is listed as a later citing work. Its title places communicating agents in [text summarization](https://md.research.elamur.ai/free/en/concepts/text-summarization/), extending the surrounding application landscape beyond physical coordination.

The citation establishes a connection, but does not specify that work’s use of COMA. It would be unwarranted to claim that it adopts the counterfactual baseline, central critic architecture, or training procedure without further methodological evidence.

The relevant conceptual question is nevertheless clear. When several interacting components contribute to a summary, an overall quality signal can leave their individual contributions ambiguous. COMA supplies one precise formulation of that ambiguity, while the citation alone does not establish how the later work resolves it.

#### Text evaluation connects through the question of what gets rewarded

[Sentence Mover’s Similarity: Automatic Evaluation for Multi-Sentence Texts](https://md.research.elamur.ai/free/en/papers/clark-2019-sentence-mover-s-similarity-automatic/) is another later citing work. Its stated subject is evaluation of multi-sentence text.

That subject concerns a different part of a learning system from COMA’s principal contribution. An evaluation measure defines or estimates outcome quality; a credit-assignment method determines how an outcome-related signal influences participating decisions.

The available bibliographic information does not establish the technical role of the COMA citation in this work. It supports identifying the connection while keeping those functions distinct. A better outcome measure would not, on its own, explain which cooperating component deserved credit.

#### Medical standardisation introduces an explicit multi-agent application

[DIMAS-OMOP: A Deliberative Intelligence-Based Multi-Agent System for Chinese Medical Text Standardization toward OMOP](https://md.research.elamur.ai/free/en/papers/lv-2026-dimas-omop-deliberative-intelligence-based/) names a multi-agent approach to medical text standardisation.

Its title establishes the application and the presence of multiple agents. It does not establish whether those agents learn through a shared reward, whether their execution is decentralised, or whether a critic evaluates alternative actions.

COMA is relevant to such a system only where its assumptions fit the actual decision process. If several agents jointly determine an outcome and learning must attribute that outcome, the counterfactual question becomes pertinent. The citation does not justify asserting that this particular mechanism is implemented.

#### Memory construction makes reward attribution explicit in the title

[MemBuilder: Reinforcing LLMs for Long-Term Memory Construction via Attributed Dense Rewards](https://md.research.elamur.ai/free/en/papers/shen-2026-membuilder-reinforcing-llms-long-term/) identifies attributed dense rewards as part of its approach to memory construction.

This creates a clear thematic connection with COMA’s concern: a reward becomes more useful for learning when its relationship to contributing decisions is made more specific. COMA achieves specificity through an agent-conditioned advantage derived from predicted return.

The title alone does not show that MemBuilder uses policy-weighted action marginalisation or holds other agents’ actions fixed. Its attribution mechanism, learning units, and empirical results cannot be inferred from the citation. The connection can therefore be described as a shared concern with reward attribution, instead of an established reuse of COMA’s formula.

#### Embodied cooperation continues the credit-assignment question directly

[MARS-RA: Rank Aggregation for Credit Assignment via Multimodal Comparisons in Embodied Multi-Agent Cooperation](https://md.research.elamur.ai/free/en/papers/wang-2026-mars-ra-rank-aggregation-credit/) explicitly names credit assignment in embodied cooperation. It also identifies rank aggregation and multimodal comparisons as elements of its stated approach.

Among these later titles, this is the most direct thematic continuation of COMA’s central problem. Both concern how a cooperative outcome should inform the assessment of participating agents.

The mechanisms should still remain separate. COMA constructs a policy-weighted baseline from critic estimates of alternative actions. The later title points to comparisons and rank aggregation, but supplies no basis for claiming how those operations relate mathematically to COMA’s advantage.

Taken together, the citing works show that the surrounding questions extend into communication, text evaluation, medical processing, memory, and embodied cooperation. They do not establish a common technical descendant that simply reproduces COMA. The durable contribution is more specific: a carefully defined comparison between an agent’s chosen action and its own alternatives, conditioned on what the rest of the team actually did.

## Cite

Cite as Jakob Foerster, Gregory Farquhar, Triantafyllos Afouras, Nantas Nardelli and Shimon Whiteson. 2017. Counterfactual Multi-Agent Policy Gradients. arXiv (Cornell University).

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

```bibtex
@misc{foerster2017counterfactual,
  title = {{Counterfactual Multi-Agent Policy Gradients}},
  author = {Jakob Foerster, Gregory Farquhar, Triantafyllos Afouras, Nantas Nardelli and Shimon Whiteson},
  year = {2017},
  doi = {10.48550/arxiv.1705.08926},
  eprint = {1705.08926},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1705.08926}
}
```

> 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)
