Paper commentary
Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments
Centralized critics let actors learn cooperation and competition among multiple agents
- Problem Q-learning breaks when every agent's policy keeps changing, so the environment looks non-stationary to each agent. Policy gradient avoids that but its variance grows as more agents join.
- Method MADDPG gives each agent a critic that sees all agents' actions, while its actor uses only its own observations. Each agent then acts alone when deployed.
- Results MADDPG listeners reached the target in 84.0% of episodes in cooperative communication, where DDPG failed to learn the task.
Why standard RL struggles with several learning agents
Most reinforcement learning successes so far come from single-agent settings, where the other actors can largely be ignored. Once several agents learn at once, each agent's policy keeps changing, so the world looks non-stationary from any single agent's side. That shift breaks the Markov assumptions Q-learning needs to converge, and it blocks the replay buffer that keeps deep Q-learning stable.
Policy gradient methods avoid that particular problem but pay for it with variance. An agent's reward depends on many other agents' actions, so a reward conditioned only on its own actions varies a lot. The authors make this concrete with a toy problem: N agents each pick a binary action and receive reward only when all their actions match.
Starting from uninformed probabilities of 0.5, the chance that a single-sample gradient points the right way is proportional to \((0.5)^N\). Baselines, the usual cure for variance, run into the same non-stationarity, so they don't rescue the estimator.
A centralized critic with decentralized actors
The central move is to give the critic information the actor never sees at run time: every agent's action, plus any extra state. The actor keeps only its own observations, so each trained policy can act alone when it is deployed. This follows centralized training with decentralized execution, where extra information is allowed during training but withheld at test time.
Q-learning can't take this route easily, because its Q function can't hold different information at training and test time.
With all actions in the critic's input, the environment looks stationary even as the other policies change, because the transition depends only on the joint action. Each agent gets its own critic, so reward functions can differ and even conflict in a competitive game. Only the actors are kept after training.
For agent i, the policy gradient is \(\nabla_{\theta_i} J(\theta_i)=\mathbb{E}\big[\nabla_{\theta_i}\log\pi_i(a_i|o_i)\,Q^{\pi_i}(x,a_1,\dots,a_N)\big]\), where x is state information and o_i is agent i's observation. Because the critic conditions on every action, the gradient for agent i takes the other agents' behaviour into account. For deterministic actors \(\mu_i\), the update differentiates the critic with respect to agent i's own action, evaluated at \(a_i=\mu_i(o_i)\).
The critic is fit by minimizing \(L(\theta_i)=\mathbb{E}[(Q^{\mu_i}(x,a_1,\dots,a_N)-y)^2]\), where \(y=r_i+\gamma Q^{\mu'_i}(x',a'_1,\dots,a'_N)\) with \(a'_j=\mu'_j(o_j)\) from the target policies.
How one training update runs
The paper builds these pieces into MADDPG, a multi-agent version of DDPG with one critic per agent. Transitions go into a replay buffer that stores the observations, actions and rewards of all agents. Each agent draws a minibatch, forms its target with the target policies of all agents, and updates its critic. Its actor then moves along the critic's action gradient at the actions produced from its own observations.
Target networks are used as in DDPG, so the targets change more slowly than the trained weights.
The update assumes the other agents' policies are known, which the authors consider acceptable when training simulated communicative behaviour. Section 4.2 of the paper removes that assumption by learning the other policies.
Learning models of other agents
Each agent keeps an approximate policy for every other agent and fits it from the other agents' sampled actions and observations. The fit minimizes \(L(\phi_i^j)=-\mathbb{E}_{o_j,a_j}[\log\hat\mu_i^j(a_j|o_j)+\lambda H(\hat\mu_i^j)]\), so it maximizes the log probability of the observed actions plus an entropy bonus weighted by \(\lambda\).
The minus sign turns that objective into a loss, and H is the entropy of the approximate policy distribution. The critic target then uses these approximations in place of the true policies, giving \(\hat y=r_i+\gamma Q^{\mu'_i}(x',\hat\mu'^1_i(o_1),\dots,\hat\mu'^N_i(o_N))\).
The fit runs online: before each critic update, one gradient step uses the latest samples of every other agent from the replay buffer. The approximate log probabilities go straight into the critic, rather than sampled actions.
Training against an ensemble of sub-policies
In competitive settings, an agent can overfit to the behaviour of its competitors, and such a policy is brittle when they change strategy. To counter this, each agent holds K different sub-policies, and one is picked at random for each episode. Each sub-policy has its own replay buffer, because the episodes in which it runs are different from those of the others.
The ensemble objective is \(J_e(\mu_i)=\mathbb{E}_{k\sim \mathrm{unif}(1,K),\,s\sim p_\mu,\,a\sim\mu_i^{(k)}}[R_i(s,a)]\), and its gradient for each sub-policy carries a factor of 1/K. The authors link this to a broader requirement: agents should interact successfully with an ensemble of possible policies of the others.
Test environments and setup
The experiments use a grounded communication environment adopted from prior work, with landmarks, physical actions and broadcast communication actions. Unlike that work, the agents need not share identical action and observation spaces or the same policy. In cooperative communication, a speaker sees the target colour and a listener must reach the matching landmark among three.
Cooperative navigation, keep-away, physical deception, predator-prey and covert communication add cooperative, competitive and adversarial variants. Policies are two-layer ReLU MLPs with 64 units per layer unless stated otherwise, and messages use the Gumbel-Softmax estimator. Trained models are evaluated by averaging metrics over 1000 further iterations after training converges.
Cooperative communication results
The authors compare MADDPG with DQN, actor-critic, TRPO and DDPG on cooperative communication. The speaker only needs to output its observation, yet the baselines still failed to learn the correct behaviour. The listener learned to ignore the speaker and moved to the middle of the observed landmarks. The authors hypothesize that the cause is a missing consistent gradient signal, since the speaker is penalized when the listener moves the wrong way.
MADDPG listeners reached the target in 84.0% of episodes. The speaker learned to output the target colour, so the listener could follow it. This gap is the main evidence that the critic's extra information helps coordination here.
Physical deception and covert communication results
In physical deception with L = 2, MADDPG cooperators covered all landmarks around 94% of the time. An adversary trained with DDPG succeeded only 16.4% of the time against them. DDPG cooperators could not deceive MADDPG adversaries in any scenario, and did not deceive other DDPG agents when L = 4.
In covert communication, Bob trained with MADDPG reached a relative success rate of 52.4%, compared to 25.1% for Bob trained with DDPG. Only Alice trained with MADDPG pushed Eve to near-random reconstruction accuracy. The learning curves oscillate as the agents adapt to each other, and common decentralized RL methods often can't overcome this.
The authors used none of the extra tricks from the earlier cryptography work, such as altering Eve's loss.
Cooperative navigation and predator-prey results
Cooperative navigation and predator-prey show a less stark divide between success and failure.
Approximate policies versus true policies
The authors test approximate policies in cooperative communication with the entropy weight \(\lambda = 0.001\). Even so, learning with approximations reached the same success rate as using the true policies, without a significant slowdown in convergence.
Ensemble agents against single-policy agents
The authors use K = 3 sub-policies for keep-away and cooperative navigation and K = 2 for predator-prey. To speed convergence, cooperative agents share the same policy in each episode, and so do the adversaries. Ensemble agents beat single-policy adversaries by a larger margin than single-policy agents achieved when the roles were reversed.
The comparison uses a 0-1 normalized score, and MADDPG outperforms DDPG when they are pitted directly against each other.
Limitations
The input space of the critic grows linearly with the number of agents, depending on what information it contains. The authors suggest a modular critic that looks only at nearby agents, but they leave this to future work. The method needs the other agents' observations and policies to compute its update. The experiments use only feed-forward policies, although the authors say the method also applies to recurrent ones.
The covert communication results don't include the extra training tricks used in the cryptography work, so they don't isolate the centralized critic from those tricks.
Paper info
- Authors
- Ryan Lowe, Yi Wu, Aviv Tamar, Jean Harb, Pieter Abbeel, Igor Mordatch
- Venue
- arXiv · Preprint
- First published
- 2017-6-7
- Added
- 2026-11-12
- Updated
- 2020-3-14
- Version
- v4
- arXiv
- 1706.02275
- Category
- cs.LG · cs.AI · cs.NE
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Ryan Lowe, Yi Wu, Aviv Tamar, Jean Harb, Pieter Abbeel, Igor Mordatch (2017). Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments. arXiv:1706.02275v4. https://arxiv.org/abs/1706.02275v4
BibTeX
@misc{lowe2017multi,
title = {{Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments}},
author = {Ryan Lowe and Yi Wu and Aviv Tamar and Jean Harb and Pieter Abbeel and Igor Mordatch},
year = {2017},
eprint = {1706.02275},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1706.02275v4}
}