Autoformalization of Game Descriptions using Large Language Models

Agnieszka Mensfelt, Kostas Stathis, Vince Trencsenyi
9/18/2024
cs.AIcs.GT

No official code found. Best implementation: dicelab-rhul/game-formaliser (2 stars, MIT, last commit 2024-10-29).

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.

View on arXivView PDF

Code Implementations(1)

MIT
20Prolog, PythonSep 4, 20241 years agoMIT

Similar Papers

Cite this paper

@article{mensfelt2024autoformalization,
  title  = {Autoformalization of Game Descriptions using Large Language Models},
  author = {Agnieszka Mensfelt and Kostas Stathis and Vince Trencsenyi},
  year   = {2024},
  eprint = {2409.12300},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.12300v1}
}

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/2409.12300.svg)](https://codeofpaper.com/paper/2409.12300)

Discussion