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:
- Environments: Hosts the game logic, tracks states, and executes actions.
- Prompt Adapter: Translates raw game states into text observations for the LLM and parses the LLM's text output back into valid game actions.
- Participants: The LLMs being tested, which can be paired with various reasoning paradigms.
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.
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.
- 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