techlist.io

Iterated Prisoners Dilemma

1 posts

OpenAI2017-09-122 min readCurated summary

Learning with opponent-learning awareness

Learning with Opponent-Learning Awareness (LOLA) is a multi-agent reinforcement learning method in which each agent accounts for how its own policy will shape the other agents' anticipated learning updates. Unlike independent learners, LOLA agents that encounter each other learn to cooperate, even in social dilemmas where self-interest would otherwise lead to defection. The method is practical for model-free RL and scales to large parameter spaces and nonlinear function approximators. ## The Problem with Multi-Agent Learning - When multiple agents learn at once, each agent's environment becomes non-stationary, which often causes unstable training or poor final outcomes. - The post frames this as a general issue across deep multi-agent RL, hierarchical RL, generative adversarial networks, and decentralised optimisation. ## The LOLA Learning Rule - Each agent anticipates the other agents' parameter updates and adds a term that measures how its own policy affects those updates. - This lets an agent shape the learning of its opponents rather than treating them as fixed. - The method can be computed efficiently with an extension of the policy gradient estimator, so it works without a model of the environment. ## Results on Benchmark Games - **Iterated prisoners' dilemma:** Two LOLA agents converge to tit-for-tat and cooperate, while independent learners do not. LOLA agents also earn higher payouts than naive learners and resist exploitation by higher-order gradient methods. - **Repeated matching pennies:** LOLA agents converge to the Nash equilibrium. - **Round-robin tournament:** LOLA agents shape the learning of a range of multi-agent algorithms from the literature and achieve the highest average returns on the iterated prisoners' dilemma. ## Grid World with Embedded Social Dilemma - The authors test LOLA on a grid world containing a social dilemma, using recurrent policies and opponent modelling. - By explicitly modelling the other agent's learning, LOLA agents learn to cooperate out of self-interest. ## Practical Takeaway For multi-agent settings where agents learn simultaneously, explicitly modelling how other agents will update can turn competitive dynamics into cooperative outcomes. The authors have released their code.