From Natural Language to Extensive-Form Game Representations

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Deng, Shilong, Wang, Yongzhao, Savani, Rahul
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913672491696128
author Deng, Shilong
Wang, Yongzhao
Savani, Rahul
author_facet Deng, Shilong
Wang, Yongzhao
Savani, Rahul
contents We introduce a framework for translating game descriptions in natural language into extensive-form representations in game theory, leveraging Large Language Models (LLMs) and in-context learning. Given the varying levels of strategic complexity in games, such as perfect versus imperfect information, directly applying in-context learning would be insufficient. To address this, we introduce a two-stage framework with specialized modules to enhance in-context learning, enabling it to divide and conquer the problem effectively. In the first stage, we tackle the challenge of imperfect information by developing a module that identifies information sets along and the corresponding partial tree structure. With this information, the second stage leverages in-context learning alongside a self-debugging module to produce a complete extensive-form game tree represented using pygambit, the Python API of a recognized game-theoretic analysis tool called Gambit. Using this python representation enables the automation of tasks such as computing Nash equilibria directly from natural language descriptions. We evaluate the performance of the full framework, as well as its individual components, using various LLMs on games with different levels of strategic complexity. Our experimental results show that the framework significantly outperforms baseline models in generating accurate extensive-form games, with each module playing a critical role in its success.
format Preprint
id arxiv_https___arxiv_org_abs_2501_17282
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle From Natural Language to Extensive-Form Game Representations
Deng, Shilong
Wang, Yongzhao
Savani, Rahul
Artificial Intelligence
Computation and Language
Computer Science and Game Theory
Multiagent Systems
We introduce a framework for translating game descriptions in natural language into extensive-form representations in game theory, leveraging Large Language Models (LLMs) and in-context learning. Given the varying levels of strategic complexity in games, such as perfect versus imperfect information, directly applying in-context learning would be insufficient. To address this, we introduce a two-stage framework with specialized modules to enhance in-context learning, enabling it to divide and conquer the problem effectively. In the first stage, we tackle the challenge of imperfect information by developing a module that identifies information sets along and the corresponding partial tree structure. With this information, the second stage leverages in-context learning alongside a self-debugging module to produce a complete extensive-form game tree represented using pygambit, the Python API of a recognized game-theoretic analysis tool called Gambit. Using this python representation enables the automation of tasks such as computing Nash equilibria directly from natural language descriptions. We evaluate the performance of the full framework, as well as its individual components, using various LLMs on games with different levels of strategic complexity. Our experimental results show that the framework significantly outperforms baseline models in generating accurate extensive-form games, with each module playing a critical role in its success.
title From Natural Language to Extensive-Form Game Representations
topic Artificial Intelligence
Computation and Language
Computer Science and Game Theory
Multiagent Systems
url https://arxiv.org/abs/2501.17282