IDEAS home Printed from https://ideas.repec.org/p/cpm/dynare/086.html

Scalable Global Solution Techniques for High-Dimensional Models in Dynare

Author

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

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 nonlinear models and paving the way for integrating the most recent global solution methods, such as those from machine learning.

Suggested Citation

  • Eftekhari, Aryan & Juillard, Michel & Rion, Normann & Scheidegger, Simon, 2025. "Scalable Global Solution Techniques for High-Dimensional Models in Dynare," Dynare Working Papers 86, CEPREMAP.
  • Handle: RePEc:cpm:dynare:086
    as

    Download full text from publisher

    File URL: https://www.dynare.org/wp-repo/dynarewp086.pdf
    File Function: Main text
    Download Restriction: no

    File URL: https://github.com/NormannR/HDMRinDynare/
    File Function: Source code of programs used in the paper
    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. Marlon Azinovic & Jan v{Z}emliv{c}ka, 2023. "Economics-Inspired Neural Networks with Stabilizing Homotopies," Papers 2303.14802, arXiv.org.
    4. 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.
    5. Hui Chen & Giovanni Gambarotta & Simon Scheidegger & Yu Xu, 2025. "A Dynamic Model of Private Asset Allocation," Papers 2503.01099, arXiv.org.
    6. Kenneth L. Judd & Sy-Ming Guu, 1993. "Perturbation Solution Methods for Economic Growth Models," Springer Books, in: Hal R. Varian (ed.), Economic and Financial Modeling with Mathematica®, chapter 4, pages 80-103, Springer.
    7. Johannes Brumm & Michael Grill & Felix Kubler & Karl Schmedders, 2015. "Collateral Requirements And Asset Prices," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 56(1), pages 1-25, February.
    8. Peter Schober & Julian Valentin & Dirk Pflüger, 2022. "Solving High-Dimensional Dynamic Portfolio Choice Models with Hierarchical B-Splines on Sparse Grids," Computational Economics, Springer;Society for Computational Economics, vol. 59(1), pages 185-224, January.
    9. Aryan Eftekhari & Simon Scheidegger, 2022. "High-Dimensional Dynamic Stochastic Model Representation," Papers 2202.06555, arXiv.org.
    10. Felix Kubler & Simon Scheidegger & Oliver Surbek, 2025. "Using Machine Learning to Compute Constrained Optimal Carbon Tax Rules," Papers 2507.01704, arXiv.org.
    11. Nuño, Galo & Renner, Philipp & Scheidegger, Simon, 2024. "Monetary Policy with Persistent Supply Shocks," CEPR Discussion Papers 19678, Centre for Economic Policy Research.
    12. 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.
    13. Victor Duarte & Diogo Duarte & Dejanir H Silva, 2024. "Machine Learning for Continuous-Time Finance," The Review of Financial Studies, Society for Financial Studies, vol. 37(11), pages 3217-3271.
    14. 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.
    15. 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.
    16. 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.
    17. 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.
    18. 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.
    19. 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.
    20. Kenneth L. Judd, 1998. "Numerical Methods in Economics," MIT Press Books, The MIT Press, edition 1, volume 1, number 0262100711, December.
    21. 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.
    22. Heiss, Florian & Winschel, Viktor, 2008. "Likelihood approximation by numerical integration on sparse grids," Journal of Econometrics, Elsevier, vol. 144(1), pages 62-80, May.
    23. 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.
    24. Chase Coleman & Spencer Lyon & Lilia Maliar & Serguei Maliar, 2021. "Matlab, Python, Julia: What to Choose in Economics?," Computational Economics, Springer;Society for Computational Economics, vol. 58(4), pages 1263-1288, December.
    25. 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.
    26. Johannes Brumm & Michael Grill & Felix Kubler & Karl Schmedders, 2015. "Collateral Requirements And Asset Prices," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 56, pages 1-25, February.
    27. 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.
    28. Victor Duarte & Diogo Duarte & Dejanir H. Silva, 2024. "Machine Learning for Continuous-Time Finance," CESifo Working Paper Series 10909, CESifo.
    29. 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.
    30. 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.
    31. Lilia Maliar & Serguei Maliar, 2015. "Merging simulation and projection approaches to solve high‐dimensional problems with an application to a new Keynesian model," Quantitative Economics, Econometric Society, vol. 6(1), pages 1-47, March.
    32. 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.
    33. 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.
    34. Lars Ljungqvist & Thomas J. Sargent, 2004. "Recursive Macroeconomic Theory, 2nd Edition," MIT Press Books, The MIT Press, edition 2, volume 1, number 026212274x, December.
    35. 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.
    36. Johannes Brumm & Simon Scheidegger, 2017. "Using Adaptive Sparse Grids to Solve High‐Dimensional Dynamic Models," Econometrica, Econometric Society, vol. 85, pages 1575-1612, September.
    37. 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.
    38. 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.
    39. Den Haan, Wouter J. & Judd, Kenneth L. & Juillard, Michel, 2011. "Computational suite of models with heterogeneous agents II: Multi-country real business cycle models," Journal of Economic Dynamics and Control, Elsevier, vol. 35(2), pages 175-177, February.
    40. 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.
    41. Aruoba, S. Boragan & Fernandez-Villaverde, Jesus & Rubio-Ramirez, Juan F., 2006. "Comparing solution methods for dynamic equilibrium economies," Journal of Economic Dynamics and Control, Elsevier, vol. 30(12), pages 2477-2508, December.
    42. 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.
    43. 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.
    44. 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.
    45. 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.
    46. 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.
    47. Rust, John, 1996. "Numerical dynamic programming in economics," Handbook of Computational Economics, in: H. M. Amman & D. A. Kendrick & J. Rust (ed.), Handbook of Computational Economics, edition 1, volume 1, chapter 14, pages 619-729, Elsevier.
    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. Hanno Kase & Matthias Rottner & Fabio Stohler, 2025. "Generative economic modeling," BIS Working Papers 1312, Bank for International Settlements.

    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. Hanno Kase & Matthias Rottner & Fabio Stohler, 2025. "Generative economic modeling," BIS Working Papers 1312, Bank for International Settlements.
    3. Serguei Maliar & John Taylor & Lilia Maliar, 2016. "The Impact of Alternative Transitions to Normalized Monetary Policy," 2016 Meeting Papers 794, Society for Economic Dynamics.
    4. Aryan Eftekhari & Simon Scheidegger, 2022. "High-Dimensional Dynamic Stochastic Model Representation," Papers 2202.06555, arXiv.org.
    5. 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.
    6. Marlon Azinovic-Yang & Jan v{Z}emliv{c}ka, 2025. "Deep Learning in the Sequence Space," Papers 2509.13623, arXiv.org, revised Mar 2026.
    7. 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.
    8. 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.
    9. 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.
    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. 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.
    12. Ferrari Minesso, Massimo & Frenzel, Carla, 2026. "Sequential solution for DSGE models with deep neural networks," Working Paper Series 3236, European Central Bank.
    13. 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.
    14. Kenneth L. Judd & Lilia Maliar & Serguei Maliar, 2010. "A Cluster-Grid Projection Method: Solving Problems with High Dimensionality," NBER Working Papers 15965, National Bureau of Economic Research, Inc.
    15. Kase, Hanno & Melosi, Leonardo & Rottner, Matthias, 2022. "Estimating Nonlinear Heterogeneous Agents Models with Neural Networks," CEPR Discussion Papers 17391, Centre for Economic Policy Research.
    16. 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).
    17. Yongyang Cai & Kenneth Judd & Jevgenijs Steinbuks, 2017. "A nonlinear certainty equivalent approximation method for dynamic stochastic problems," Quantitative Economics, Econometric Society, vol. 8(1), pages 117-147, March.
    18. Winant, Pablo, 2026. "Back in time. fast. Accelerated time iterations," Journal of Economic Dynamics and Control, Elsevier, vol. 182(C).
    19. 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.
    20. Aldrich Eric Mark & Kung Howard, 2021. "Computational Methods for Production-Based Asset Pricing Models with Recursive Utility," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 25(1), pages 1-26, February.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    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

    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:cpm:dynare:086. 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: Sébastien Villemot (email available below). General contact details of provider: https://edirc.repec.org/data/ceprefr.html .

    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.