[Paper Review] Playing repeated games with Large Language Models
The paper investigates how GPT-3, GPT-3.5, and GPT-4 behave in finitely repeated 2x2 games, revealing strong self-interest in Prisoner’s Dilemma-like settings and poor coordination in the Battle of the Sexes, with findings robust across tests and prompts. It also shows that prompting GPT-4 to predict the other player or to acknowledge fallibility can improve coordination and cooperation.
LLMs are increasingly used in applications where they interact with humans and other agents. We propose to use behavioural game theory to study LLM's cooperation and coordination behaviour. We let different LLMs play finitely repeated $2 imes2$ games with each other, with human-like strategies, and actual human players. Our results show that LLMs perform particularly well at self-interested games like the iterated Prisoner's Dilemma family. However, they behave sub-optimally in games that require coordination, like the Battle of the Sexes. We verify that these behavioural signatures are stable across robustness checks. We additionally show how GPT-4's behaviour can be modulated by providing additional information about its opponent and by using a "social chain-of-thought" (SCoT) strategy. This also leads to better scores and more successful coordination when interacting with human players. These results enrich our understanding of LLM's social behaviour and pave the way for a behavioural game theory for machines.
Motivation & Objective
- Motivate studying LLMs’ social behavior using behavioral game theory in controlled, interactive settings.
- Characterize LLM performance across canonical 2x2 game families, focusing on cooperation and coordination.
- Identify behavioral signatures of LLMs in iterated interactions and test robustness across prompts and payoff framings.
- Explore simple interventions (predicting others, acknowledging fallibility) to improve LLM coordination.
Proposed method
- Prompt-chain interactions where two LLMs play 10 rounds of each 2x2 game with full information.
- Evaluate 144 distinct 2x2 games across families (win-win, Prisoner’s Dilemma, biased, cyclic, unfair, second-best) using GPT-3, GPT-3.5, and GPT-4.
Experimental results
Research questions
- RQ1Do LLMs exhibit cooperative vs. self-interested behavior across 2x2 game families?
- RQ2Are LLMs able to coordinate in canonical coordination games like Battle of the Sexes?
- RQ3How do LLMs’ behaviors depend on the model size (GPT-3 vs GPT-3.5 vs GPT-4) and on prompt variations?
- RQ4Can interventions (e.g., predicting the other player, assuming partner fallibility) modulate LLM social behavior?
- RQ5Are observed behaviors robust to framing, payoff representations, and prompt order?
Key findings
- LLMs generally perform well in games emphasizing self-interest, especially within Prisoner’s Dilemma families.
- LLMs show suboptimal performance in coordination-heavy games like Battle of the Sexes.
- GPT-4 exhibits unforgiving defection after any prior defection in Prisoner’s Dilemma scenarios.
- GPT-4 fails to alternate when facing an alternating opponent in Battle of the Sexes, signaling coordination challenges.
- Prompting GPT-4 to predict the partner’s actions improves its ability to coordinate and alternate behavior.
- Communicating that the other player can make mistakes can restore cooperation in GPT-4 over rounds.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.