Multi-Agent Systems and Collective Intelligence
Multi-Agent Foundations: Cooperation, Competition, and the Iterated Prisoner's Dilemma · 15 min
Shoham and Leyton-Brown open their textbook Multiagent Systems: Algorithmic, Game-Theoretic, and Logical Foundations by framing the field's subject as any setting in which multiple autonomous agents interact within a shared environment, each agent choosing its own actions and, in general, having its own information, capabilities, and objectives. This directly extends the single-agent picture Russell and Norvig formalize in their classical taxonomy of simple reflex, model-based reflex, goal-based, and utility-based agents: a multi-agent system asks what changes once the environment an agent perceives and acts on itself contains other agents that are simultaneously perceiving and acting, each pursuing its own goals or maximizing its own utility function. Shoham and Leyton-Brown organize multi-agent settings along a spectrum defined by how the agents' interests relate to one another. At one extreme sit fully cooperative systems, where every agent shares a single common goal and the main difficulty is coordinating who does what, so that effort is not wasted or actions do not conflict. At the opposite extreme sit strictly competitive, zero-sum systems, where one agent's gain is necessarily another's loss. Between these poles lie mixed-motive systems, the setting most real multi-agent interactions fall into, where agents' interests partially align and partially conflict, so some outcomes benefit everyone while others pit agents against each other. Classifying a multi-agent problem along this spectrum is often the first analytical step, because it determines whether the agents mainly need a coordination mechanism, a negotiation mechanism, or a strategy for competing against an adversary.
Because mixed-motive and competitive multi-agent settings involve agents that cannot simply be told what to do, game theory supplies the vocabulary multi-agent systems research uses to reason about how such agents should, and rationally will, behave. The central solution concept, due to John Nash's 1950 paper 'Equilibrium Points in N-Person Games,' is the Nash equilibrium: a combination of strategies, one per agent, such that no single agent could obtain a better outcome for itself by unilaterally switching strategies while every other agent's strategy stays fixed. Nash equilibrium is a well-established, mid-twentieth-century mathematical result, not an open research question, and it plays the same role in multi-agent systems that a utility function plays for a lone Russell-and-Norvig utility-based agent: it defines what rational behavior means once an agent's payoff depends not only on its own choices but on the simultaneous choices of every other agent sharing its environment. A recurring, and initially surprising, feature of this theory is that the unique Nash equilibrium a set of individually rational agents converges to can leave every one of them worse off than an alternative they could have reached through cooperation, a gap between individual rationality and collective welfare that motivates much of the coordination research in multi-agent systems, and that recurs directly in how multi-agent reinforcement learning is designed.
Robert Axelrod turned this abstract tension into an empirical question in the late 1970s by running a computer tournament in which researchers from game theory, psychology, economics, and other fields submitted programs to play a round-robin iterated Prisoner's Dilemma against one another, the same game repeated many times against the same opponent rather than played only once. Axelrod, together with W.D. Hamilton, reported the results in their 1981 Science paper 'The Evolution of Cooperation': the winning entry, submitted by the game theorist Anatol Rapoport, was Tit-for-Tat, a strategy that cooperates on the first move and thereafter simply repeats whatever the opponent played on the previous round. Tit-for-Tat outperformed far more elaborate submissions, including strategies designed to detect and exploit weaknesses, because in a repeated game success depends less on cleverness in any single round than on sustaining a cooperative relationship, being nice by never defecting first, retaliatory by punishing defection immediately, and forgiving by returning to cooperation as soon as the opponent does. Axelrod and Hamilton's central insight was that repetition changes the game: because each player knows today's choice affects the opponent's future moves, a 'shadow of the future' can make mutual cooperation a rationally sustainable outcome among purely self-interested agents with no central authority enforcing it, an early, foundational demonstration that decentralized, locally self-interested decision rules can produce stable, collectively beneficial behavior.
- Shoham, Y. & Leyton-Brown, K., Multiagent Systems: Algorithmic, Game-Theoretic, and Logical Foundations (Cambridge University Press, 2009)
- Nash, J. (1950), "Equilibrium Points in N-Person Games," PNAS 36(1)
- Axelrod, R. & Hamilton, W.D. (1981), "The Evolution of Cooperation," Science 211(4489), 1390-1396
Multi-Agent Reinforcement Learning: Learning to Cooperate, Compete, and Communicate · 15 min
Reinforcement learning already gives a single agent a way to learn a good policy through trial and error, so the most direct way to build a multi-agent learning system is to let each agent run its own independent RL algorithm, treating every other agent as an unpredictable part of the environment. Ardi Tampuu and colleagues tested this independent-learners approach directly in a 2017 study that trained two separate deep Q-network agents to play a modified two-player version of the Atari game Pong against each other, examining how the agents' behavior shifted between cooperative and competitive as the researchers varied the reward each agent received for the opponent's outcomes. The approach can work reasonably well in a simple two-agent setting like this one, but it runs into a fundamental problem as soon as more than one agent is simultaneously learning: from any single agent's point of view, the environment is no longer stationary, because the effective rules implicitly change every time another agent updates its own policy in response to what it has learned so far. Standard single-agent reinforcement learning theory assumes a fixed, unchanging environment to guarantee that an agent's value estimates will eventually converge, and that assumption is violated the moment several agents adapt to each other at once, since each is effectively chasing a moving target. This non-stationarity problem remains an active, unresolved area of multi-agent reinforcement learning research, distinct from the settled mathematics of Nash equilibrium itself, and much subsequent methodological work in the field is aimed directly at compensating for it.
One influential response to non-stationarity is the centralized-training-with-decentralized-execution paradigm, introduced by Ryan Lowe and colleagues in their 2017 paper on the Multi-Agent Deep Deterministic Policy Gradient algorithm, known as MADDPG. Instead of training each agent's policy using only what that agent itself can observe, MADDPG equips every agent with a centralized critic allowed to see the observations and actions of all agents during training, which stabilizes learning because the critic's input no longer changes unpredictably as other agents adapt. Critically, only the critic gets this privileged access; each agent's actual policy, the actor that chooses its actions, still uses only its own local observations, so the resulting policies remain deployable in a decentralized way once training is complete. Lowe and colleagues showed this approach handles cooperative, competitive, and mixed cooperative-competitive environments substantially better than fully independent learners. A related difficulty specific to cooperative multi-agent settings is credit assignment: when a team of agents receives one shared reward for a joint outcome, it is not obvious how much of that reward any individual agent's own action actually caused. Jakob Foerster and colleagues addressed this in their 2018 Counterfactual Multi-Agent Policy Gradients method, known as COMA, which computes a counterfactual baseline for each agent by asking how the team's reward would have differed had that one agent taken a different, fixed default action while every other agent's action stayed the same, isolating each agent's individual marginal contribution to the shared outcome.
At much larger scale, Oriol Vinyals and colleagues' AlphaStar, described in a 2019 Nature paper, reached Grandmaster level at the real-time strategy game StarCraft II using a league of agents trained through extensive multi-agent self-play, in which many copies of the system, including deliberately specialized exploiter agents trained to find and punish weaknesses in the main agents' strategies, competed against one another continuously; the diversity and adversarial pressure generated inside this league, rather than any single match against a human, drove the system's strategies to keep improving. Trapit Bansal and colleagues showed in a 2018 study that this general phenomenon does not require game-specific engineering: when they trained simple simulated agents against each other in shared physical environments with only a sparse win-or-lose competitive reward, the agents' behavior grew substantially more complex over training purely as a byproduct of the adversarial pressure their opponents applied, without that specific complexity being hand-designed or explicitly reward-shaped by the researchers. A related, still-active line of research asks whether agents can invent their own communication protocols; Igor Mordatch and Pieter Abbeel showed in a 2018 study that populations of agents trained end-to-end with an open communication channel and a shared cooperative task spontaneously developed compositional, symbol-like communication strategies to coordinate their behavior, without being given any predefined language. Together, these results show that emergent complexity, emergent communication, and effective credit assignment remain genuinely open multi-agent reinforcement learning research problems, in sharp contrast to the settled, decades-old mathematics of Nash equilibrium.
- Tampuu, A. et al. (2017), "Multiagent Cooperation and Competition with Deep Reinforcement Learning," PLOS ONE
- Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments (Lowe, Wu, Tamar, Harb, Abbeel & Mordatch, 2017)
- Foerster, J., Farquhar, G., Afouras, T., Nardelli, N. & Whiteson, S. (2018), "Counterfactual Multi-Agent Policy Gradients" (COMA), AAAI
- Vinyals, O. et al. (2019), "Grandmaster Level in StarCraft II Using Multi-Agent Reinforcement Learning," Nature 575, 350-354
- Bansal, T., Pachocki, J., Sidor, S., Sutskever, I. & Mordatch, I. (2018), "Emergent Complexity via Multi-Agent Competition," ICLR
- Mordatch, I. & Abbeel, P. (2018), "Emergence of Grounded Compositional Language in Multi-Agent Populations," AAAI
Cooperation, Competition, and Multi-Agent Learning
The Prisoner's Dilemma payoff matrix (Agent A, Agent B). Mutual Defection, outlined, is the unique Nash equilibrium — even though Mutual Cooperation leaves both agents strictly better off.
- A multi-agent system's interests run from fully cooperative (one shared goal, mainly a coordination problem) through mixed-motive to strictly competitive (zero-sum); Nash equilibrium — a strategy profile no single agent can improve on by deviating alone — is the mid-20th-century solution concept for reasoning about all three, and it can leave every agent worse off than a cooperative alternative, as the Prisoner's Dilemma shows.
- Axelrod's iterated tournaments found that Tit-for-Tat (cooperate first, then mirror the opponent's last move) beat far more complex strategies, because repetition creates a "shadow of the future": being nice, retaliatory, and forgiving sustains cooperation among self-interested agents with no central enforcement.
- Naively letting each agent run independent Q-learning breaks down as more agents learn simultaneously, because the environment becomes non-stationary from any one agent's view. MADDPG fixes this with a centralized critic used only in training; COMA solves credit assignment with a counterfactual baseline; AlphaStar and Bansal et al. show complex strategy — and Mordatch & Abbeel show even communication itself — can emerge purely from multi-agent competition or cooperation, without being hand-designed.
Recall Practice
Glossary
- Multi-Agent System (MAS)
- A setting, per Shoham and Leyton-Brown, in which multiple autonomous agents interact within a shared environment, each with its own information, capabilities, and objectives, ranging from fully cooperative through mixed-motive to strictly competitive interaction.
- Nash Equilibrium
- A combination of strategies, one per agent, such that no single agent could obtain a better outcome by unilaterally switching to a different strategy while every other agent's strategy stays fixed; the central solution concept of game theory, due to John Nash's 1950 paper.
- Iterated Prisoner's Dilemma
- A repeated version of the Prisoner's Dilemma played many times against the same opponent, in which Axelrod's computer tournaments found that reciprocal strategies like Tit-for-Tat could sustain mutual cooperation among self-interested agents, unlike the single-shot game's unique Defect-Defect equilibrium.
- Non-Stationarity (in MARL)
- The problem that, from a single learning agent's perspective, the effective environment keeps changing as other agents simultaneously update their own policies, violating the fixed-environment assumption that single-agent reinforcement learning convergence guarantees rely on.
- Centralized Training with Decentralized Execution (CTDE)
- A multi-agent reinforcement learning paradigm, used in MADDPG, in which agents are trained with a centralized critic that has privileged access to all agents' observations and actions, while each agent's deployed policy uses only its own local observations at execution time.
- Credit Assignment Problem
- In cooperative multi-agent reinforcement learning, the difficulty of determining how much of a shared team reward any individual agent's own action actually caused; COMA addresses this with a counterfactual baseline isolating each agent's marginal contribution.
Running a Miniature Axelrod Tournament by Hand
A virtual, paper-based simulation — no live model calls, code execution, or API access of any kind. Working from the fixed payoff matrix (3,3) for mutual cooperation, (5,0)/(0,5) for one-sided defection, and (1,1) for mutual defection, learners manually play a five-round iterated Prisoner's Dilemma between two named strategies (Always Defect versus Tit-for-Tat, then Always Cooperate versus Tit-for-Tat), writing down each round's moves and running payoff totals on paper. After tallying final scores for both pairings, learners write a short paragraph explaining, using the actual numbers they computed, why Tit-for-Tat outperforms Always Defect against an unpredictable field of opponents even though Always Defect wins any single one-shot round, connecting their worked totals back to Axelrod and Hamilton's account of why reciprocity can sustain cooperation among self-interested agents.
Ready to test yourself?
5 questions on this module.