Skip to main content
Back

FAIRGAME Catches GPT-4o and Claude Failing Basic Game Theory Across 72,000 Decisions

An open-source framework runs LLMs through classic games like Prisoner's Dilemma to expose how language, personality, and model choice skew strategic behavior.

Pro

  • FAIRGAME is an open-source framework for testing LLM agents in game-theoretic scenarios, available on GitHub.
  • Tests four major LLMs (Claude 3.5 Sonnet, GPT-4o, Llama 3.1 405B, Mistral Large) across five languages and multiple personality configurations.
  • Generated 72,000 individual decisions across Prisoner's Dilemma and Battle of the Sexes variants to expose biases.
  • English produced more cooperative behavior in GPT-4o and Claude, revealing training-language bias in strategic play.
  • Introduces four normalized scoring metrics for internal variability, cross-language inconsistency, payoff sensitivity, and round-to-round drift.
  • Ablations show LLMs recognize disguised games and let character identity priors override payoff matrices during decisions.

A group of researchers from the Luxembourg Institute of Science and Technology, Trento, Teesside, and Cambridge have released FAIRGAME, an open-source framework that stress-tests multi-agent LLM systems using game theory. The goal is simple: when you drop two language models into a strategic interaction, do they behave the way rational agents should, and does that behavior stay consistent when you swap the language, the model, or the personality prompt? The short answer is no, and the deviations are large enough to matter for anyone building agentic systems.

Why game theory belongs in the LLM evaluation stack

Interpretability research has largely focused on single-agent behavior: hallucinations, biases, refusals. The paper argues that once agents start interacting, emergent effects show up that single-agent probes miss entirely. In industry applications such as automated dispute resolution, auction design or pricing mechanisms in finance and economics, or supply chain negotiations, hidden biases may result in unjust decisions, disproportionate favoring of certain groups, and distortion of fair competition.

Game theory provides a clean framework for this. It formalizes interactions as games with defined payoffs and equilibria, giving you a ground-truth prediction to compare an LLM against. FAIRGAME operationalizes that comparison in a reproducible pipeline so results across labs, models, and languages become directly comparable.

How the framework is wired together

FAIRGAME takes two inputs: a JSON configuration file that defines the game (payoff matrix, rounds, agent personalities, languages, LLM choice) and a prompt template that describes the game in natural language. The template can be translated into any language of choice, allowing for multilingual tests, and more than one template can attach to the same config.

FAIRGAME architecture diagram

Under the hood, three algorithms handle game creation, execution, and per-round action simulation. For each agent, the algorithm first retrieves its opponent, then determines the appropriate template language based on the agent's language preference. A prompt is assembled containing the current round, payoff matrix, history, and personality context, and the agent's chosen strategy is fed back into the game history. Agents can optionally communicate before each decision, though the default experiments turn this off to isolate strategic behavior.

The experimental sweep

The team ran Llama 3.1 405B, Mistral Large, GPT-4o, and Claude 3.5 Sonnet through two classical games:

  • Prisoner's Dilemma in three payoff variants (conventional, harsh, mild) that vary the strength of the dilemma.
  • Battle of the Sexes, a coordination game where both players prefer different outcomes but both prefer coordinating over disagreement.

Each game ran in English, French, Arabic, Mandarin Chinese, and Vietnamese, with agents assigned cooperative or selfish personalities in all combinations. Considering 4 LLMs, 5 languages, 10 rounds per game, and 2 decisions per round, the experiment generated a total of 72,000 individual decisions.

What the results actually show

The Nash equilibrium for the Prisoner's Dilemma is mutual defection, and most runs trended that way, but with revealing exceptions. Penalties are generally lower in English, particularly for GPT-4o and Claude 3.5 Sonnet, when the number of rounds is unknown, indicating more consistent cooperative behavior in their primary training language. French and Arabic showed broader variance, while Mandarin and Vietnamese produced consistently high penalties, especially for Mistral Large.

Prisoner's Dilemma results across languages and models

Payoff sensitivity also splits the models. Claude 3.5 Sonnet and Llama 3.1 405B demonstrate lower sensitivity, reflected by a narrower spread, while Mistral and GPT-4o show higher sensitivity to the parameters. In the Battle of the Sexes, Claude coordinated almost immediately, GPT-4o converged more slowly, and Llama stayed largely uncoordinated across rounds.

A scoring system for strategic behavior

To make comparisons tractable, the authors propose four normalized metrics scored on a 0-to-1 scale:

  1. Internal Variability: variance of outcomes when the same scenario is replayed.
  2. Cross-Language Inconsistency: how much results shift when only the language changes.
  3. Sensitivity to Payoff: response to changing the harsh vs. mild variants.
  4. Variability Over Rounds: how much strategies fluctuate round-to-round.

These get plotted as radar charts, where smaller area means a more predictable model. Mistral Large exhibits the greatest inconsistency across different languages, coupled with substantial internal variability, comparable to GPT-4o. Claude 3.5 demonstrates the highest variability across rounds.

The uncomfortable finding about training data

The team ran a clever ablation to test whether LLMs were reasoning from payoffs or pattern-matching known games. They reframed the Prisoner's Dilemma into a plane crash scenario, with survivors deciding whether to cooperate in collective hunting tasks on an uninhabited island, replacing numeric payoffs with qualitative consequences like starvation. Cooperation levels barely moved, and when queried directly the models correctly identified the disguised scenario.

The identity experiment was more striking still. Pairing archetypal figures such as Adolf Hitler, representing aggressive selfishness, and Mahatma Gandhi, symbolizing peaceful cooperation, resulted in predictable outcomes where the aggressive figure consistently opted for betrayal and the cooperative figure consistently opted to cooperate. Character priors, in other words, override payoff structures.

Where this fits in a workflow

FAIRGAME is useful when picking an LLM for negotiation agents, auction bidders, dispute resolution bots, or any workflow where two model instances have to reach an outcome and you need to know how stable that outcome is under prompt perturbations. It is less useful as a general safety benchmark, since the current release only covers two-player, complete-information games without communication, and the ablations show LLMs may be recognizing textbook scenarios rather than reasoning through them.

The code is on GitHub, the config format is JSON, and adding a new game means writing a payoff matrix and a prompt template. Extensions the authors flag as next steps include incomplete-information games, sequential moves, more than two agents, and inter-agent communication, which they explore in a separate paper on strategic communication in multi-agent LLM coordination.