Combining Code Generating Large Language Models and Self-Play to Iteratively Refine Strategies in Games
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Demo Track. Pages 10999-11003.
https://doi.org/10.24963/ijcai.2025/1249
Keywords
- Game Theory and Economic Paradigms: GTEP: Other
- Agent-based and Multi-agent Systems: MAS: Applications
- Natural Language Processing: NLP: Language models
Abstract
We propose a self-play approach to generating strategies for playing in multi-player games, where strategies are represented as computer code. We use large language models (LLMs) to generate pieces of code to play in the game, which we refer to as generated bots. We engage the LLM generated bots in competitions, designed to generate increasingly stronger strategies. We follow game theoretic principles in organizing these tournaments, and use a Policy Space Response Oracle (PSRO) approach. We start with an initial set of LLM generated bots, and continue in rounds for adding new bots into the population. Each round adds a bot to the population by asking the LLM to produce code for playing against a bot representing the Nash equilibrium mixture over the current population. Our analysis shows that even a few rounds are sufficient to produces strong bots for playing the game. Our demo shows the process for the game of Checkers. We allow users to select initial bots in the population, run the process, inspect how the bots evolve over time, and play against the generated bots.
@inproceedings{ijcai2025p1249,
title = {Combining Code Generating Large Language Models and Self-Play to Iteratively Refine Strategies in Games},
author = {Bachrach, Yoram and Toledo, Edan and Hambardzumyan, Karen and Magka, Despoina and Josifoski, Martin and Jiang, Minqi and Foerster, Jakob and Raileanu, Roberta and Shavrina, Tatiana and Cancedda, Nicola and Ruderman, Avraham and Millican, Katie and Lupu, Andrei and Hazra, Rishi},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {10999--11003},
year = {2025},
month = {8},
note = {Demo Track},
doi = {10.24963/ijcai.2025/1249},
url = {https://doi.org/10.24963/ijcai.2025/1249},
}
TY - CPAPER TI - Combining Code Generating Large Language Models and Self-Play to Iteratively Refine Strategies in Games AU - Bachrach, Yoram AU - Toledo, Edan AU - Hambardzumyan, Karen AU - Magka, Despoina AU - Josifoski, Martin AU - Jiang, Minqi AU - Foerster, Jakob AU - Raileanu, Roberta AU - Shavrina, Tatiana AU - Cancedda, Nicola AU - Ruderman, Avraham AU - Millican, Katie AU - Lupu, Andrei AU - Hazra, Rishi T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 10999 EP - 11003 DO - 10.24963/ijcai.2025/1249 UR - https://doi.org/10.24963/ijcai.2025/1249 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: