arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.12300cs.AIcs.GT
收藏

使用大语言模型对博弈描述进行自动形式化

Autoformalization of Game Descriptions using Large Language Models

Royal Holloway, University of London(伦敦大学皇家霍洛威学院)

Agnieszka Mensfelt, Kostas Stathis, Vince Trencsenyi

AI总结:

本文提出一个博弈论场景自动形式化框架,利用 one-shot prompting 和求解器反馈将自然语言描述转化为形式逻辑表示,在 GPT-4o 上实现 98% 语法正确率和 88% 语义正确率,展现 LLMs 连接现实战略交互与形式化推理的潜力。

摘要:

博弈论是推理战略交互的强大框架,应用领域涵盖从日常生活到国际政治。然而,在这些情境中应用形式化推理工具具有挑战性,因为这些场景通常以自然语言表达。为此,我们引入了一个博弈论场景自动形式化框架,将自然语言描述转化为适合形式化求解器的形式逻辑表示。该方法利用 one-shot prompting 和一个提供语法正确性反馈的求解器,使 LLMs 能够优化代码。我们使用 GPT-4o 和自然语言问题描述数据集评估该框架,实现了 98% 的语法正确率和 88% 的语义正确率。这些结果表明 LLMs 在弥合现实战略交互与形式化推理之间差距方面的潜力。

英文摘要:

Game theory is a powerful framework for reasoning about strategic interactions, with applications in domains ranging from day-to-day life to international politics. However, applying formal reasoning tools in such contexts is challenging, as these scenarios are often expressed in natural language. To address this, we introduce a framework for the autoformalization of game-theoretic scenarios, which translates natural language descriptions into formal logic representations suitable for formal solvers. Our approach utilizes one-shot prompting and a solver that provides feedback on syntactic correctness to allow LLMs to refine the code. We evaluate the framework using GPT-4o and a dataset of natural language problem descriptions, achieving 98% syntactic correctness and 88% semantic correctness. These results show the potential of LLMs to bridge the gap between real-life strategic interactions and formal reasoning.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑