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

Scalable Global Solution Techniques for High-Dimensional Models in Dynare

Author

Listed:
  • Aryan Eftekhari
  • Michel Juillard
  • Normann Rion
  • Simon Scheidegger

Abstract

For over three decades, Dynare has been a cornerstone of dynamic stochastic modeling in economics, relying primarily on perturbation-based local solution methods. However, these techniques often falter in high-dimensional, non-linear models that demand more comprehensive approaches. This paper demonstrates that global solutions of economic models with substantial heterogeneity and frictions can be computed accurately and swiftly by augmenting Dynare with adaptive sparse grids (SGs) and high-dimensional model representation (HDMR). SGs mitigate the curse of dimensionality, as the number of grid points grows significantly slower than in traditional tensor-product Cartesian grids. Additionally, adaptivity focuses grid refinement on regions with steep gradients or non-differentiabilities, enhancing computational efficiency. Complementing SGs, HDMR tackles large state spaces by approximating policy functions with a hierarchical expansion of low-dimensional terms. Using a time iteration algorithm, we benchmark our approach on an international real business cycle model. Our results show that both SGs and HDMR alleviate the curse of dimensionality, enabling accurate solutions for at least 100-dimensional models on standard hardware in relatively short times. This advancement extends Dynare's capabilities beyond perturbation approaches, establishing a versatile platform for sophisticated non-linear models and paving the way for integrating the most recent global solution methods, such as those from machine learning.

Suggested Citation

  • Aryan Eftekhari & Michel Juillard & Normann Rion & Simon Scheidegger, 2025. "Scalable Global Solution Techniques for High-Dimensional Models in Dynare," Papers 2503.11464, arXiv.org.
  • Handle: RePEc:arx:papers:2503.11464
    as

    Download full text from publisher

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

    Other versions of this item:

    References listed on IDEAS

    as
    1. Galo Nuño & Philipp Renner & Simon Scheidegger, 2024. "Monetary Policy with Persistent Supply Shocks," CESifo Working Paper Series 11463, CESifo.
    2. Yongyang Cai & Thomas S. Lontzek, 2019. "The Social Cost of Carbon with Economic and Climate Risks," Journal of Political Economy, University of Chicago Press, vol. 127(6), pages 2684-2734.
    3. Duffy, John & McNelis, Paul D., 2001. "Approximating and simulating the stochastic growth model: Parameterized expectations, neural networks, and the genetic algorithm," Journal of Economic Dynamics and Control, Elsevier, vol. 25(9), pages 1273-1303, September.
    4. Marlon Azinovic & Jan v{Z}emliv{c}ka, 2023. "Economics-Inspired Neural Networks with Stabilizing Homotopies," Papers 2303.14802, arXiv.org.
    5. Fernández-Villaverde, Jesús & Gordon, Grey & Guerrón-Quintana, Pablo & Rubio-Ramírez, Juan F., 2015. "Nonlinear adventures at the zero lower bound," Journal of Economic Dynamics and Control, Elsevier, vol. 57(C), pages 182-204.
    6. Kollmann, Robert & Maliar, Serguei & Malin, Benjamin A. & Pichler, Paul, 2011. "Comparison of solutions to the multi-country Real Business Cycle model," Journal of Economic Dynamics and Control, Elsevier, vol. 35(2), pages 186-202, February.
    7. Adjemian, Stéphane & Juillard, Michel & Karamé, Fréderic & Mutschler, Willi & Pfeifer, Johannes & Ratto, Marco & Rion, Normann & Villemot, Sébastien, 2024. "Dynare: Reference Manual, Version 6," Dynare Working Papers 80, CEPREMAP, revised Nov 2025.
    8. Andriy Norets, 2012. "Estimation of Dynamic Discrete Choice Models Using Artificial Neural Network Approximations," Econometric Reviews, Taylor & Francis Journals, vol. 31(1), pages 84-106.
    9. Felix Kubler & Simon Scheidegger & Oliver Surbek, 2025. "Using Machine Learning to Compute Constrained Optimal Carbon Tax Rules," Swiss Finance Institute Research Paper Series 25-82, Swiss Finance Institute.
    10. Juillard, Michel & Villemot, Sébastien, 2011. "Multi-country real business cycle models: Accuracy tests and test bench," Journal of Economic Dynamics and Control, Elsevier, vol. 35(2), pages 178-185, February.
    11. Heiss, Florian & Winschel, Viktor, 2008. "Likelihood approximation by numerical integration on sparse grids," Journal of Econometrics, Elsevier, vol. 144(1), pages 62-80, May.
    12. Schmitt-Grohe, Stephanie & Uribe, Martin, 2004. "Solving dynamic general equilibrium models using a second-order approximation to the policy function," Journal of Economic Dynamics and Control, Elsevier, vol. 28(4), pages 755-775, January.
    13. Dirk Krueger & Felix Kubler, 2006. "Pareto-Improving Social Security Reform when Financial Markets are Incomplete!?," American Economic Review, American Economic Association, vol. 96(3), pages 737-755, June.
    14. 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.
    15. Victor Duarte & Diogo Duarte & Dejanir H. Silva, 2024. "Machine Learning for Continuous-Time Finance," CESifo Working Paper Series 10909, CESifo.
    16. Viktor Winschel & Markus Kr‰tzig, 2010. "Solving, Estimating, and Selecting Nonlinear Dynamic Models Without the Curse of Dimensionality," Econometrica, Econometric Society, vol. 78(2), pages 803-821, March.
    17. den Haan, Wouter J & Marcet, Albert, 1990. "Solving the Stochastic Growth Model by Parameterizing Expectations," Journal of Business & Economic Statistics, American Statistical Association, vol. 8(1), pages 31-34, January.
    18. Lars Ljungqvist & Thomas J. Sargent, 2004. "Recursive Macroeconomic Theory, 2nd Edition," MIT Press Books, The MIT Press, edition 2, volume 1, number 026212274x, December.
    19. Laurence Kotlikoff & Felix Kubler & Andrey Polbin & Simon Scheidegger, 2021. "Pareto-improving carbon-risk taxation [The environment and directed technical change]," Economic Policy, CEPR, CESifo, Sciences Po;CES;MSH, vol. 36(107), pages 551-589.
    20. 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.
    21. 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.
    22. Felix Kubler & Simon Scheidegger & Oliver Surbek, 2025. "Using Machine Learning to Compute Constrained Optimal Carbon Tax Rules," Papers 2507.01704, arXiv.org.
    23. Jesús Fernández‐Villaverde & Samuel Hurtado & Galo Nuño, 2025. "Corrigendum: Financial Frictions and the Wealth Distribution," Econometrica, Econometric Society, vol. 93(4), pages 1491-1496, July.
    24. 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.
    25. Collard, Fabrice & Juillard, Michel, 2001. "Accuracy of stochastic perturbation methods: The case of asset pricing models," Journal of Economic Dynamics and Control, Elsevier, vol. 25(6-7), pages 979-999, June.
    26. Coleman, Wilbur John, II, 1990. "Solving the Stochastic Growth Model by Policy-Function Iteration," Journal of Business & Economic Statistics, American Statistical Association, vol. 8(1), pages 27-29, January.
    27. 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.
    28. Luca Gaegauf & Simon Scheidegger & Fabio Trojani, 2023. "A Comprehensive Machine Learning Framework for Dynamic Portfolio Choice With Transaction Costs," Swiss Finance Institute Research Paper Series 23-114, Swiss Finance Institute.
    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. 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. Marlon Azinovic-Yang & Jan v{Z}emliv{c}ka, 2025. "Deep Learning in the Sequence Space," Papers 2509.13623, arXiv.org.
    3. Aryan Eftekhari & Simon Scheidegger, 2022. "High-Dimensional Dynamic Stochastic Model Representation," Papers 2202.06555, arXiv.org.
    4. 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.
    5. 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.
    6. Kase, Hanno & Melosi, Leonardo & Rottner, Matthias, 2022. "Estimating Nonlinear Heterogeneous Agents Models with Neural Networks," CEPR Discussion Papers 17391, C.E.P.R. Discussion Papers.
    7. Lepetyuk, Vadym & Maliar, Lilia & Maliar, Serguei, 2020. "When the U.S. catches a cold, Canada sneezes: A lower-bound tale told by deep learning," Journal of Economic Dynamics and Control, Elsevier, vol. 117(C).
    8. 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.
    9. 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).
    10. 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.
    11. Serguei Maliar & John Taylor & Lilia Maliar, 2016. "The Impact of Alternative Transitions to Normalized Monetary Policy," 2016 Meeting Papers 794, Society for Economic Dynamics.
    12. 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.
    13. Victor Duarte & Diogo Duarte & Dejanir H. Silva, 2024. "Machine Learning for Continuous-Time Finance," CESifo Working Paper Series 10909, CESifo.
    14. Jesús Fernández-Villaverde & Galo Nuño & Jesse Perla, 2024. "Taming the Curse of Dimensionality: Quantitative Economics with Deep Learning," NBER Working Papers 33117, National Bureau of Economic Research, Inc.
    15. Emmet Hall-Hoffarth, 2023. "Non-linear approximations of DSGE models with neural-networks and hard-constraints," Papers 2310.13436, arXiv.org.
    16. 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.
    17. Benjamin Moll, 2025. "The Trouble with Rational Expectations in Heterogeneous Agent Models: A Challenge for Macroeconomics," Papers 2508.20571, arXiv.org.
    18. 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).
    19. 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.
    20. Matteo Iacoviello & Ricardo Nunes & Andrea Prestipino, 2025. "Optimal Credit Market Policy," School of Economics Discussion Papers 0225, School of Economics, University of Surrey.

    More about this item

    JEL classification:

    • C63 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling - - - Computational Techniques
    • E30 - Macroeconomics and Monetary Economics - - Prices, Business Fluctuations, and Cycles - - - General (includes Measurement and Data)
    • F44 - International Economics - - Macroeconomic Aspects of International Trade and Finance - - - International Business Cycles

    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:2503.11464. 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.