More images
What it is
Avalon-LLM is a repository by GitHub user jonathanmli. The README calls it the official code of AvalonBench and the Avalon agent Strategist. AvalonBench is based on AgentBench and supports multi-agent play of The Resistance: Avalon, a popular board game that requires deductive reasoning, coordination and collaboration, and skill of deception. The README provides instructions for a game with one LLM and naive bots, as well as games with multiple LLMs. Strategist uses self-play simulations, Monte Carlo tree search and LLM-based reflection to gather feedback for learning strategic skills; its paper was accepted to ICLR 2025. The repository includes a benchmark and agents for language models to play the game. Only the 5-player game setting is supported for now. The README does not say which operating systems are supported. The repository also includes a game engine.
Highlights:
- Based on AgentBench, it supports multi-agent play of The Resistance: Avalon, currently only in the 5-player setting (1 Merlin, 2 Servants, 1 Minion, 1 Assassin)
- The README provides three example configurations: 1 LLM playing with 4 naive bots, all naive bots, or all LLMs
- In the README's initial results, Evil has an 8:2 advantage over Good in multi-LLM self-play; the README says this is similar to the stats of rookie human players
- The repository also has code for GOPS (Game of Pure Strategy) and a game engine in the `avalonbench_dev` folder
How to use:
- First, run `conda create -n avalonbench python=3.9`, `conda activate avalonbench` and `pip install -r requirements.txt` to set up the environment and dependencies.
- Then put your OpenAI API Key into `configs/agents/openai-chat` and run `python -m src.start_task -a --start avalon-dev-single 3` to start the game, where 3 is the number of workers.
- Finally, open a new terminal and run `python -m src.assigner --config ./configs/assignments/test_avalon.yaml`.
Who it's for:
Researchers and developers who study how language models make decisions and plan strategies in multiplayer social deduction games.
Before you start:
- The README's environment setup steps use conda and Python 3.9, with dependencies installed using `pip install -r requirements.txt`.
- The README requires an OpenAI API Key in the config file `configs/agents/openai-chat`. If you use these features, weigh the safety risks yourself. AI Inspiration World is not responsible for any consequences.
- The project is built around the existing board game The Resistance: Avalon. Only use material you have the rights to; you are responsible for compliance.
- The page does not state the cost. Check the official website for costs.
- The page does not state a license type. Refer to the official website for license information. Content belongs to the original authors.
Based on the project's public documentation. Not tested by AI Inspiration World.
