EconAgent: Large Language Model-Empowered Agents for Simulating Macroeconomic Activities

Nian Li, Chen Gao, Mingyu Li, Yong Li, Qingmin Liao

Introduction

Macroeconomic simulation traditionally relies on Agent-Based Modeling (ABM) to understand how individual behaviors aggregate into market-wide dynamics. However, existing ABMs often struggle with a "Goldilocks" problem: rule-based models are too rigid and require extensive expert tuning, while reinforcement learning (RL) models lack interpretability and require vast amounts of behavioral data. EconAgent addresses these challenges by replacing traditional agents with Large Language Model (LLM)-empowered agents capable of human-like perception, memory, and reasoning.

The EconAgent Framework

The core of EconAgent is an architecture that integrates LLMs into a closed-loop macroeconomic environment. This environment includes a labor market, a consumption market, a government (managing progressive taxation), and a central bank (setting interest rates via the Taylor Rule).

The EconAgent architecture featuring perception, memory with reflection, and decision-making modules interacting with a macroeconomic environment.

The framework consists of three primary modules:

  • Perception Module: Translates raw environmental data—such as tax rates, prices, and wages—into natural language prompts, allowing the agent to "understand" its economic context.
  • Memory Module: Stores past experiences and includes a critical Reflection step. At the end of each quarter, agents analyze market trends (e.g., "The labor market experienced deflation...") and adjust their internal strategies accordingly.
  • Action Module: The LLM generates propensity scores for key economic decisions, such as labor participation and consumption levels.

Data and Initialization

EconAgent leverages real-world data for initialization rather than traditional training. The researchers used 2018 U.S. Census Bureau Data to calibrate age and wage distributions and the 2018 U.S. Federal Tax Schedule for fiscal policy. To enhance semantic depth, LLMs generated specific job titles for agents across different income levels, ensuring a heterogeneous population.

Key Insights: Emergent Behavior and Realism

EconAgent exhibits natural heterogeneity without manual tuning. For instance, older agents naturally show higher consumption propensities, aligning with the life-cycle hypothesis. The Reflection mechanism allows agents to react to economic "narratives" rather than just numbers; an agent perceiving a deflationary trend might autonomously decide to increase savings to mitigate future risk.

The model's qualitative realism was further demonstrated by simulating a COVID-19-like shock. By simply adding a prompt about a national emergency, agents responded with human-centric concerns about health and job security, leading to a realistic spike in unemployment without any manual parameter adjustments.

Validation of Economic Laws

A significant achievement of EconAgent is its ability to replicate fundamental economic patterns that traditional models often miss. It was the only model tested that successfully manifested both the Phillips Curve (the negative correlation between unemployment and wage inflation) and Okun’s Law (the negative correlation between unemployment growth and GDP growth).

Validation of economic laws: EconAgent correctly captures the negative correlations defined by the Phillips Curve and Okun’s Law.

Beyond these laws, EconAgent produced more stable and plausible macroeconomic indicators (inflation, GDP, unemployment) compared to baseline models like LEN or CATS, which frequently exhibited unrealistic oscillations.

Limitations and Future Directions

While promising, EconAgent currently focuses on the household side, treating firms as a simplified aggregate. Future work aims to model heterogeneous firms with their own pricing and hiring logic. Additionally, the computational cost of LLM inference remains a barrier to scaling these simulations to urban-sized populations. Currently, EconAgent serves as a powerful tool for replicating stylized facts rather than a precise numerical forecasting engine.

Summary updated

BibTeX
@inproceedings{li2024econagent,
  author = {Nian Li and Chen Gao and Mingyu Li and Yong Li and Qingmin Liao},
  title = {{EconAgent: Large Language Model-Empowered Agents for Simulating Macroeconomic Activities}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.829},
}
Figure