English

Autoformalization of Game Descriptions using Large Language Models

Artificial Intelligence 2024-10-15 v1 Computer Science and Game Theory

Abstract

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.

Keywords

Cite

@article{arxiv.2409.12300,
  title  = {Autoformalization of Game Descriptions using Large Language Models},
  author = {Agnieszka Mensfelt and Kostas Stathis and Vince Trencsenyi},
  journal= {arXiv preprint arXiv:2409.12300},
  year   = {2024}
}

Comments

code: https://github.com/dicelab-rhul/game-formaliser

R2 v1 2026-06-28T18:49:33.239Z