COLA: Consistent Learning with Opponent-Learning Awareness

Timon Willi, Johannes Treutlein, Alistair Letcher, Jakob N. Foerster · DOI

Introduction

In multi-agent reinforcement learning (MARL), general-sum games present a unique challenge: agents' interests are neither perfectly aligned nor perfectly opposed. A significant breakthrough in this field was the introduction of Learning with Opponent-Learning Awareness (LOLA), which allows agents to engage in "opponent shaping." In LOLA, an agent accounts for how its own actions will influence the future learning steps of its opponent. However, LOLA suffers from a fundamental "consistency" problem. It assumes the opponent is a naive learner using basic gradient descent, even if the opponent is also using LOLA. This "arrogant" assumption leads to an infinite regress of higher-order reasoning that often causes the learning process to diverge or fail to maintain stable fixed points (SFPs).

Consistent Learning with Opponent-Learning Awareness (COLA) addresses this flaw by seeking a fixed point in the space of learning rules rather than relying on infinite recursion. By ensuring that agents' expectations of each other are mutually consistent, COLA achieves superior stability and finds prosocial solutions in complex games where previous methods fail.

Methodology

COLA moves away from the closed-form mathematical expressions of higher-order LOLA (HOLA), which are often impossible to derive for complex systems. Instead, it parameterizes the agents' update functions ($f_1, f_2$) as neural networks.

Consistency Equations and Loss

The core of COLA is the definition of consistency: a state where Agent A’s update function accurately accounts for Agent B’s update function, and vice versa. The authors train these neural networks by minimizing a "consistency loss." This loss represents the difference between an agent's actual update and the update it should ideally make if it perfectly anticipated its opponent's response.

Computational Efficiency

While higher-order methods like HOLA require increasingly high-order derivatives that become computationally prohibitive, COLA only requires up to second-order derivatives (Hessians). This makes the approach significantly more feasible for practical applications while maintaining a high degree of accuracy in anticipating opponent behavior.

Experimental Evaluation

The researchers evaluated COLA across a suite of classic game theory benchmarks and "pathological" games designed to expose the weaknesses of existing algorithms:

  • Polynomial Games: Including the Tandem game (designed to make LOLA fail), the Hamiltonian game (characterized by purely rotational dynamics), and the Balduzzi game.
  • Social Dilemmas: Including Matching Pennies (zero-sum), the Ultimatum Game (bargaining), the Iterated Prisoner’s Dilemma (IPD), and the Chicken Game.

Key Insights and Results

Stability and Convergence

COLA demonstrated remarkable stability, particularly in games where standard algorithms diverge. In the Hamiltonian game, while LOLA and Stable Opponent Shaping (SOS) iterates diverged to infinity, COLA’s learned update functions successfully converged to the origin. Similarly, in the Tandem game, COLA achieved a near-zero consistency loss ($\approx 10^{-14}$), whereas even 6th-order LOLA (HOLA6) exhibited a loss of over $10^5$ at high learning rates.

Prosocial Outcomes

One of the most striking results occurred in the Ultimatum Game. COLA was the only algorithm that consistently found the "fair" solution ($5/$5 split) at high look-ahead rates. Other methods, such as SOS or LOLA, typically converged to lopsided, unfair outcomes. In the Iterated Prisoner's Dilemma, while COLA did not explicitly replicate the "tit-for-tat" strategy, it learned policies that achieved near-optimal total payoffs for both players.

Theoretical Contributions

The paper also provides significant theoretical corrections to the MARL literature:

  • The SFP Myth: The authors proved that LOLA’s failure to stay at Stable Fixed Points (SFPs) is not caused by inconsistency. Even perfectly consistent agents may move away from SFPs to "shape" their opponent toward better global outcomes.
  • CGD Equivalence: The authors mathematically disproved the claim that Competitive Gradient Descent (CGD) is equivalent to a series expansion of higher-order LOLA, showing instead that CGD recovers a different algorithm known as "LookAhead."

Limitations and Future Work

While COLA represents a significant step forward, several challenges remain. The current framework is optimized for two-player interactions; extending mutual consistency to $N$-player games involves a complex web of dependencies. Additionally, the experiments utilized relatively small neural networks on games with few parameters. Scaling COLA to high-dimensional problems, such as Generative Adversarial Networks (GANs) or complex Deep RL environments, is a primary goal for future research. Finally, the authors noted that solutions to consistency equations are not necessarily unique, though empirical tests showed that different training runs yielded similar results.

Summary updated

BibTeX
@inproceedings{willi2022cola,
  author = {Timon Willi and Johannes Treutlein and Alistair Letcher and Jakob N. Foerster},
  title = {{COLA: Consistent Learning with Opponent-Learning Awareness}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=xbx7Hxjbd79},
}
Figure