AI Pulse by Inblix

When AI Learns That Others Are Learning, Cooperation Emerges

OpenAI Blog · Jul 20, 2026 · 2 min read · Read original article →

Curated by the Inblix editorial team


Featured image for article: When AI Learns That Others Are Learning, Cooperation Emerges

The core headache of multi-agent AI isn’t just getting agents to learn — it’s getting them to learn while everyone else is learning too. That moving-target problem turns training into a non-stationary mess where algorithms often spiral into instability or selfish dead-ends. A new method called Learning with Opponent-Learning Awareness (LOLA) tackles this head-on by giving each agent a simple but powerful upgrade: the ability to anticipate how its own actions will change another agent’s future behavior.

The trick is a modified learning rule. Standard policy gradient methods update an agent’s parameters to maximize its own reward, treating the environment — including other agents — as static. LOLA adds a correction term that models the impact of one agent’s policy update on the anticipated parameter update of the others. In effect, each LOLA agent asks, “If I change my strategy this way, how will my opponent’s learning algorithm respond?” That one extra consideration changes everything.

In the iterated prisoners’ dilemma, the canonical testbed for cooperation, two LOLA agents spontaneously develop tit-for-tat strategies. Independent learners, by contrast, never get there on their own. The LOLA agents earn significantly higher payouts than naive learners and prove robust against exploitation — even when facing higher-order gradient-based opponents actively trying to take advantage of them. Applied to repeated matching pennies, the agents reliably converge to the Nash equilibrium, something that’s notoriously slippery in multi-agent settings. A round-robin tournament against a range of existing multi-agent learning algorithms from the literature showed LOLA coming out on top with the highest average returns.

Perhaps most practically, the team showed the LOLA update rule can be computed efficiently using an extension of the standard policy gradient estimator. That means it works with model-free reinforcement learning and scales to large parameter spaces with nonlinear function approximators like neural networks. They demonstrated this on a grid world task containing an embedded social dilemma, using recurrent policies and opponent modeling. By explicitly accounting for the learning process of the other agent, LOLA agents learned to cooperate — not out of altruism, but out of calculated self-interest. The code is publicly available.

💡 Key Takeaways

  1. LOLA agents learn to cooperate in the iterated prisoners' dilemma by anticipating how opponents will learn, a feat independent learners cannot achieve.
  2. The method proves robust against exploitation from higher-order gradient-based opponents designed to take advantage of naive learners.
  3. The LOLA update rule extends standard policy gradient estimators, making it compatible with model-free RL and scalable to deep neural networks.

Keep reading: See related articles below for more coverage on this topic.

Get smarter about AI

The sharpest AI news, curated daily. Delivered free to your inbox.

Learn more

Glossary terms

← Back to all articles