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 · OpenReview

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 investigate two key problems: (1) Characterizing game-theoretic reasoning of LLMs; (2) 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) Open-source LLMs, e.g., CodeLlama-34b-Instruct, are less competitive than commercial LLMs, e.g., GPT-4, in complex games. 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. Detailed error profiles are also provided for a better understanding of LLMs' behavior.

Introduction

As LLMs are increasingly deployed in high-stakes environments like cybersecurity and finance, their ability to think strategically—foreseeing an opponent's moves and making optimal decisions based on logic—is paramount. However, most current evaluations rely on "role-playing" scenarios (like the game Werewolf). The authors argue these narrative-heavy benchmarks are "polluted" by linguistic proficiency; a model might sound like a great strategist while actually lacking the underlying logic to navigate a rigorous state-space. To fix this, the authors strip away the flavor text and evaluate LLMs on "pure" game theory, where rules are rigid, actions are well-defined, and the math doesn't lie.

Methods and Framework

The authors introduce GTBench, a language-driven environment built on top of OpenSpiel. The framework consists of three main components: the environment, the prompt adapter, and the participants.

Overview of the GTBench framework, including participants, the prompt adapter, and the game environments.
  1. Environment: Hosts the game and manages the state.
  2. Prompt Adapter: Translates the game state into a text prompt for the LLM and parses the LLM's response back into a game action.
  3. Participants: The LLMs being tested, which are equipped with different reasoning "paradigms" such as standard prompting, Chain-of-Thought (CoT), Self-Consistent CoT, and Tree-of-Thought (ToT).

The primary contribution is the GTBench benchmark, which categorizes 10 games across a comprehensive taxonomy: Complete vs. Incomplete Information (e.g., Tic-Tac-Toe vs. Kuhn Poker), Dynamic vs. Static (e.g., Iterated Prisoner’s Dilemma vs. Blind Auction), and Probabilistic vs. Deterministic (e.g., Pig vs. Nim).

Key Results and Insights

The evaluation revealed several critical findings regarding LLM reasoning capabilities across different game types and reasoning paradigms.

  • The MCTS Wall: In deterministic games with moderate state spaces (like Connect-4), LLMs achieved a "Normalized Relative Advantage" (NRA) of -1 against Monte Carlo Tree Search (MCTS) agents, meaning they essentially never win. Even GPT-4 cannot out-calculate a simple search algorithm in a "solved" environment.
  • The Probabilistic Edge: Conversely, LLMs are much more competitive in games involving stochasticity (luck) and bidding. In Kuhn Poker, GPT-4 actually outperformed the MCTS agent.
  • Code-Pretraining is a Logic Booster: One of the most striking findings is that CodeLlama-34b (a model trained on code) significantly outperformed the much larger Llama-2-70b (a general chat model) in strategic tasks. This suggests that learning the rigid logic of programming languages translates directly to game-theoretic reasoning.
  • The "Llama-3" Leap: The recently released Llama-3-70b-Instruct showed a massive performance jump, becoming the first open-source model to achieve parity with GPT-4 in complex board games like Breakthrough.
Normalized Relative Advantage (NRA) of various LLMs across different reasoning paradigms against Random and MCTS agents.
  • Advanced Reasoning is a Double-Edged Sword: While CoT helps in some cases, it often introduces "reasoning errors" where the model hallucinates a brilliant strategy but then executes an illegal or unrelated move. Manual audits found that 45.1% of GPT-4's errors were "Factual Errors"—situations where the model had a reasonable plan but chose an action that didn't align with that plan (e.g., trying to move a piece that doesn't exist).

Conclusion

GTBench highlights a significant "reasoning gap" in current LLMs. While they show promise in probabilistic and incomplete-information games, they struggle with the rigid logic of deterministic, complete-information games. The textual bottleneck of representing 2D boards as 1D strings and the sensitivity of models to prompt phrasing remain significant hurdles. Future work may involve exploring multi-modal LLMs that can "see" the game board or developing more robust prompt-tuning methods to minimize the "factual error" gap between a model's thoughts and its actions.

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 investigate two key problems: (1) Characterizing game-theoretic reasoning of LLMs; (2) 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) Open-source LLMs, e.g., CodeLlama-34b-Instruct, are less competitive than commercial LLMs, e.g., GPT-4, in complex games. 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. Detailed error profiles are also provided for a better understanding of LLMs' behavior.
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