Game-theoretic LLM: Agent Workflow for Negotiation Games

Wenyue Hua, Ollie Liu, Lingyao Li, Alfonso Amayuelas, Julie Chen +7 more
11/8/2024
cs.AIcs.CLcs.GT

Official code: Wenyueh/game_theory (113 stars, Apache-2.0, last commit 2025-06-08).

Abstract

This paper investigates the rationality of large language models (LLMs) in strategic decision-making contexts, specifically within the framework of game theory. We evaluate several state-of-the-art LLMs across a spectrum of complete-information and incomplete-information games. Our findings reveal that LLMs frequently deviate from rational strategies, particularly as the complexity of the game increases with larger payoff matrices or deeper sequential trees. To address these limitations, we design multiple game-theoretic workflows that guide the reasoning and decision-making processes of LLMs. These workflows aim to enhance the models' ability to compute Nash Equilibria and make rational choices, even under conditions of uncertainty and incomplete information. Experimental results demonstrate that the adoption of these workflows significantly improves the rationality and robustness of LLMs in game-theoretic tasks. Specifically, with the workflow, LLMs exhibit marked improvements in identifying optimal strategies, achieving near-optimal allocations in negotiation scenarios, and reducing susceptibility to exploitation during negotiations. Furthermore, we explore the meta-strategic considerations of whether it is rational for agents to adopt such workflows, recognizing that the decision to use or forgo the workflow constitutes a game-theoretic issue in itself. Our research contributes to a deeper understanding of LLMs' decision-making capabilities in strategic contexts and provides insights into enhancing their rationality through structured workflows. The findings have implications for the development of more robust and strategically sound AI agents capable of navigating complex interactive environments. Code and data supporting this study are available at \url{https://github.com/Wenyueh/game_theory}.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

How to create rational LLM-based agents? Using game-theoretic workflows!

11313PythonApr 3, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{hua2024gametheoretic,
  title  = {Game-theoretic LLM: Agent Workflow for Negotiation Games},
  author = {Wenyue Hua and Ollie Liu and Lingyao Li and Alfonso Amayuelas and Julie Chen and Lucas Jiang and Mingyu Jin and Lizhou Fan and Fei Sun and William Wang and Xintong Wang and Yongfeng Zhang},
  year   = {2024},
  eprint = {2411.05990},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.05990v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.05990.svg)](https://codeofpaper.com/paper/2411.05990)

Discussion