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

EconGym: A Scalable AI Testbed with Diverse Economic Tasks

Author

Listed:
  • Qirui Mi
  • Qipeng Yang
  • Zijun Fan
  • Wentian Fan
  • Heyang Ma
  • Chengdong Ma
  • Siyu Xia
  • Bo An
  • Jun Wang
  • Haifeng Zhang

Abstract

Artificial intelligence (AI) has become a powerful tool for economic research, enabling large-scale simulation and policy optimization. However, applying AI effectively requires simulation platforms for scalable training and evaluation-yet existing environments remain limited to simplified, narrowly scoped tasks, falling short of capturing complex economic challenges such as demographic shifts, multi-government coordination, and large-scale agent interactions. To address this gap, we introduce EconGym, a scalable and modular testbed that connects diverse economic tasks with AI algorithms. Grounded in rigorous economic modeling, EconGym implements 11 heterogeneous role types (e.g., households, firms, banks, governments), their interaction mechanisms, and agent models with well-defined observations, actions, and rewards. Users can flexibly compose economic roles with diverse agent algorithms to simulate rich multi-agent trajectories across 25+ economic tasks for AI-driven policy learning and analysis. Experiments show that EconGym supports diverse and cross-domain tasks-such as coordinating fiscal, pension, and monetary policies-and enables benchmarking across AI, economic methods, and hybrids. Results indicate that richer task composition and algorithm diversity expand the policy space, while AI agents guided by classical economic methods perform best in complex settings. EconGym also scales to 10k agents with high realism and efficiency.

Suggested Citation

  • Qirui Mi & Qipeng Yang & Zijun Fan & Wentian Fan & Heyang Ma & Chengdong Ma & Siyu Xia & Bo An & Jun Wang & Haifeng Zhang, 2025. "EconGym: A Scalable AI Testbed with Diverse Economic Tasks," Papers 2506.12110, arXiv.org.
  • Handle: RePEc:arx:papers:2506.12110
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Deaton, Angus, 1991. "Saving and Liquidity Constraints," Econometrica, Econometric Society, vol. 59(5), pages 1221-1248, September.
    2. Sendhil Mullainathan & Jann Spiess, 2017. "Machine Learning: An Applied Econometric Approach," Journal of Economic Perspectives, American Economic Association, vol. 31(2), pages 87-106, Spring.
    3. Pierre-Olivier Gourinchas & Jonathan A. Parker, 2002. "Consumption Over the Life Cycle," Econometrica, Econometric Society, vol. 70(1), pages 47-89, January.
    4. Mingli Chen & Andreas Joseph & Michael Kumhof & Xinlei Pan & Xuan Zhou, 2021. "Deep Reinforcement Learning in a Monetary Model," Papers 2104.09368, arXiv.org, revised Jan 2023.
    5. MaCurdy, Thomas E, 1981. "An Empirical Model of Labor Supply in a Life-Cycle Setting," Journal of Political Economy, University of Chicago Press, vol. 89(6), pages 1059-1085, December.
    6. S. Rao Aiyagari, 1994. "Uninsured Idiosyncratic Risk and Aggregate Saving," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 109(3), pages 659-684.
    7. Emmanuel Saez, 2001. "Using Elasticities to Derive Optimal Income Tax Rates," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 68(1), pages 205-229.
    8. Olivier Jean Blanchard & Stanley Fischer, 1989. "Lectures on Macroeconomics," MIT Press Books, The MIT Press, edition 1, volume 1, number 0262022834, December.
    9. Fatih Ozhamaratli & Paolo Barucca, 2022. "Deep Reinforcement Learning for Optimal Investment and Saving Strategy Selection in Heterogeneous Profiles: Intelligent Agents working towards retirement," Papers 2206.05835, arXiv.org.
    10. Edward Hill & Marco Bardoscia & Arthur Turrell, 2021. "Solving Heterogeneous General Equilibrium Economic Models with Deep Reinforcement Learning," Papers 2103.16977, arXiv.org.
    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. Marios Karabarbounis, 2012. "Heterogeneity in Labor Supply Elasticity and Optimal Taxation," 2012 Meeting Papers 655, Society for Economic Dynamics.
    2. Charles Grant & Christos Koulovatianos & Alexander Michaelides & Mario Padula, 2010. "Evidence on the Insurance Effect of Redistributive Taxation," The Review of Economics and Statistics, MIT Press, vol. 92(4), pages 965-973, November.
    3. Christopher D. Carroll, 2000. "Requiem for the Representative Consumer? Aggregate Implications of Microeconomic Consumption Behavior," American Economic Review, American Economic Association, vol. 90(2), pages 110-115, May.
    4. Juan M. Contreras & Sven H. Sinclair, 2008. "The Labor Supply Response in Macroeconomic Models: Working Paper 2008-07," Working Papers 20141, Congressional Budget Office.
    5. Kindermann, Fabian & Mayr, Lukas & Sachs, Dominik, 2020. "Inheritance taxation and wealth effects on the labor supply of heirs," Journal of Public Economics, Elsevier, vol. 191(C).
    6. Tom Krebs & Pravin Krishna & William Maloney, 2010. "Trade Policy, Income Risk, and Welfare," The Review of Economics and Statistics, MIT Press, vol. 92(3), pages 467-481, August.
    7. Maarten Janssen & Sandro Shelegia, 2012. "Consumer Search and Vertical Relations: The Triple Marginalization Problem," Vienna Economics Papers 1206, University of Vienna, Department of Economics.
    8. Alisdair McKay, "undated". "Idiosyncratic risk, insurance, and aggregate consumption dynamics: a likelihood perspective," Boston University - Department of Economics - Working Papers Series 2013-013, Boston University - Department of Economics.
    9. Nobuhiro Kiyotaki & Alexander Michaelides & Kalin Nikolov, 2011. "Winners and Losers in Housing Markets," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 43, pages 255-296, March.
    10. Robin Jessen & Davud Rostam-Afschar & Sebastian Schmitz, 2018. "How important is precautionary labour supply?," Oxford Economic Papers, Oxford University Press, vol. 70(3), pages 868-891.
    11. Feigenbaum, James, 2005. "Second-, third-, and higher-order consumption functions: a precautionary tale," Journal of Economic Dynamics and Control, Elsevier, vol. 29(8), pages 1385-1425, August.
    12. Selahattin Imrohoroglu & Sagiri Kitao, 2010. "Social Security, Benefit Claiming and Labor Force Participation: A Quantitative General Equilibrium Approach," Working Papers, Center for Retirement Research at Boston College wp2010-02, Center for Retirement Research, revised Mar 2010.
    13. Joseph G. Altonji & Anthony A. Smith Jr. & Ivan Vidangos, 2013. "Modeling Earnings Dynamics," Econometrica, Econometric Society, vol. 81(4), pages 1395-1454, July.
    14. Francisco Gomes & Michael Haliassos & Tarun Ramadorai, 2021. "Household Finance," Journal of Economic Literature, American Economic Association, vol. 59(3), pages 919-1000, September.
    15. Orazio P. Attanasio & Guglielmo Weber, 2010. "Consumption and Saving: Models of Intertemporal Allocation and Their Implications for Public Policy," Journal of Economic Literature, American Economic Association, vol. 48(3), pages 693-751, September.
    16. Chipeniuk, Karsten O. & Katz, Nets Hawk & Walker, Todd B., 2022. "Households, auctioneers, and aggregation," European Economic Review, Elsevier, vol. 141(C).
    17. De Veirman Emmanuel & Dunstan Ashley, 2011. "Time-Varying Returns, Intertemporal Substitution and Cyclical Variation in Consumption," The B.E. Journal of Macroeconomics, De Gruyter, vol. 11(1), pages 1-41, July.
    18. Reichling, Felix, 2006. "Optimal Unemployment Insurance in Labor Market Equilibrium when Workers can Self-Insure," MPRA Paper 5362, University Library of Munich, Germany, revised 16 Oct 2007.
    19. Francis, Johanna L., 2009. "Wealth and the capitalist spirit," Journal of Macroeconomics, Elsevier, vol. 31(3), pages 394-408, September.
    20. Axelle Ferriere & Gaston Navarro, 2025. "The Heterogeneous Effects of Government Spending: It’s All About Taxes," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 92(2), pages 1061-1125.

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