Heterogeneous RBCs via deep multi-agent reinforcement learning
Federico Gabriele, Aldo Glielmo, Marco Taboga
TL;DR
The paper addresses the challenge of incorporating realistic agent heterogeneity into macroeconomic models by marrying deep multi-agent reinforcement learning (MARL) with Real Business Cycle dynamics. The proposed MARL-BC framework enables a population of heterogeneous RL households to drive macro outcomes, reproducing textbook RBC with a single agent and Krusell–Smith mean-field results with many identical agents, while also supporting richer, endogenous heterogeneity beyond traditional GE models. Key contributions include a concrete MARL environment with fixed agent productivities, a learning architecture using parameter sharing across agents, and demonstrations across RBC, KS, and generalized heterogeneous settings, along with open-source code. The work advances a synthesis of ABMs and GE approaches, enabling endogenously learned policies and scalable heterogeneity, with potential applications to inequality, productivity shocks, and policy design in macroeconomics.
Abstract
Current macroeconomic models with agent heterogeneity can be broadly divided into two main groups. Heterogeneous-agent general equilibrium (GE) models, such as those based on Heterogeneous Agents New Keynesian (HANK) or Krusell-Smith (KS) approaches, rely on GE and 'rational expectations', somewhat unrealistic assumptions that make the models very computationally cumbersome, which in turn limits the amount of heterogeneity that can be modelled. In contrast, agent-based models (ABMs) can flexibly encompass a large number of arbitrarily heterogeneous agents, but typically require the specification of explicit behavioural rules, which can lead to a lengthy trial-and-error model-development process. To address these limitations, we introduce MARL-BC, a framework that integrates deep multi-agent reinforcement learning (MARL) with Real Business Cycle (RBC) models. We demonstrate that MARL-BC can: (1) recover textbook RBC results when using a single agent; (2) recover the results of the mean-field KS model using a large number of identical agents; and (3) effectively simulate rich heterogeneity among agents, a hard task for traditional GE approaches. Our framework can be thought of as an ABM if used with a variety of heterogeneous interacting agents, and can reproduce GE results in limit cases. As such, it is a step towards a synthesis of these often opposed modelling paradigms.
