[Paper Review] Solving Heterogeneous General Equilibrium Economic Models with Deep Reinforcement Learning
This paper proposes a deep reinforcement learning (DRL) framework to solve heterogeneous agent general equilibrium models in macroeconomics, overcoming limitations of traditional semi-analytical methods. By training agents to optimize intertemporal utility subject to market-clearing constraints, the method achieves accurate, stable, and scalable solutions for complex models with stochasticity, heterogeneity, and dynamic feedback—demonstrated on a precautionary saving model, a stochastic RBC model, and an epi-macro pandemic model with age-specific risk and labor supply responses.
General equilibrium macroeconomic models are a core tool used by policymakers to understand a nation's economy. They represent the economy as a collection of forward-looking actors whose behaviours combine, possibly with stochastic effects, to determine global variables (such as prices) in a dynamic equilibrium. However, standard semi-analytical techniques for solving these models make it difficult to include the important effects of heterogeneous economic actors. The COVID-19 pandemic has further highlighted the importance of heterogeneity, for example in age and sector of employment, in macroeconomic outcomes and the need for models that can more easily incorporate it. We use techniques from reinforcement learning to solve such models incorporating heterogeneous agents in a way that is simple, extensible, and computationally efficient. We demonstrate the method's accuracy and stability on a toy problem for which there is a known analytical solution, its versatility by solving a general equilibrium problem that includes global stochasticity, and its flexibility by solving a combined macroeconomic and epidemiological model to explore the economic and health implications of a pandemic. The latter successfully captures plausible economic behaviours induced by differential health risks by age.
Motivation & Objective
- Address the limitations of semi-analytical methods in solving general equilibrium models with heterogeneous agents, especially under stochasticity and dynamic feedback.
- Enable the modeling of realistic economic phenomena such as pandemic impacts, age-specific labor supply, and sectoral heterogeneity that standard representative agent models cannot capture.
- Develop a computationally efficient, extensible, and stable framework for solving rational expectations equilibrium (REE) models with continuous choice variables and global constraints.
- Demonstrate the method’s accuracy and robustness across diverse macroeconomic settings, including models with global stochastic shocks and endogenous health-economy interactions.
- Bridge macroeconomics and reinforcement learning by enabling scalable, forward-looking agent behavior under uncertainty, with potential for policy-relevant simulation and inverse RL applications.
Proposed method
- Formulate the general equilibrium model as a Markov decision process where households and firms optimize intertemporal utility subject to budget and production constraints.
- Use deep Q-networks (DQN) with prioritized experience replay and target networks to stabilize training of agents in high-dimensional, continuous state and action spaces.
- Implement a centralized training with decentralized execution (CTDE) approach, where global market-clearing conditions (e.g., price, interest rate) are computed from aggregate agent actions.
- Integrate stochastic global variables (e.g., technology shocks) via log-autoregressive processes, allowing agents to observe or not observe realizations, affecting their policy learning.
- Train agents using off-policy experience replay, with experience trajectories collected in parallel across multiple simulations to improve sample efficiency.
- Apply value function averaging and learning rate decay to stabilize convergence and reduce oscillations in policy learning.
Experimental results
Research questions
- RQ1Can deep reinforcement learning accurately solve a rational expectations equilibrium model with heterogeneous agents and continuous choice variables?
- RQ2How does the ability of agents to observe global stochastic shocks (e.g., technology shocks) affect the stability and curvature of their labor supply paths?
- RQ3Can the DRL framework model complex, real-world interactions such as the feedback loop between pandemic dynamics and macroeconomic outcomes?
- RQ4How does the method scale in terms of computational efficiency and convergence stability when modeling heterogeneous agents with distinct preferences and constraints?
- RQ5To what extent can the framework capture realistic economic behaviors such as precautionary saving and differential labor supply by age group under health risk?
Key findings
- The DRL method successfully solves a benchmark precautionary saving model with known analytical solutions, achieving high accuracy and stability across multiple runs.
- Agents who observe realizations of technology shocks exhibit significantly smoother labor supply paths, with mean unsigned curvature decreasing from 0.44 (non-observers) to 0.27 (observers) on average.
- In the epi-macro model, the framework captures plausible age-specific labor supply responses to differential health risks, demonstrating realistic macroeconomic feedback from pandemic dynamics.
- The method scales effectively with parallelized experience collection, achieving convergence in approximately 6 hours using 8 threads and ~100,000 total experiences.
- The use of prioritized experience replay and learning rate decay significantly improves training stability and reduces oscillations in policy learning.
- The framework successfully handles global stochasticity in production shocks, with agents adapting dynamically to autoregressive technology processes, even when not all agents have full observability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.