GTBench: Uncovering the Strategic Reasoning Limitations of LLMs via Game-Theoretic Evaluations

Jinhao Duan, Renming Zhang, James Diffenderfer, Bhavya Kailkhura, Lichao Sun, Elias Stengel-Eskin, Mohit Bansal, Tianlong Chen, Kaidi Xu

TL;DR

This paper introduces GTBench, a new evaluation framework that tests the strategic and logical reasoning of Large Language Models (LLMs) using 10 classic game-theoretic tasks. The study reveals a striking dichotomy: while LLMs fail completely against standard search algorithms in deterministic, complete-information board games, they remain highly competitive in probabilistic and incomplete-information scenarios. Furthermore, the authors find that code-pretraining significantly boosts strategic thinking, whereas advanced prompting techniques like Chain-of-Thought (CoT) can unexpectedly hinder performance.

What Problem Does This Paper Address?

As LLMs are increasingly deployed in high-stakes environments like cybersecurity, decision science, and finance, evaluating their capacity for rigorous, multi-step strategic reasoning is paramount.

Current evaluation benchmarks often rely on text-based role-playing games (e.g., Werewolf or Avalon). While engaging, these environments dilute pure logical reasoning with complex narrative contexts. Crucially, an LLM's high language proficiency can mask underlying flaws in its actual concrete reasoning.

To address this, the authors look to game theory. Game-theoretic tasks feature rigorous rules, well-defined state spaces, and clear mathematical trade-offs, making them ideal for isolating an agent's pure strategic capabilities from its linguistic flair.

Methods

The authors developed GTBench, a language-driven benchmarking environment built on top of Google's OpenSpiel framework. The architecture consists of three main components:

  1. Environments: Hosts the game logic, tracks states, and executes actions.
  2. Prompt Adapter: Translates raw game states into text observations for the LLM and parses the LLM's text output back into valid game actions.
  3. Participants: The LLMs being tested, which can be paired with various reasoning paradigms.
Figure 1: The overall schematic of GTBENCH. There are three main components from right to left: Environments (c) for game hosting, observation providing, and action execution; Prompt Adapter (b) for converting observation to prompt and extracting actions from participants’ generations; Participants (a) for reasoning and action generation.

The evaluation pits LLMs against conventional algorithmic solvers—specifically Monte Carlo Tree Search (MCTS) for board games and Tit-for-Tat for the Prisoner's Dilemma—as well as against other LLMs. Performance is quantified using Normalized Relative Advantage (NRA), which scales from -1 (complete loss) to 1 (complete win), and standard Elo ratings.

To thoroughly test the models, the authors evaluated four reasoning paradigms: direct prompting, Chain-of-Thought (CoT), Self-Consistent CoT (SC-CoT), and Tree-of-Thought (ToT).

Datasets

The primary contribution of this work is the benchmark dataset/environment itself: GTBench. It curates 10 distinct games to cover a comprehensive taxonomy of game-theoretic scenarios:

  • Complete & Deterministic: Tic-Tac-Toe, Connect-4, Breakthrough, Nim.
  • Incomplete or Probabilistic: Kuhn Poker, Liar's Dice, Blind Auction, Negotiation, Pig, Iterated Prisoner's Dilemma.
Table 1: Game environments explored in GTBENCH.

Key Insights and Ideas

  • The Deterministic Deficit: LLMs are fundamentally incapable of beating a basic MCTS solver in complete-information board games. Because MCTS can simulate near-optimal lookahead strategies, LLMs get completely shut out due to their poor exact state tracking and long-horizon planning.
  • The Probabilistic Edge: Conversely, LLMs excel in games involving hidden information or randomness (like Kuhn Poker). In these environments, strict state-tree calculation is less viable, allowing LLMs' heuristic-driven decision-making to match or even exceed conventional solvers.
  • Code-Pretraining is a Superpower: Models pre-trained on code (e.g., CodeLlama-34b-Instruct) drastically outperform larger, text-only models (e.g., Llama-2-70b-chat) in strategic tasks, confirming that exposure to code structure enhances logical processing.
  • Advanced Prompting is a Double-Edged Sword: While CoT and ToT generally improve performance on standard benchmarks, they often decrease performance or introduce reasoning errors in ordinary LLMs during live gameplay.

Key Results

  • MCTS Dominance: Against MCTS in complete and deterministic games, every single tested LLM achieved an NRA of exactly -1.0, meaning they could barely win a single match.
  • Llama-3 Closes the Gap: In LLM-vs-LLM competitions, commercial models historically dominated. However, the open-source Llama-3-70b-Instruct achieved an average Elo of 1577.06, nearly matching GPT-4's leading score of 1591.99.
Figure 2: The NRA of state-of-the-art LLM-driven reasoning agents when against MCTS Agents and Random Agents, over complete and deterministic scenarios. Red and gray lines mean the maximum NRA achieved by LLM agents.
  • Error Profiling: Manual analysis of GPT-4's failures revealed that 45.10% of its mistakes were Factual Errors (e.g., formulating a valid plan but executing an action with the wrong game piece) and 33.33% were Endgame Misdetections (failing to see an immediate winning or losing move).

Limitations and Future Work

The authors highlight several limitations that pave the way for future research:

  • Prompt Sensitivity: The framework relies on pre-defined prompt templates. Small variations in how game rules are phrased can cause noticeable performance shifts.
  • Action Space Constraints: Some games have highly restricted action spaces, making it difficult to finely differentiate between models of similar skill levels.
  • Instruction Following: LLMs still occasionally attempt to make illegal moves, particularly in complex board states, indicating a breakdown in grounding the game rules to the current state.

Summary updated

Abstract

As Large Language Models (LLMs) are integrated into critical real-world applications, their strategic and logical reasoning abilities are increasingly crucial. This paper evaluates LLMs' reasoning abilities in competitive environments through game-theoretic tasks, e.g., board and card games that require pure logic and strategic reasoning to compete with opponents. We first propose GTBench, a language-driven environment composing 10 widely recognized tasks, across a comprehensive game taxonomy: complete versus incomplete information, dynamic versus static, and probabilistic versus deterministic scenarios. Then, we (1) Characterize the game-theoretic reasoning of LLMs; and (2) Perform LLM-vs.-LLM competitions as reasoning evaluation. We observe that (1) LLMs have distinct behaviors regarding various gaming scenarios; for example, LLMs fail in complete and deterministic games yet they are competitive in probabilistic gaming scenarios; (2) Most open-source LLMs, e.g., CodeLlama-34b-Instruct and Llama-2-70b-chat, are less competitive than commercial LLMs, e.g., GPT-4, in complex games, yet the recently released Llama-3-70b-Instruct makes up for this shortcoming. In addition, code-pretraining greatly benefits strategic reasoning, while advanced reasoning methods such as Chain-of-Thought (CoT) and Tree-of-Thought (ToT) do not always help. We further characterize the game-theoretic properties of LLMs, such as equilibrium and Pareto Efficiency in repeated games. Detailed error profiles are provided for a better understanding of LLMs' behavior. We hope our research provides standardized protocols and serves as a foundation to spur further explorations in the strategic reasoning of LLMs.
BibTeX
@inproceedings{duan2024gtbench,
  author = {Jinhao Duan and Renming Zhang and James Diffenderfer and Bhavya Kailkhura and Lichao Sun and Elias Stengel-Eskin and Mohit Bansal and Tianlong Chen and Kaidi Xu},
  title = {{GTBench: Uncovering the Strategic Reasoning Limitations of LLMs via Game-Theoretic Evaluations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=ypggxVWIv2},
}
Figure