reset and step—so any multi-agent RL library can drive the simulation without modification.
The AI Economist research
Foundation was created to support research into AI-driven economic policy design. The framework has been used in three published papers:- The AI Economist: Improving Equality and Productivity with AI-Driven Tax Policies — Zheng et al., 2020. Demonstrates how RL can learn tax policies that improve both equality and productivity in simulated economies.
- The AI Economist: Optimal Economic Policy Design via Two-level Deep Reinforcement Learning — Zheng et al., 2021. Introduces a two-level RL approach in which a government agent and worker agents are trained simultaneously.
- Building a Foundation for Data-Driven, Interpretable, and Robust Policy Design using the AI Economist — Trott et al., 2021. Applies Foundation to the COVID-19 pandemic, fitting simulated dynamics to real-world data.
Architecture overview
The simulation lives inai_economist/foundation/ and is organized into five cooperating layers:
All classes are accessed through registries:
Gym-style API
Every Scenario instance exposes the standard two-method loop:obs, rew, and done are dictionaries keyed by agent index (and "p" for the planner). This makes Foundation easy to integrate with RLlib, WarpDrive, or any other multi-agent training framework.
Included scenarios
Four scenarios ship with the package:Installation
Install Foundation via pip or from source, and verify your setup.
Quickstart
Create your first environment, run a reset/step loop, and inspect observations.
GitHub
Browse the source code, file issues, and read the contribution guide.
Slack community
Join the AI Economist Slack to discuss research and get help.