GitHub
FreePlaying Imperfect Information Games with Theory of Mind Aware GPT-4
About GitHub
Suspicion-Agent is an open-source research implementation of a GPT-4 agent augmented with Theory of Mind (ToM) reasoning for playing imperfect information games. It accompanies the paper 'Suspicion-Agent: Playing Imperfect Information Games with Theory of Mind Aware GPT-4' (arXiv:2309.17277). The repository provides a complete pipeline, including game configuration, agent models, baseline comparisons (CFR, NFSP, DQN, DMC), game data replay, and visualization tools. Built on the SkyAGI framework, it requires Python 3.8.5 and an OpenAI API key. Users can train and evaluate agents against classical game-theoretic and reinforcement learning baselines in environments such as 'The Resistance: Avalon' or similar social deduction settings.
Key Features
Pros & Cons
- State-of-the-art integration of GPT-4 with explicit Theory of Mind modeling
- Open-source and fully reproducible with provided code and data
- Includes diverse classical baseline models for comparison (CFR, NFSP, DQN, DMC)
- Offers game replay and visualization to interpret agent behavior
- Requires an OpenAI API key, which incurs usage costs and depends on GPT-4 availability
- Code is research quality and may not be production-ready or well-documented for broader use
- Limited to specific imperfect information games implemented in the framework
- Performance heavily relies on the underlying GPT-4 model and prompt design