Abstract
The advent of artificial intelligence has led to a growing emphasis on data-driven modeling in macroeconomics, with agent-based modeling (ABM) emerging as a prominent bottom-up simulation paradigm. In ABM, agents (e.g., households, firms) interact within a macroeconomic environment, collectively generating market dynamics. Existing agent modeling typically employs predetermined rules or learning-based neural networks for decision-making. However, customizing each agent presents significant challenges, complicating the modeling of agent heterogeneity. Additionally, the influence of multi-period market dynamics and multifaceted macroeconomic factors are often overlooked in decision-making processes. In this work, we introduce EconAgent, a large language model-empowered agent with human-like characteristics for macroeconomic simulation. We first construct a simulation environment that incorporates various market dynamics driven by agents' decisions regarding work and consumption. Through the perception module, we create heterogeneous agents with distinct decision-making mechanisms. Furthermore, we model the impact of macroeconomic trends using a memory module, which allows agents to reflect on past individual experiences and market dynamics. Simulation experiments show that EconAgent can make realistic decisions, leading to more reasonable macroeconomic phenomena compared to existing rule-based or learning-based agents.
Introduction
Macroeconomics seeks to understand the aggregate behavior of economies, yet traditional models often struggle to capture the complexity of individual human decision-making. Agent-Based Modeling (ABM) offers a bottom-up approach where individual agents—like households and firms—interact to generate market dynamics. However, traditional ABMs face two major hurdles: modeling agent heterogeneity (the unique traits of different individuals) and contextual reasoning (the ability to remember past trends and anticipate future uncertainty).
To address these challenges, we present EconAgent, a framework that leverages Large Language Models (LLMs) to power autonomous agents. By replacing rigid, rule-based behaviors with LLM-driven reasoning, EconAgent successfully reproduces complex economic phenomena that traditional models often fail to capture.
Methodology
EconAgent operates within a simulated macroeconomic environment featuring labor and consumption markets, banking systems, and government taxation. The architecture is built around three core modules:
- Perception Module: This module translates raw economic data—such as wages, taxes, and savings—into natural language profiles. Agents are initialized with realistic "human" traits (name, age, occupation) based on 2018 U.S. Census Bureau data.
- Memory & Reflection Module: Agents maintain a record of past experiences. Periodically, the LLM "reflects" on these memories to identify broader economic trends, such as price fluctuations or job market stability.
- Action Module: Based on perception and reflection, the LLM outputs propensity scores for critical decisions: labor supply (whether to work) and consumption (how much to spend).
The simulation is grounded in real-world data, including the 2018 U.S. Federal Tax Schedule for progressive taxation and a Pareto distribution to model realistic wage gaps across the population.
Experimental Results
EconAgent demonstrates superior stability and realism compared to rule-based or reinforcement learning (RL) baselines. While models like LEN or CATS exhibited wild oscillations in inflation (exceeding 20%), EconAgent maintained stable rates between -5% and 5%. Unemployment rates also remained within a realistic 2% to 12% range, aligning closely with historical data.
Emergent Macroeconomic Regularities
A key achievement of EconAgent is the emergent manifestation of fundamental economic laws. It was the only model tested that correctly replicated the Phillips Curve (the inverse relationship between unemployment and wage inflation) and Okun’s Law (the correlation between unemployment and GDP growth).
Qualitative Reasoning and Adaptability
Ablation studies highlighted the importance of the "Reflection" module; without it, simulations became unstable as agents failed to perceive trends. Qualitatively, agents exhibited human-like reasoning, expressing concerns about "job security" during downturns. Furthermore, when presented with a "National Emergency" prompt (simulating COVID-19), agents autonomously reduced work and consumption, replicating the 2020 unemployment surge without manual parameter tuning.
Conclusion and Future Work
EconAgent represents a significant step toward more realistic macroeconomic simulations by imbuing agents with LLM-powered reasoning and memory. Current limitations include the simplified mathematical modeling of the "supply side" (firms) and the high computational cost of LLM inference. Future work will focus on scaling these simulations and incorporating LLM-driven firm agents to better model hiring and pricing dynamics.
Summary updated