IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2112.14377.html

DeepHAM: A Global Solution Method for Heterogeneous Agent Models with Aggregate Shocks

Author

Listed:
  • Jiequn Han
  • Yucheng Yang
  • Weinan E

Abstract

An efficient, reliable, and interpretable global solution method, the Deep learning-based algorithm for Heterogeneous Agent Models (DeepHAM), is proposed for solving high dimensional heterogeneous agent models with aggregate shocks. The state distribution is approximately represented by a set of optimal generalized moments. Deep neural networks are used to approximate the value and policy functions, and the objective is optimized over directly simulated paths. In addition to being an accurate global solver, this method has three additional features. First, it is computationally efficient in solving complex heterogeneous agent models, and it does not suffer from the curse of dimensionality. Second, it provides a general and interpretable representation of the distribution over individual states, which is crucial in addressing the classical question of whether and how heterogeneity matters in macroeconomics. Third, it solves the constrained efficiency problem as easily as it solves the competitive equilibrium, which opens up new possibilities for studying optimal monetary and fiscal policies in heterogeneous agent models with aggregate shocks.

Suggested Citation

  • Jiequn Han & Yucheng Yang & Weinan E, 2021. "DeepHAM: A Global Solution Method for Heterogeneous Agent Models with Aggregate Shocks," Papers 2112.14377, arXiv.org, revised Feb 2022.
  • Handle: RePEc:arx:papers:2112.14377
    as

    Download full text from publisher

    File URL: https://arxiv.org/pdf/2112.14377
    File Function: Latest version
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. repec:spo:wpmain:info:hdl:2441/2gm7u1h28o97arriihp43sr90l is not listed on IDEAS
    2. Markus K. Brunnermeier & Yuliy Sannikov, 2014. "A Macroeconomic Model with a Financial Sector," American Economic Review, American Economic Association, vol. 104(2), pages 379-421, February.
    3. Achdou, Yves & Han, Jiequn & Lasry, Jean Michel & Lions, Pierre Louis & Moll, Ben, 2022. "Income and wealth distribution in macroeconomics: a continuous-time approach," LSE Research Online Documents on Economics 107422, London School of Economics and Political Science, LSE Library.
    4. Jiequn Han & Ruimeng Hu & Jihao Long, 2020. "Convergence of Deep Fictitious Play for Stochastic Differential Games," Papers 2008.05519, arXiv.org, revised Mar 2021.
    5. Julio Dávila & Jay H. Hong & Per Krusell & José‐Víctor Ríos‐Rull, 2012. "Constrained Efficiency in the Neoclassical Growth Model With Uninsurable Idiosyncratic Shocks," Econometrica, Econometric Society, vol. 80(6), pages 2431-2467, November.
    6. Greg Kaplan & Giovanni L. Violante & Justin Weidner, 2014. "The Wealthy Hand-to-Mouth," Brookings Papers on Economic Activity, Economic Studies Program, The Brookings Institution, vol. 45(1 (Spring), pages 77-153.
    7. Yves Achdou & Jiequn Han & Jean-Michel Lasry & Pierre-Louis Lionse & Benjamin Moll, 2022. "Income and Wealth Distribution in Macroeconomics: A Continuous-Time Approach," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 89(1), pages 45-86.
    8. Maliar, Lilia & Maliar, Serguei, 2022. "Deep learning classification: Modeling discrete labor choice," Journal of Economic Dynamics and Control, Elsevier, vol. 135(C).
    9. Laura Liu & Mikkel Plagborg‐Møller, 2023. "Full‐information estimation of heterogeneous agent models using macro and micro data," Quantitative Economics, Econometric Society, vol. 14(1), pages 1-35, January.
    10. Jeremy Lise & Jean-Marc Robin, 2017. "The Macrodynamics of Sorting between Workers and Firms," American Economic Review, American Economic Association, vol. 107(4), pages 1104-1135, April.
    11. Jeremy Lise & Jean-Marc Robin, 2017. "The Macrodynamics of Sorting between Workers and Firms," SciencePo Working papers hal-03391971, HAL.
    12. Greg Kaplan & Giovanni L. Violante, 2018. "Microeconomic Heterogeneity and Macroeconomic Shocks," Journal of Economic Perspectives, American Economic Association, vol. 32(3), pages 167-194, Summer.
    13. Nicolas Caramp & Dejanir H. Silva, 2021. "Monetary Policy and Wealth Effects: The Role of Risk and Heterogeneity," Working Papers 341, University of California, Davis, Department of Economics.
    14. repec:hal:journl:halshs-03096732 is not listed on IDEAS
    15. Reiter, Michael, 2009. "Solving heterogeneous-agent models by projection and perturbation," Journal of Economic Dynamics and Control, Elsevier, vol. 33(3), pages 649-665, March.
    16. Aubhik Khan & Julia K. Thomas, 2013. "Credit Shocks and Aggregate Fluctuations in an Economy with Production Heterogeneity," Journal of Political Economy, University of Chicago Press, vol. 121(6), pages 1055-1107.
    17. Asger Lau Andersen & Niels Johannesen & Mia Jørgensen & José‐Luis Peydró, 2023. "Monetary Policy and Inequality," Journal of Finance, American Finance Association, vol. 78(5), pages 2945-2989, October.
    18. Woodford, Michael & Xie, Yinxi, 2022. "Fiscal and monetary stabilization policy at the zero lower bound: Consequences of limited foresight," Journal of Monetary Economics, Elsevier, vol. 125(C), pages 18-35.
    19. Fernández-Villaverde, Jesús & Ebrahimi Kahou, Mahdi & Perla, Jesse & Sood, Arnav, 2021. "Exploiting Symmetry in High-Dimensional Dynamic Programming," CEPR Discussion Papers 16285, Centre for Economic Policy Research.
    20. Greg Kaplan & Giovanni L. Violante & Justin Weidner, 2014. "The Wealthy Hand-to-Mouth," Brookings Papers on Economic Activity, Economic Studies Program, The Brookings Institution, vol. 48(1 (Spring), pages 77-153.
    21. Boppart, Timo & Krusell, Per & Mitman, Kurt, 2018. "Exploiting MIT shocks in heterogeneous-agent economies: the impulse response as a numerical derivative," Journal of Economic Dynamics and Control, Elsevier, vol. 89(C), pages 68-92.
    22. Satyajit Chatterjee & Burcu Eyigungor, 2015. "A Seniority Arrangement for Sovereign Debt," American Economic Review, American Economic Association, vol. 105(12), pages 3740-3765, December.
    23. Adrien Auclert, 2019. "Monetary Policy and the Redistribution Channel," American Economic Review, American Economic Association, vol. 109(6), pages 2333-2367, June.
    24. Thomas Winberry, 2018. "A method for solving and estimating heterogeneous agent macro models," Quantitative Economics, Econometric Society, vol. 9(3), pages 1123-1151, November.
    25. Per Krusell & Toshihiko Mukoyama & Aysegul Sahin & Anthony A. Smith, Jr., 2009. "Revisiting the Welfare Effects of Eliminating Business Cycles," Review of Economic Dynamics, Elsevier for the Society for Economic Dynamics, vol. 12(3), pages 393-402, July.
    26. Raj Chetty, 2009. "Sufficient Statistics for Welfare Analysis: A Bridge Between Structural and Reduced-Form Methods," Annual Review of Economics, Annual Reviews, vol. 1(1), pages 451-488, May.
    27. Vytautas Valaitis & Alessandro T. Villa, 2024. "A machine learning projection method for macro‐finance models," Quantitative Economics, Econometric Society, vol. 15(1), pages 145-173, January.
    28. Maliar, Lilia & Maliar, Serguei & Valli, Fernando, 2010. "Solving the incomplete markets model with aggregate uncertainty using the Krusell-Smith algorithm," Journal of Economic Dynamics and Control, Elsevier, vol. 34(1), pages 42-49, January.
    29. Christian Bayer & Ralph Luetticke, 2020. "Solving discrete time heterogeneous agent models with aggregate risk and many idiosyncratic states by perturbation," Quantitative Economics, Econometric Society, vol. 11(4), pages 1253-1288, November.
    30. Jiequn Han & Ruimeng Hu, 2019. "Deep Fictitious Play for Finding Markovian Nash Equilibrium in Multi-Agent Games," Papers 1912.01809, arXiv.org, revised Jun 2020.
    31. Alisdair McKay & Ricardo Reis, 2016. "The Role of Automatic Stabilizers in the U.S. Business Cycle," Econometrica, Econometric Society, vol. 84, pages 141-194, January.
    32. Per Krusell & Anthony A. Smith & Jr., 1998. "Income and Wealth Heterogeneity in the Macroeconomy," Journal of Political Economy, University of Chicago Press, vol. 106(5), pages 867-896, October.
    33. Anmol Bhandari & David Evans & Mikhail Golosov & Thomas J. Sargent, 2021. "Inequality, Business Cycles, and Monetary‐Fiscal Policy," Econometrica, Econometric Society, vol. 89(6), pages 2559-2599, November.
    34. Javier Bianchi & Enrique G. Mendoza, 2018. "Optimal Time-Consistent Macroprudential Policy," Journal of Political Economy, University of Chicago Press, vol. 126(2), pages 588-634.
    35. Greg Kaplan & Kurt Mitman & Giovanni L. Violante, 2020. "The Housing Boom and Bust: Model Meets Evidence," Journal of Political Economy, University of Chicago Press, vol. 128(9), pages 3285-3345.
    36. David Silver & Aja Huang & Chris J. Maddison & Arthur Guez & Laurent Sifre & George van den Driessche & Julian Schrittwieser & Ioannis Antonoglou & Veda Panneershelvam & Marc Lanctot & Sander Dieleman, 2016. "Mastering the game of Go with deep neural networks and tree search," Nature, Nature, vol. 529(7587), pages 484-489, January.
    37. SeHyoun Ahn & Greg Kaplan & Benjamin Moll & Thomas Winberry & Christian Wolf, 2018. "When Inequality Matters for Macro and Macro Matters for Inequality," NBER Macroeconomics Annual, University of Chicago Press, vol. 32(1), pages 1-75.
    38. Sebastian Dyrda & Marcelo Pedroni, 2015. "Optimal Fiscal Policy in a Model with Uninsurable Idiosyncratic Shocks," Working Papers tecipa-550, University of Toronto, Department of Economics.
    39. Greg Kaplan & Benjamin Moll & Giovanni L. Violante, 2018. "Monetary Policy According to HANK," American Economic Review, American Economic Association, vol. 108(3), pages 697-743, March.
    40. Adrien Auclert & Bence Bardóczy & Matthew Rognlie & Ludwig Straub, 2021. "Using the Sequence‐Space Jacobian to Solve and Estimate Heterogeneous‐Agent Models," Econometrica, Econometric Society, vol. 89(5), pages 2375-2408, September.
    41. Galo Nuno & Benjamin Moll, 2018. "Social Optima in Economies with Heterogeneous Agents," Review of Economic Dynamics, Elsevier for the Society for Economic Dynamics, vol. 28, pages 150-180, April.
    42. repec:hal:cesptp:halshs-03096732 is not listed on IDEAS
    43. Zhouzhou Gu & Mathieu Laurière & Sebastian Merkel & Jonathan Payne, 2023. "Deep Learning Solutions to Master Equations for Continuous Time Heterogeneous Agent Macroeconomic Models," Working Papers 2023-19, Princeton University. Economics Department..
    44. Maliar, Lilia & Maliar, Serguei & Winant, Pablo, 2021. "Deep learning for solving dynamic economic models," Journal of Monetary Economics, Elsevier, vol. 122(C), pages 76-101.
    45. Marcelo Arbex & Dennis O'Dea & David Wiczer, 2019. "Network Search: Climbing The Job Ladder Faster," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 60(2), pages 693-720, May.
    46. Kuhelika De & Venoo Kakar, 2021. "Effects of Monetary Policy on Food Inequality in India," Journal of Development Studies, Taylor & Francis Journals, vol. 57(11), pages 1852-1870, November.
    47. Den Haan, Wouter J., 2010. "Comparison of solutions to the incomplete markets model with aggregate uncertainty," Journal of Economic Dynamics and Control, Elsevier, vol. 34(1), pages 4-27, January.
    48. Rohan Kekre & Moritz Lenel, 2022. "Monetary Policy, Redistribution, and Risk Premia," Econometrica, Econometric Society, vol. 90(5), pages 2249-2282, September.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Fernández-Villaverde, Jesús & Marbet, Joël & Nuño, Galo & Rachedi, Omar, 2025. "Inequality and the zero lower bound," Journal of Econometrics, Elsevier, vol. 249(PC).
    2. Xianhua Peng & Wu Guo, 2026. "Deep Learning for Dynamic Programming with Recursive Utility," Papers 2607.04278, arXiv.org.
    3. Marlon Azinovic-Yang & Jan Zemlicka, 2025. "Deep Learning in the Sequence Space," CERGE-EI Working Papers wp802, The Center for Economic Research and Graduate Education - Economics Institute, Prague.
    4. Fernández-Villaverde, Jesús & Nuño, Galo & Perla, Jesse, 2024. "Taming the Curse of Dimensionality: Quantitative Economics with Deep Learning," CEPR Discussion Papers 19636, Centre for Economic Policy Research.
    5. Marlon Azinovic-Yang & Jan v{Z}emliv{c}ka, 2025. "Deep Learning in the Sequence Space," Papers 2509.13623, arXiv.org, revised Mar 2026.
    6. Xiaohong Chen & Luis Hoderlein & Jonas Lieber, 2026. "Neural Networks in Economics: A Selective Review," Cowles Foundation Discussion Papers 2539, Cowles Foundation for Research in Economics, Yale University.
    7. Fukasawa, Takeshi, 2025. "The use of symmetry for models with variable-size variables," Mathematical Social Sciences, Elsevier, vol. 138(C).
    8. Mahdi Ebrahimi Kahou & Jesse Perla & Geoff Pleiss, 2024. "Solving Models of Economic Dynamics with Ridgeless Kernel Regressions," Papers 2406.01898, arXiv.org, revised Oct 2025.
    9. Lee, H., 2026. "Dancing on the Saddles: A Geometric Framework for Stochastic Equilibrium Dynamics," Cambridge Working Papers in Economics 2604, Faculty of Economics, University of Cambridge.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Boehl, Gregor, 2025. "HANK on speed: Robust nonlinear solutions using automatic differentiation," Journal of Economic Theory, Elsevier, vol. 230(C).
    2. Kase, Hanno & Melosi, Leonardo & Rottner, Matthias, 2022. "Estimating Nonlinear Heterogeneous Agents Models with Neural Networks," CEPR Discussion Papers 17391, Centre for Economic Policy Research.
    3. Hanno Kase & Matthias Rottner & Fabio Stohler, 2025. "Generative economic modeling," BIS Working Papers 1312, Bank for International Settlements.
    4. Fernández-Villaverde, Jesús & Marbet, Joël & Nuño, Galo & Rachedi, Omar, 2025. "Inequality and the zero lower bound," Journal of Econometrics, Elsevier, vol. 249(PC).
    5. Dobrew, Michael & Gerke, Rafael & Giesen, Sebastian & Röttger, Joost, 2025. "Make-up strategies with incomplete markets and bounded rationality," European Economic Review, Elsevier, vol. 173(C).
    6. Zhouzhou Gu & Mathieu Lauri`ere & Sebastian Merkel & Jonathan Payne, 2024. "Global Solutions to Master Equations for Continuous Time Heterogeneous Agent Macroeconomic Models," Papers 2406.13726, arXiv.org.
    7. Marlon Azinovic-Yang & Jan v{Z}emliv{c}ka, 2025. "Deep Learning in the Sequence Space," Papers 2509.13623, arXiv.org, revised Mar 2026.
    8. Jesús Fernández‐Villaverde & Samuel Hurtado & Galo Nuño, 2023. "Financial Frictions and the Wealth Distribution," Econometrica, Econometric Society, vol. 91(3), pages 869-901, May.
    9. Felipe Alves & Christian Bustamante & Xing Guo & Katya Kartashova & Soyoung Lee & Thomas Michael Pugh & Kurt See & Yaz Terajima & Alexander Ueberfeldt, 2022. "Heterogeneity and Monetary Policy: A Thematic Review," Discussion Papers 2022-2, Bank of Canada.
    10. Emmet Hall-Hoffarth, 2023. "Non-linear approximations of DSGE models with neural-networks and hard-constraints," Papers 2310.13436, arXiv.org.
    11. Nyholm, Juho & Silvo, Aino, 2026. "Household debt, the real economy, and financial stability: A literature review," Bank of Finland Research Discussion Papers 4/2026, Bank of Finland.
    12. Marlon Azinovic-Yang & Jan Zemlicka, 2025. "Deep Learning in the Sequence Space," CERGE-EI Working Papers wp802, The Center for Economic Research and Graduate Education - Economics Institute, Prague.
    13. Juan Carlos Parra‐Alvarez & Olaf Posch & Mu‐Chun Wang, 2023. "Estimation of Heterogeneous Agent Models: A Likelihood Approach," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 85(2), pages 304-330, April.
    14. Darracq Pariès, Matthieu & Notarpietro, Alessandro & Kilponen, Juha & Papadopoulou, Niki & Zimic, Srečko & Aldama, Pierre & Langenus, Geert & Alvarez, Luis Julian & Lemoine, Matthieu & Angelini, Elena, 2021. "Review of macroeconomic modelling in the Eurosystem: current practices and scope for improvement," Occasional Paper Series 267, European Central Bank.
    15. Gorodnichenko, Yuriy & Maliar, Serguei & Naubert, Christopher, 2020. "Household Savings and Monetary Policy under Individual and Aggregate Stochastic Volatility," CEPR Discussion Papers 15614, Centre for Economic Policy Research.
    16. Albacete, Nicolas & Fessler, Pirmin & Pekanov, Atanas, 2025. "The role of MPC heterogeneity for fiscal policy in the euro area," Journal of Macroeconomics, Elsevier, vol. 86(C).
    17. Andreas Tryphonides, 2020. "Heterogeneity and the Dynamic Effects of Aggregate Shocks," Papers 2007.14022, arXiv.org.
    18. Fernández-Villaverde, Jesús & Nuño, Galo & Perla, Jesse, 2024. "Taming the Curse of Dimensionality: Quantitative Economics with Deep Learning," CEPR Discussion Papers 19636, Centre for Economic Policy Research.
    19. François Le Grand & Xavier Ragot, 2022. "Managing Inequality Over Business Cycles: Optimal Policies With Heterogeneous Agents And Aggregate Shocks," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 63(1), pages 511-540, February.
    20. Chipeniuk, Karsten O. & Katz, Nets Hawk & Walker, Todd B., 2022. "Households, auctioneers, and aggregation," European Economic Review, Elsevier, vol. 141(C).

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2112.14377. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: https://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.