Nicer Than Humans: How do Large Language Models Behave in the Prisoner's Dilemma?
Nicol\'o Fontana, Francesco Pierri, Luca Maria Aiello

TL;DR
This study explores how large language models behave in the Prisoner's Dilemma, revealing that they tend to be more cooperative than humans, with variations among different models in their responses to opponent hostility.
Contribution
The paper introduces a systematic methodology for evaluating LLMs in game theory scenarios, providing insights into their social behaviors and cooperation tendencies.
Findings
Llama2 and GPT3.5 are more cooperative and forgiving than humans.
Llama3 tends to be uncooperative and exploitative unless the opponent always cooperates.
All models prefer cooperation when the opponent's defection rate is low.
Abstract
The behavior of Large Language Models (LLMs) as artificial social agents is largely unexplored, and we still lack extensive evidence of how these agents react to simple social stimuli. Testing the behavior of AI agents in classic Game Theory experiments provides a promising theoretical framework for evaluating the norms and values of these agents in archetypal social situations. In this work, we investigate the cooperative behavior of three LLMs (Llama2, Llama3, and GPT3.5) when playing the Iterated Prisoner's Dilemma against random adversaries displaying various levels of hostility. We introduce a systematic methodology to evaluate an LLM's comprehension of the game rules and its capability to parse historical gameplay logs for decision-making. We conducted simulations of games lasting for 100 rounds and analyzed the LLMs' decisions in terms of dimensions defined in the behavioral…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling
