• Twitter
  • Search
e-axes

360° Econ View

The issues, the debates, and the research

  • Home
  • Useful Data
  • About
  • Contact
  • Home
  • Useful Data
  • About
  • Contact

Economic Science

Heterogeneous agent models and AI

Posted by e-axes on January 26, 2022

Read Next →

Economic Science

When AI Solves Economics’ Computational Barriers

Economic Science

Most Read Posts in 2025

Economic Science

New Computational Methods in Macroeconomic Modeling

What is DeepHAM?

There are currently two main approaches for solving HA models with aggregate shocks: the first is the Krusell-Smith (KS) method, a global solution method proposed in Krusell and Smith (1998)1; and the second is the local perturbation method proposed in Reiter (2009)2. In this paper, Han et al. propose a new solution method called “Deep learning-based algorithm for Heterogeneous Agent Models,” or DeepHAM, for solving high dimensional heterogeneous agent models with aggregate shocks. The novelty of their approach relies on the way they use deep learning: they introduce generalized moments to represent the state distribution efficiently, and solve the value and policy outcomes as functions of the generalized moments. Generalized moments extract useful information from the state distribution like classical moments, and are automatically solved from the algorithm. The introduction of the generalized moments also ensures that the agent’s optimal policy and value functions are invariant with respect to the permutation of the ordering of the agents.
DeepHAM improves over the existing method in three ways:

  • It shows better global accuracy compared to existing methods. In the baseline model they study, DeepHAM with only the first moment in the state vector reduces the Bellman equation error by 37.5% compared to the KS method. DeepHAM with one generalized moment reduces the error by 54.2%.
  • The computational cost of DeepHAM is quite low in solving complex HA models, and it does not suffer from the curse of dimensionality.
  • The use of generalized moments allows to revisit the classical question in the macroeconomic literature on whether and how heterogeneity matters to aggregate welfare and dynamics.


DeepHAM: A Global Solution Method for Heterogeneous Agent Models with Aggregate Shocks
Authors: Jiequn Han, Yucheng Yang, Weinan E
From: Princeton University and Peking University

Exploring symmetry in heterogeneous agent models

Kahou et al. develop a different method for solving high-dimensional dynamic programming problems and recursive competitive equilibria with a large (but finite) number of heterogeneous agents using deep learning. Their method is based on the Krussel and Smith method mentioned above. The novelty of their method is in introducing the notion of permutation-invariant dynamic programming and describe how it is possible to use powerful theorems to represent functions invariant to permutations. This theorem can lead to an exponential reduction in the dimensionality of the state space.
In particular, most heterogeneous agent models in economics have a latent but obvious symmetry imposed by the presence of a Walrasian auctioneer. In general equilibrium, the auctioneer collects all the excess supplies of each agent, aggregates them, and sells them. This aggregation removes the indices of agents in the economy and the solution of the model is invariant under all the permutations of other agents’ states. For symmetry to hold, they require that the agents behave the same when they happen to have the same state values.
Their approach has two clear advantages:

  • First, they can build from theorems that tell them which representation functions they need, instead of relying on the intuition of the researcher.
  • Second, their representation theorem is easily implementable with deep neural networks.

Symmetry, together with concentration of measure, allowed us to break the curse of dimensionality. The method is easy to implement using standard, open-source software libraries and fast to run on a standard laptop. Our results open the door to many applications of interest, including macro, finance, international finance, industrial organization, international trade, spatial economies, and other fields.

Exploiting Symmetry in High-Dimensional Dynamic Programming
Authors: Mahdi Ebrahimi Kahou, Jesús Fernández-Villaverde, Jesse Perla, Arnav Sood
From: University of British Columbia, University of Pennsylvania, Carnegie Mellon University

1.  Krusell, Per and Anthony A Smith, Jr (1998), “Income and wealth heterogeneity in the macroeconomy.” Journal of Political Economy, 106, 867–896.
2. Reiter, Michael (2009), “Solving heterogeneous-agent models by projection and perturbation.” Journal of Economic Dynamics and Control, 33, 649–665.
Print Friendly, PDF & Email

e-axes

Read Next →

Economic Science

When AI Solves Economics’ Computational Barriers

Economic Science

Most Read Posts in 2025

Economic Science

New Computational Methods in Macroeconomic Modeling

Comments are Closed

Account

  • Login

Subscriptions

You are not logged in.
Login
Subscribe

Subscriptions

Subscribe

Most Read

  • Gold, the Dollar, and the Geopolitics of Global Reserves
  • From Information to Liquidity: How Stablecoins Reshape Bank Intermediation
  • China and the Political Economy of Critical Minerals
  • Public Debt Maturity and Macroeconomic Policy Transmission
  • Bank Heterogeneity and the Transmission of Monetary Tightening
  • AI, Knowledge and the Future of Human Expertise
  • New and Noteworthy Books in Economics (September)
  • AI Valuations, Capital Investment, and Growth
  • AI and the Natural Rate: Puzzle or Policy Challenge?
  • Fertility Falls Everywhere But Will Growth Suffer?

Sections

  • AI
  • Banking
  • Books
  • Brexit
  • CBDC
  • China
  • Climate
  • COVID-19
  • Crypto
  • Demographics
  • Economic Growth
  • Economic Science
  • Economics of Information
  • Emerging Markets
  • Eurozone
  • Financial Markets
  • Geoeconomics
  • Geopolitics
  • India
  • Inequality
  • Inflation
  • International Economics
  • Macro
  • Markets
  • Monetary Policy
  • Oil
  • Politics & Economics
  • Taxation
  • Tech
  • Trade
  • U.S.
  • Ukraine-Russia War
  • Uncategorized
  • Useful Data

© 2026 e-axes

  • Privacy Policy & Terms of Service

Theme by Anders Norén

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Cookie settingsAccept
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are as essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
SAVE & ACCEPT