arXiv:2501.17282cs.AIcs.CL2025-01中稿 · as a full paper fo…被引 7

用大模型把自然语言游戏描述转成可计算的博弈树

From Natural Language to Extensive-Form Game Representations

  • 分两阶段处理:先识别信息集,再生成完整博弈树
  • 在多种复杂度游戏中准确率显著优于基线模型
  • 适合博弈论研究者与自动化决策系统开发者

我们提出一个框架,将自然语言描述的游戏转化为博弈论中的广泛形式表示,利用大语言模型(LLMs)和上下文学习。由于游戏的战略复杂性差异(如完全信息与不完全信息),直接应用上下文学习效果有限。为此,我们设计了包含专用模块的两阶段框架,以增强上下文学习能力,实现问题拆解与求解。第一阶段通过模块识别信息集及其对应的局部树结构;第二阶段结合上下文学习与自检模块,生成使用 pygambit 表示的完整广泛形式博弈树。该 Python 表示支持直接自动化计算纳什均衡等任务。我们在不同战略复杂度的游戏上评估了框架及其各组件性能,结果表明该框架显著优于基线模型,且各模块均发挥关键作用。

原文摘要 · Abstract (English)

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.

博弈论大模型应用自然语言理解

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。