IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2405.02161.html

Simulating the Economic Impact of Rationality through Reinforcement Learning and Agent-Based Modelling

Author

Listed:
  • Simone Brusatin
  • Tommaso Padoan
  • Andrea Coletta
  • Domenico Delli Gatti
  • Aldo Glielmo

Abstract

Agent-based models (ABMs) are simulation models used in economics to overcome some of the limitations of traditional frameworks based on general equilibrium assumptions. However, agents within an ABM follow predetermined 'bounded rational' behavioural rules which can be cumbersome to design and difficult to justify. Here we leverage multi-agent reinforcement learning (RL) to expand the capabilities of ABMs with the introduction of 'fully rational' agents that learn their policy by interacting with the environment and maximising a reward function. Specifically, we propose a 'Rational macro ABM' (R-MABM) framework by extending a paradigmatic macro ABM from the economic literature. We show that gradually substituting ABM firms in the model with RL agents, trained to maximise profits, allows for studying the impact of rationality on the economy. We find that RL agents spontaneously learn three distinct strategies for maximising profits, with the optimal strategy depending on the level of market competition and rationality. We also find that RL agents with independent policies, and without the ability to communicate with each other, spontaneously learn to segregate into different strategic groups, thus increasing market power and overall profits. Finally, we find that a higher number of rational (RL) agents in the economy always improves the macroeconomic environment as measured by total output. Depending on the specific rational policy, this can come at the cost of higher instability. Our R-MABM framework allows for stable multi-agent learning, is available in open source, and represents a principled and robust direction to extend economic simulators.

Suggested Citation

  • Simone Brusatin & Tommaso Padoan & Andrea Coletta & Domenico Delli Gatti & Aldo Glielmo, 2024. "Simulating the Economic Impact of Rationality through Reinforcement Learning and Agent-Based Modelling," Papers 2405.02161, arXiv.org, revised Oct 2024.
  • Handle: RePEc:arx:papers:2405.02161
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Emilio Calvano & Giacomo Calzolari & Vincenzo Denicolò & Sergio Pastorello, 2020. "Artificial Intelligence, Algorithmic Pricing, and Collusion," American Economic Review, American Economic Association, vol. 110(10), pages 3267-3297, October.
    2. Blume, Lawrence & Easley, David & Kleinberg, Jon & Kleinberg, Robert & Tardos, Éva, 2015. "Introduction to computer science and economic theory," Journal of Economic Theory, Elsevier, vol. 156(C), pages 1-13.
    3. J. Doyne Farmer & Duncan Foley, 2009. "The economy needs agent-based modelling," Nature, Nature, vol. 460(7256), pages 685-686, August.
    4. Farmer, J. Doyne & Axtell, Robert L., 2022. "Agent-Based Modeling in Economics and Finance: Past, Present, and Future," INET Oxford Working Papers 2022-10, Institute for New Economic Thinking at the Oxford Martin School, University of Oxford.
    5. Tohid Atashbar & Rui Aruhan Shi, 2022. "Deep Reinforcement Learning: Emerging Trends in Macroeconomics and Future Prospects," IMF Working Papers 2022/259, International Monetary Fund.
    6. Tohid Atashbar & Rui Aruhan Shi, 2023. "AI and Macroeconomic Modeling: Deep Reinforcement Learning in an RBC model," IMF Working Papers 2023/040, International Monetary Fund.
    7. Tesfatsion, Leigh, 2006. "Agent-Based Computational Economics: A Constructive Approach to Economic Theory," Handbook of Computational Economics, in: Leigh Tesfatsion & Kenneth L. Judd (ed.), Handbook of Computational Economics, edition 1, volume 2, chapter 16, pages 831-880, Elsevier.
    8. Assenza, Tiziana & Delli Gatti, Domenico & Grazzini, Jakob, 2015. "Emergent dynamics of a macroeconomic agent based model with capital and credit," Journal of Economic Dynamics and Control, Elsevier, vol. 50(C), pages 5-28.
    9. Artem Kuriksha, 2021. "An Economy of Neural Networks:Learning from Heterogeneous Experiences," PIER Working Paper Archive 21-027, Penn Institute for Economic Research, Department of Economics, University of Pennsylvania.
    10. Leigh Tesfatsion & Kenneth L. Judd (ed.), 2006. "Handbook of Computational Economics," Handbook of Computational Economics, Elsevier, edition 1, volume 2, number 2.
    11. Edward Hill & Marco Bardoscia & Arthur Turrell, 2021. "Solving Heterogeneous General Equilibrium Economic Models with Deep Reinforcement Learning," Papers 2103.16977, arXiv.org.
    12. Delli Gatti, Domenico & Grazzini, Jakob, 2020. "Rising to the challenge: Bayesian estimation and forecasting techniques for macroeconomic Agent Based Models," Journal of Economic Behavior & Organization, Elsevier, vol. 178(C), pages 875-902.
    13. Maskin, Eric & Tirole, Jean, 2001. "Markov Perfect Equilibrium: I. Observable Actions," Journal of Economic Theory, Elsevier, vol. 100(2), pages 191-219, October.
    14. Artem Kuriksha, 2021. "An Economy of Neural Networks: Learning from Heterogeneous Experiences," Papers 2110.11582, arXiv.org.
    15. Hinterlang, Natascha & Tänzer, Alina, 2021. "Optimal monetary policy using reinforcement learning," Discussion Papers 51/2021, Deutsche Bundesbank.
    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. Kshama Dwarakanath & Svitlana Vyetrenko & Tucker Balch, 2024. "Empirical Equilibria in Agent-based Economic systems with Learning agents," Papers 2408.12038, arXiv.org.

    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. Domenico Delli Gatti & Andrea Coletta & Aldo Glielmo & Filippo Gusella & Enrico Maria Turco, 2026. "Emergent Strategic Behaviour in a Macroeconomic Agent-Based Model with Reinforcement Learning," CESifo Working Paper Series 12862, CESifo.
    2. Kshama Dwarakanath & Svitlana Vyetrenko & Tucker Balch, 2024. "Empirical Equilibria in Agent-based Economic systems with Learning agents," Papers 2408.12038, arXiv.org.
    3. Kshama Dwarakanath & Jialin Dong & Svitlana Vyetrenko, 2024. "Tax Credits and Household Behavior: The Roles of Myopic Decision-Making and Liquidity in a Simulated Economy," Papers 2408.10391, arXiv.org, revised Oct 2024.
    4. Federico Gabriele & Aldo Glielmo & Marco Taboga, 2025. "Heterogeneous RBCs via Deep Multi-Agent Reinforcement Learning," Papers 2510.12272, arXiv.org, revised Feb 2026.
    5. Marco Catola & Silvia Leoni, 2025. "Pollution Abatement and Lobbying in a Cournot Game: An Agent-Based Modelling Approach," Computational Economics, Springer;Society for Computational Economics, vol. 65(2), pages 637-664, February.
    6. Ciola, Emanuele & Turco, Enrico & Gurgone, Andrea & Bazzana, Davide & Vergalli, Sergio & Menoncin, Francesco, 2023. "Enter the MATRIX model:a Multi-Agent model for Transition Risks with application to energy shocks," Journal of Economic Dynamics and Control, Elsevier, vol. 146(C).
    7. Delli Gatti,Domenico & Fagiolo,Giorgio & Gallegati,Mauro & Richiardi,Matteo & Russo,Alberto (ed.), 2018. "Agent-Based Models in Economics," Cambridge Books, Cambridge University Press, number 9781108400046.
    8. Kshama Dwarakanath & Tucker Balch & Svitlana Vyetrenko, 2024. "ABIDES-Economist: Agent-Based Simulator of Economic Systems with Learning Agents," Papers 2402.09563, arXiv.org, revised Aug 2025.
    9. Zhang, Jinyu & Zhang, Qiaosen & Li, Yong & Wang, Qianchao, 2023. "Sequential Bayesian inference for agent-based models with application to the Chinese business cycle," Economic Modelling, Elsevier, vol. 126(C).
    10. Giorgio Fagiolo & Mattia Guerini & Francesco Lamperti & Alessio Moneta & Andrea Roventini, 2017. "Validation of Agent-Based Models in Economics and Finance," LEM Papers Series 2017/23, Laboratory of Economics and Management (LEM), Sant'Anna School of Advanced Studies, Pisa, Italy.
    11. Szymon Chudziak, 2025. "Studying economic complexity with agent-based models: advances, challenges and future perspectives," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 20(2), pages 413-449, April.
    12. Kirill S. Glavatskiy & Mikhail Prokopenko & Adrian Carro & Paul Ormerod & Michael Harré, 2021. "Explaining herding and volatility in the cyclical price dynamics of urban housing markets using a large-scale agent-based model," SN Business & Economics, Springer, vol. 1(6), pages 1-21, June.
    13. Ciola, Emanuele & Turco, Enrico & Gurgone, Andrea & Bazzana, Davide & Vergalli, Sergio & Menoncin, Francesco, "undated". "Charging the macroeconomy with an energy sector: an agent-based model," FEEM Working Papers 319877, Fondazione Eni Enrico Mattei (FEEM).
    14. Zhang, Hui & Cao, Libin & Zhang, Bing, 2017. "Emissions trading and technology adoption: An adaptive agent-based analysis of thermal power plants in China," Resources, Conservation & Recycling, Elsevier, vol. 121(C), pages 23-32.
    15. Ashraf, Quamrul & Gershman, Boris & Howitt, Peter, 2017. "Banks, market organization, and macroeconomic performance: An agent-based computational analysis," Journal of Economic Behavior & Organization, Elsevier, vol. 135(C), pages 143-180.
    16. Fenintsoa Andriamasinoro & Raphael Danino-Perraud, 2021. "Use of artificial intelligence to assess mineral substance criticality in the French market: the example of cobalt," Mineral Economics, Springer;Raw Materials Group (RMG);Luleå University of Technology, vol. 34(1), pages 19-37, April.
    17. Emanuele Ciola & Edoardo Gaffeo & Mauro Gallegati, 2021. "Search for Profits and Business Fluctuations: How Banks' Behaviour Explain Cycles?," Working Papers 450, Universita' Politecnica delle Marche (I), Dipartimento di Scienze Economiche e Sociali.
    18. de Koning, Koen & Filatova, Tatiana & Bin, Okmyung, 2017. "Bridging the Gap Between Revealed and Stated Preferences in Flood-prone Housing Markets," Ecological Economics, Elsevier, vol. 136(C), pages 1-13.
    19. Torsten Trimborn & Philipp Otte & Simon Cramer & Maximilian Beikirch & Emma Pabich & Martin Frank, 2020. "SABCEMM: A Simulator for Agent-Based Computational Economic Market Models," Computational Economics, Springer;Society for Computational Economics, vol. 55(2), pages 707-744, February.
    20. Tamás Sebestyén & Dóra Longauer, 2018. "Network structure, equilibrium and dynamics in a monopolistically competitive economy," Netnomics, Springer, vol. 19(3), pages 131-157, December.

    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:2405.02161. 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: https://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.