EconGym: A Scalable AI Testbed with Diverse Economic Tasks

Qirui Mi, Qipeng Yang, Zijun Fan, Wentian Fan, Heyang Ma, Chengdong Ma, Siyu Xia, Bo An, Jun Wang, Haifeng Zhang

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.

Overview of EconGym

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.

Figure 2: Workflow of EconGym.

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.
Figure 3: Evolution of economic indicators under varying retirement ages (60, 63, 65, 67, 70) in the aging-pension scenario: (a) population and labor force decline, (b) age structure shifts toward older demographics, (c-h) GDP, consumption, social welfare, per capita utility, pension fund balance, and dependency ratio trends, illustrating the impact of delayed retirement on economic indicators and individual welfare.
  • 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:

  1. Institutional Complexity: The current core roles lack representation for local governments, insurance providers, international trade, and cross-country interactions.
  2. Population Scale: While 10k to 100k agents provide high fidelity, scaling to millions of heterogeneous individuals is necessary for true population-level macroeconomic simulation.
  3. 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

Abstract

Artificial intelligence (AI) has become a powerful tool for economic research, enabling large-scale simulation and policy optimization. However, applying AI effectively requires simulation platforms for scalable training and evaluation-yet existing environments remain limited to simplified, narrowly scoped tasks, falling short of capturing complex economic challenges such as demographic shifts, multi-government coordination, and large-scale agent interactions. To address this gap, we introduce EconGym, a scalable and modular testbed that connects diverse economic tasks with AI algorithms. Grounded in rigorous economic modeling, EconGym implements 11 heterogeneous role types (e.g., households, firms, banks, governments), their interaction mechanisms, and agent models with well-defined observations, actions, and rewards. Users can flexibly compose economic roles with diverse agent algorithms to simulate rich multi-agent trajectories across 25+ economic tasks for AI-driven policy learning and analysis. Experiments show that EconGym supports diverse and cross-domain tasks-such as coordinating fiscal, pension, and monetary policies-and enables benchmarking across AI, economic methods, and hybrids. Results indicate that richer task composition and algorithm diversity expand the policy space, while AI agents guided by classical economic methods perform best in complex settings. EconGym also scales to 10k agents with high realism and efficiency.
BibTeX
@inproceedings{mi2025econgym,
  author = {Qirui Mi and Qipeng Yang and Zijun Fan and Wentian Fan and Heyang Ma and Chengdong Ma and Siyu Xia and Bo An and Jun Wang and Haifeng Zhang},
  title = {{EconGym: A Scalable AI Testbed with Diverse Economic Tasks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=qPrBgHgsmP},
}
Figure