IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2310.13436.html
   My bibliography  Save this paper

Non-linear approximations of DSGE models with neural-networks and hard-constraints

Author

Listed:
  • Emmet Hall-Hoffarth

Abstract

Recently a number of papers have suggested using neural-networks in order to approximate policy functions in DSGE models, while avoiding the curse of dimensionality, which for example arises when solving many HANK models, and while preserving non-linearity. One important step of this method is to represent the constraints of the economic model in question in the outputs of the neural-network. I propose, and demonstrate the advantages of, a novel approach to handling these constraints which involves directly constraining the neural-network outputs, such that the economic constraints are satisfied by construction. This is achieved by a combination of re-scaling operations that are differentiable and therefore compatible with the standard gradient descent approach used when fitting neural-networks. This has a number of attractive properties, and is shown to out-perform the penalty-based approach suggested by the existing literature, which while theoretically sound, can be poorly behaved practice for a number of reasons that I identify.

Suggested Citation

  • Emmet Hall-Hoffarth, 2023. "Non-linear approximations of DSGE models with neural-networks and hard-constraints," Papers 2310.13436, arXiv.org.
  • Handle: RePEc:arx:papers:2310.13436
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Sushant Acharya & Edouard Challe & Keshav Dogra, 2023. "Optimal Monetary Policy According to HANK," American Economic Review, American Economic Association, vol. 113(7), pages 1741-1782, July.
    2. Maliar, Serguei & Maliar, Lilia & Judd, Kenneth, 2011. "Solving the multi-country real business cycle model using ergodic set methods," Journal of Economic Dynamics and Control, Elsevier, vol. 35(2), pages 207-228, February.
    3. 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.
    4. 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.
    5. Carroll, Christopher D., 2006. "The method of endogenous gridpoints for solving dynamic stochastic optimization problems," Economics Letters, Elsevier, vol. 91(3), pages 312-320, June.
    6. Marlon Azinovic & Luca Gaegauf & Simon Scheidegger, 2022. "Deep Equilibrium Nets," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 63(4), pages 1471-1525, November.
    7. Judd, Kenneth L. & Maliar, Lilia & Maliar, Serguei & Valero, Rafael, 2014. "Smolyak method for solving dynamic economic models: Lagrange interpolation, anisotropic grid and adaptive domain," Journal of Economic Dynamics and Control, Elsevier, vol. 44(C), pages 92-123.
    8. 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.
    9. Koop, Gary & Pesaran, M. Hashem & Potter, Simon M., 1996. "Impulse response analysis in nonlinear multivariate models," Journal of Econometrics, Elsevier, vol. 74(1), pages 119-147, September.
    10. Yves Achdou & Jiequn Han & Jean-Michel Lasry & Pierre-Louis Lionse & Benjamin Moll, 2022. "Income and Wealth Distribution in Macroeconomics: A Continuous-Time Approach [On the Existence and Uniqueness of Stationary Equilibrium in Bewley Economies with Production]," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 89(1), pages 45-86.
    11. Bayer, Christian & Luetticke, Ralph, 2018. "Solving heterogeneous agent models in discrete time with many idiosyncratic states by perturbation methods," CEPR Discussion Papers 13071, C.E.P.R. Discussion Papers.
    12. Greenwood, Jeremy & Hercowitz, Zvi & Huffman, Gregory W, 1988. "Investment, Capacity Utilization, and the Real Business Cycle," American Economic Review, American Economic Association, vol. 78(3), pages 402-417, June.
    13. Julio J. Rotemberg, 1987. "The New Keynesian Microfoundations," NBER Chapters, in: NBER Macroeconomics Annual 1987, Volume 2, pages 69-116, National Bureau of Economic Research, Inc.
    14. 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.
    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. 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.
    17. 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.
    Full references (including those not matched with items on IDEAS)

    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. Ralph Luetticke, 2021. "Transmission of Monetary Policy with Heterogeneity in Household Portfolios," American Economic Journal: Macroeconomics, American Economic Association, vol. 13(2), pages 1-25, April.
    2. Nils M. Gornemann & Keith Kuester & Makoto Nakajima, 2021. "Doves for the Rich, Hawks for the Poor? Distributional Consequences of Systematic Monetary Policy," Opportunity and Inclusive Growth Institute Working Papers 50, Federal Reserve Bank of Minneapolis.
    3. 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.
    4. 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.
    5. Fernández-Villaverde, Jesús & Marbet, Joël & Nuño, Galo & Rachedi, Omar, 2023. "Inequality and the Zero Lower Bound," CEPR Discussion Papers 18168, C.E.P.R. Discussion Papers.
    6. 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.
    7. Papp, Tamás K. & Reiter, Michael, 2020. "Estimating linearized heterogeneous agent models using panel data," Journal of Economic Dynamics and Control, Elsevier, vol. 115(C).
    8. 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.
    9. Christian Bayer & Ralph Luetticke, 2019. "Shocks, Frictions, and Inequality in US Business Cycles," 2019 Meeting Papers 256, Society for Economic Dynamics.
    10. Takeki Sunakawa, 2020. "Applying the Explicit Aggregation Algorithm to Heterogeneous Macro Models," Computational Economics, Springer;Society for Computational Economics, vol. 55(3), pages 845-874, March.
    11. Grimaud, Alex, 2021. "Precautionary saving and un-anchored expectations," MPRA Paper 110651, University Library of Munich, Germany.
    12. Marlon Azinovic & Luca Gaegauf & Simon Scheidegger, 2022. "Deep Equilibrium Nets," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 63(4), pages 1471-1525, November.
    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. Pierre Mabille, 2019. "Aggregate Precautionary Savings Motives," 2019 Meeting Papers 344, Society for Economic Dynamics.
    15. 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.
    16. Khieu, Hoang & Wälde, Klaus, 2023. "Capital income risk and the dynamics of the wealth distribution," Economic Modelling, Elsevier, vol. 122(C).
    17. repec:hal:wpspec:info:hdl:2441/4lhe3u3c38ojohjlcbfaupcjr is not listed on IDEAS
    18. Soyoung Lee, 2023. "The Macroeconomic Effects of Debt Relief Policies During Recessions," Staff Working Papers 23-48, Bank of Canada.
    19. Karsten O. Chipeniuk, 2020. "Optimal Grid Selection for the Numerical Solution of Dynamic Stochastic Optimization Problems," Computational Economics, Springer;Society for Computational Economics, vol. 56(4), pages 883-928, December.
    20. repec:hal:spmain:info:hdl:2441/4lhe3u3c38ojohjlcbfaupcjr is not listed on IDEAS
    21. 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.
    22. Ciccarelli, Matteo & Darracq Pariès, Matthieu & Priftis, Romanos & Angelini, Elena & Bańbura, Marta & Bokan, Nikola & Fagan, Gabriel & Gumiel, José Emilio & Kornprobst, Antoine & Lalik, Magdalena & Mo, 2024. "ECB macroeconometric models for forecasting and policy analysis," Occasional Paper Series 344, European Central Bank.

    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:2310.13436. 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: http://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.