TL;DR
EconGym is an open-source, scalable, and modular multi-agent simulation testbed designed to bridge the gap between AI and economic policy design. By modeling 11 heterogeneous role types across more than 25 economic tasks, it allows researchers to train and evaluate reinforcement learning (RL), large language model (LLM), and classical economic agents within complex, cross-domain macroeconomic environments.
What Problem Does This Paper Address?
While AI has shown immense promise in solving complex, high-dimensional economic problems, progress has been bottlenecked by a lack of realistic simulation platforms. Existing environments are typically tailored to highly simplified scenarios—such as the AI Economist, where agents collect wood and stone to simulate taxation—which limits how well learned policies transfer to the real world. Furthermore, current platforms usually isolate a single economic issue (like taxation or market competition) while keeping all other variables fixed.
In reality, economic domains are deeply interconnected. Changes in tax policy directly influence labor supply, which impacts pension sustainability and forces central banks to adjust monetary policy. The authors introduce EconGym to address these limitations by providing a theory-grounded, composable environment capable of simulating multi-government coordination, demographic shifts, and large-scale agent interactions.
Methods
EconGym models economic dynamics by formalizing interactions as a Markov game. The platform breaks down the economy into four foundational pillars, which are further split into 11 heterogeneous role types:
- Individuals: Modeled either as infinitely-lived Ramsey agents facing income shocks or Overlapping Generations (OLG) agents to capture lifecycle and aging dynamics.
- Governments: Comprising Fiscal Authorities (taxation and spending), Central Banks (interest rates and reserve ratios), and Pension Authorities.
- Banks: Divided into passive Non-Profit Platforms and strategic Commercial Banks.
- Firms: Supporting four distinct market structures: Perfect Competition, Monopoly, Oligopoly, and Monopolistic Competition.
EconGym acts as a unified testbed supporting six distinct agent algorithm paradigms: Reinforcement Learning (e.g., PPO, DDPG), Large Language Models, Behavior Cloning (BC), classical Economic Methods (e.g., the Taylor rule), Expert Heuristics, and Real-Data replays.
Datasets
To ensure empirical realism, EconGym integrates several real-world datasets for agent behavior calibration and demographic simulation:
- 2022 Survey of Consumer Finances (SCF): Used to train Behavior Cloning (BC) policies for individual households, ensuring realistic micro-level consumption and saving choices.
- U.S. Birth Rates & CDC 2022 Stepwise Mortality Rates: Integrated into the OLG model to accurately simulate population decline and shifting age structures over multi-decade horizons.
Key Insights and Ideas
- Policy Silos Cause Conflict; Coordination Yields Synergy: Simulating a single policy domain in isolation can be deceptive. For instance, combining independently designed fiscal and monetary policies extends economic longevity. However, blindly adding an uncoordinated pension policy can introduce harmful friction unless managed by adaptive AI.
- Hybrid Strategies (AI + Economics) Win: Pure learning-based agents (LLM-only or RL-only) struggle to navigate the high-dimensional, asymmetric decision spaces of complex economies without structural guidance. The best-performing configurations are hybrids that embed classical economic rules (like Saez taxation) as structural priors while allowing adaptive AI agents to optimize within those boundaries.
- Population Scale Drives Realism: As the number of simulated individual agents scales up (from 10 to 100,000), the simulated distributions converge closely toward empirical data, successfully reproducing classic macroeconomic phenomena like the "hump-shaped" consumption curve over a human lifespan.
Key Results
- The Power of Hybrid Configurations: In multi-government coordination benchmarks across 33 algorithmic configurations, a hybrid setup combining Saez Tax (Fiscal) + DDPG (Pension) + LLM (Central Bank) achieved the highest overall GDP ($3.06 \times 10^{10}$) and the lowest income inequality (Gini index of 0.32).
- Long-Term Optimization: In aging-pension tasks, RL agents acting as social planners excelled at long-term sustainability, maintaining pension fund solvency for 165 years—nearly 100 years longer than real-world baseline schedules.
- Computational Efficiency: EconGym scales efficiently. While total step time naturally increases with population size, the per-agent processing time decreases up to 10k agents, making it highly practical to run large-scale simulations on standard consumer hardware (e.g., an Apple M1 Pro).
Limitations and Future Work
The authors note three primary avenues for future development:
- Institutional Complexity: The current core roles lack representation for local governments, insurance providers, international trade, and cross-country interactions.
- Population Scale: While 10k to 100k agents provide high fidelity, scaling to millions of heterogeneous individuals is necessary for true population-level macroeconomic simulation.
- Policy Calibration: Government interventions are not yet fully tuned to real-world responses due to a lack of public datasets that cleanly pair macro-policy actions with downstream micro-level human behavior.
Summary updated