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

Economics-Inspired Neural Networks with Stabilizing Homotopies

Author

Listed:
  • Marlon Azinovic
  • Jan v{Z}emliv{c}ka

Abstract

Contemporary deep learning based solution methods used to compute approximate equilibria of high-dimensional dynamic stochastic economic models are often faced with two pain points. The first problem is that the loss function typically encodes a diverse set of equilibrium conditions, such as market clearing and households' or firms' optimality conditions. Hence the training algorithm trades off errors between those -- potentially very different -- equilibrium conditions. This renders the interpretation of the remaining errors challenging. The second problem is that portfolio choice in models with multiple assets is only pinned down for low errors in the corresponding equilibrium conditions. In the beginning of training, this can lead to fluctuating policies for different assets, which hampers the training process. To alleviate these issues, we propose two complementary innovations. First, we introduce Market Clearing Layers, a neural network architecture that automatically enforces all the market clearing conditions and borrowing constraints in the economy. Encoding economic constraints into the neural network architecture reduces the number of terms in the loss function and enhances the interpretability of the remaining equilibrium errors. Furthermore, we present a homotopy algorithm for solving portfolio choice problems with multiple assets, which ameliorates numerical instabilities arising in the context of deep learning. To illustrate our method we solve an overlapping generations model with two permanent risk aversion types, three distinct assets, and aggregate shocks.

Suggested Citation

  • Marlon Azinovic & Jan v{Z}emliv{c}ka, 2023. "Economics-Inspired Neural Networks with Stabilizing Homotopies," Papers 2303.14802, arXiv.org.
  • Handle: RePEc:arx:papers:2303.14802
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. P. Jean-Jacques Herings & Felix Kubler, 2002. "Computing Equilibria in Finance Economies," Mathematics of Operations Research, INFORMS, vol. 27(4), pages 637-646, November.
    2. Kenneth L. Judd & Lilia Maliar & Serguei Maliar, 2011. "Numerically stable and accurate stochastic simulation approaches for solving dynamic economic models," Quantitative Economics, Econometric Society, vol. 2(2), pages 173-210, July.
    3. 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.
    4. Houyuan Jiang, 1999. "Global Convergence Analysis of the Generalized Newton and Gauss-Newton Methods of the Fischer-Burmeister Equation for the Complementarity Problem," Mathematics of Operations Research, INFORMS, vol. 24(3), pages 529-543, August.
    5. Schmedders, Karl, 1998. "Computing equilibria in the general equilibrium model with incomplete asset markets," Journal of Economic Dynamics and Control, Elsevier, vol. 22(8-9), pages 1375-1401, August.
    6. Spear, Stephen E., 1988. "Existence and local uniqueness of functional rational expectations equilibria in dynamic economic models," Journal of Economic Theory, Elsevier, vol. 44(1), pages 124-155, February.
    7. Victor Duarte & Julia Fonseca & Aaron S. Goodman & Jonathan A. Parker, 2021. "Simple Allocation Rules and Optimal Portfolio Choice Over the Lifecycle," NBER Working Papers 29559, National Bureau of Economic Research, Inc.
    8. Kenneth L. Judd, 1998. "Numerical Methods in Economics," MIT Press Books, The MIT Press, edition 1, volume 1, number 0262100711, April.
    9. Judd, Kenneth L. & Kubler, Felix & Schmedders, Karl, 2000. "Computing equilibria in infinite-horizon finance economies: The case of one asset," Journal of Economic Dynamics and Control, Elsevier, vol. 24(5-7), pages 1047-1078, June.
    10. Krueger, Dirk & Kubler, Felix, 2004. "Computing equilibrium in OLG models with stochastic production," Journal of Economic Dynamics and Control, Elsevier, vol. 28(7), pages 1411-1436, April.
    11. Johannes Brumm & Simon Scheidegger, 2017. "Using Adaptive Sparse Grids to Solve High‐Dimensional Dynamic Models," Econometrica, Econometric Society, vol. 85, pages 1575-1612, September.
    12. 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)

    Citations

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


    Cited by:

    1. 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.
    2. 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.
    3. Xianhua Peng & Steven Kou & Lekang Zhang, 2024. "A Machine Learning Algorithm for Finite-Horizon Stochastic Control Problems in Economics," Papers 2411.08668, arXiv.org, revised Dec 2024.

    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. 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.
    2. Victor Duarte & Diogo Duarte & Dejanir H. Silva, 2024. "Machine Learning for Continuous-Time Finance," CESifo Working Paper Series 10909, CESifo.
    3. Aryan Eftekhari & Simon Scheidegger, 2022. "High-Dimensional Dynamic Stochastic Model Representation," Papers 2202.06555, arXiv.org.
    4. 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.
    5. Julien Albertini & Stéphane Moyen, 2020. "A General and Efficient Method for Solving Regime-Switching DSGE Models," Working Papers 2035, Groupe d'Analyse et de Théorie Economique Lyon St-Étienne (GATE Lyon St-Étienne), Université de Lyon.
    6. Pascal, Julien, 2024. "Artificial neural networks to solve dynamic programming problems: A bias-corrected Monte Carlo operator," Journal of Economic Dynamics and Control, Elsevier, vol. 162(C).
    7. Fernández-Villaverde, J. & Rubio-Ramírez, J.F. & Schorfheide, F., 2016. "Solution and Estimation Methods for DSGE Models," Handbook of Macroeconomics, in: J. B. Taylor & Harald Uhlig (ed.), Handbook of Macroeconomics, edition 1, volume 2, chapter 0, pages 527-724, Elsevier.
    8. Xianhua Peng & Steven Kou & Lekang Zhang, 2024. "A Machine Learning Algorithm for Finite-Horizon Stochastic Control Problems in Economics," Papers 2411.08668, arXiv.org, revised Dec 2024.
    9. Cao, Dan & Evans, Martin & Lua, Wenlan, 2020. "Real Exchange Rate Dynamics Beyond Business Cycles," MPRA Paper 99054, University Library of Munich, Germany, revised 10 Mar 2020.
    10. Lilia Maliar & Serguei Maliar & John B. Taylor & Inna Tsener, 2020. "A tractable framework for analyzing a class of nonstationary Markov models," Quantitative Economics, Econometric Society, vol. 11(4), pages 1289-1323, November.
    11. Kenneth L. Judd & Lilia Maliar & Serguei Maliar & Inna Tsener, 2017. "How to solve dynamic stochastic models computing expectations just once," Quantitative Economics, Econometric Society, vol. 8(3), pages 851-893, November.
    12. Kenneth L. Judd & Lilia Maliar & Serguei Maliar, 2014. "Lower Bounds on Approximation Errors: Testing the Hypothesis That a Numerical Solution Is Accurate?," BYU Macroeconomics and Computational Laboratory Working Paper Series 2014-06, Brigham Young University, Department of Economics, BYU Macroeconomics and Computational Laboratory.
    13. Felix Kubler & Karl Schmedders, 2001. "Incomplete Markets, Transitory Shocks, and Welfare," Review of Economic Dynamics, Elsevier for the Society for Economic Dynamics, vol. 4(4), pages 747-766, October.
    14. Serguei Maliar & John Taylor & Lilia Maliar, 2016. "The Impact of Alternative Transitions to Normalized Monetary Policy," 2016 Meeting Papers 794, Society for Economic Dynamics.
    15. Jasmina Hasanhodzic & Laurence J. Kotlikoff, 2019. "Valuing Government Obligations When Markets Are Incomplete," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 51(7), pages 1815-1855, October.
    16. Sergio Ocampo & Baxter Robinson, 2024. "Computing Longitudinal Moments for Heterogeneous Agent Models," Computational Economics, Springer;Society for Computational Economics, vol. 64(3), pages 1891-1912, September.
    17. Philipp Renner & Simon Scheidegger, 2017. "Machine learning for dynamic incentive problems," Working Papers 203620397, Lancaster University Management School, Economics Department.
    18. Arellano, Cristina & Maliar, Lilia & Maliar, Serguei & Tsyrennikov, Viktor, 2016. "Envelope condition method with an application to default risk models," Journal of Economic Dynamics and Control, Elsevier, vol. 69(C), pages 436-459.
    19. Dennis, Richard, 2024. "Using a hyperbolic cross to solve non-linear macroeconomic models," Journal of Economic Dynamics and Control, Elsevier, vol. 163(C).
    20. Skavysh, Vladimir & Priazhkina, Sofia & Guala, Diego & Bromley, Thomas R., 2023. "Quantum monte carlo for economics: Stress testing and macroeconomic deep learning," Journal of Economic Dynamics and Control, Elsevier, vol. 153(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:2303.14802. 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.