NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multi-agent cooperation through learning-aware policy gradients

Alexander Meulemans, Seijin Kobayashi, Johannes von Oswald, Nino Scherrer, Eric Elmoznino, Blake Aaron Richards, Guillaume Lajoie, Blaise Aguera y Arcas, Joao Sacramento

Executive Summary

Researchers have developed COALA-PG, a novel reinforcement learning algorithm that enables self-interested agents to cooperate in complex social dilemmas. By explicitly accounting for how their actions influence the learning of others, these agents can "shape" their opponents' behavior. Combining an unbiased, derivative-free gradient estimator with long-context sequence models, COALA-PG fosters stable cooperation without requiring access to the opponents' internal code or parameters.

The Challenge of Multi-Agent Reinforcement Learning

In multi-agent reinforcement learning (MARL), "social dilemmas" represent a classic failure mode. These are scenarios—such as the famous Iterated Prisoner’s Dilemma—where individual self-interest directly conflicts with the collective good. When every agent independently optimizes for their own immediate reward, they frequently fall into a "mutual defection" trap where all participants lose.

Two primary hurdles prevent cooperation in these environments:

  1. Non-stationarity: As an agent learns, its behavior changes. This constantly shifts the environment and the optimal strategy for everyone else.
  2. Equilibrium Selection: Games often have multiple Nash equilibria. Independent learners typically gravitate toward "safe" but low-reward outcomes (like mutual defection) rather than "risky" but high-reward ones (like mutual cooperation).

Existing "learning-aware" methods, such as LOLA (Learning with Opponent-Learning Awareness), attempt to solve this by modeling how opponents learn. However, these approaches often rely on complex higher-order derivatives that are computationally expensive and unstable, or they unrealistically assume perfect access to the opponent's learning rules and parameters.

Introducing COALA-PG

To overcome these limitations, the authors introduce COALA-PG (CO-Agent Learning-Aware Policy Gradients). This algorithm introduces several key architectural and mathematical innovations:

Comparison of Naive and Meta agents based on context utilization.
  • Unbiased & Derivative-Free Estimation: Unlike previous methods that backpropagate through the opponent's update function (requiring second-order derivatives), COALA-PG uses a novel policy gradient estimator. It treats the opponent's learning as part of the environment's dynamics, making the process "higher-derivative-free" and significantly more stable.
  • Minibatch Awareness: Real-world RL agents update their policies using batches of data. COALA-PG is the first algorithm to correctly scale its gradients to account for the "batched" learning of co-players, preventing the learning signal from vanishing as batch sizes increase.
Illustration of parallel trajectories and inner-episodes forming a meta-trajectory.
  • Long-Context Sequence Models: The agents utilize Hawk, a linear-time recurrent neural network, to process extensive histories of interaction. This enables agents to perform "in-context" inference—essentially feeling out the strategy of their current opponent and adjusting their behavior to shape that opponent's future learning.
  • Single-Level Policy: Instead of relying on separate "meta-policies" and "inner-policies," COALA-PG uses a unified architecture that handles both immediate game actions and long-term strategic shaping.

Experimental Setup

The researchers evaluated COALA-PG on two primary benchmarks:

  1. Iterated Prisoner’s Dilemma (IPD): The classic matrix game used to study the fundamental emergence of cooperation and extortion.
  2. CleanUp-lite: A more complex, sequential social dilemma adapted from the Melting Pot suite. In this 2D grid world, agents must clean a river to spawn apples. This introduces a "free-rider" problem (an agent could just eat apples while the other cleans) and includes a "zap" action that allows agents to temporarily freeze each other.

Key Insights and Results

The experiments yielded several fascinating insights into the dynamics of artificial cooperation:

  • Extortion as a Stepping Stone: The authors observed that learning-aware agents often first learn to "extort" naive agents. The meta-agent forces the naive agent to do all the labor (like cleaning the river) while reaping the rewards.
  • Heterogeneity Breeds Cooperation: Surprisingly, robust cooperation emerges most reliably when agents are trained in a mixed pool of both naive and learning-aware agents. The pressure to extort naive agents balances against the necessity to cooperate with other learning-aware agents, leading to a stable, "tit-for-tat" style of cooperation.
  • Superior Performance and Shaping: COALA-PG significantly outperformed baselines like M-FOS and LOLA-DICE in the CleanUp-lite environment, achieving higher collective returns. The agents successfully "trained" naive opponents to clean the river more frequently and "zap" less often.
  • Theoretical Bridge: The paper provides a theoretical connection to the LOLA algorithm, showing that LOLA’s success relies on two distinct ingredients: a shaping gradient (to move away from defection) and a partial gradient (to move toward cooperation). COALA-PG naturally captures both without the need for higher-order derivatives.

Limitations and Future Directions

While COALA-PG represents a significant step forward, challenges remain. Scaling this approach to "N-player" environments where many agents learn simultaneously is an open problem. Furthermore, the agent must infer the strategy of its opponent purely from observation; in massive or highly diverse populations, this "in-context" inference could become computationally prohibitive. Finally, training agents on very long histories requires substantial memory and compute compared to standard RL.

Future work may explore "algorithm distillation"—using these techniques to discover even more robust learning rules that can be baked into agents from the start, paving the way for more cooperative and aligned multi-agent systems.

Summary updated

BibTeX
@inproceedings{meulemans2025multi,
  author = {Alexander Meulemans and Seijin Kobayashi and Johannes von Oswald and Nino Scherrer and Eric Elmoznino and Blake Aaron Richards and Guillaume Lajoie and Blaise Aguera y Arcas and Joao Sacramento},
  title = {{Multi-agent cooperation through learning-aware policy gradients}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=GkWA6NjePN},
}
Figure