Simulating the Economic Impact of Rationality through Reinforcement Learning and Agent-Based Modelling (2405.02161v2)
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.
- Multi-agent reinforcement learning: Foundations and modern approaches. Massachusetts Institute of Technology: Cambridge, MA, USA, 2023.
- Phantom-a rl-driven multi-agent framework to model complex systems. In Proceedings of the 2023 International Conference on Autonomous Agents and Multiagent Systems, pages 2742–2744, 2023.
- Emergent dynamics of a macroeconomic agent based model with capital and credit. Journal of Economic Dynamics and Control, 50:5–28, 2015.
- T. Atashbar and R. A. Shi. Deep reinforcement learning: emerging trends in macroeconomics and future prospects. 2022.
- T. Atashbar and R. A. Shi. AI and macroeconomic modeling: Deep reinforcement learning in an RBC model. International Monetary Fund, 2023.
- Agent-based modeling in economics and finance: Past, present, and future. Journal of Economic Literature, 2022.
- Curriculum learning. In Proceedings of the 26th annual international conference on machine learning, pages 41–48, 2009.
- Introduction to computer science and economic theory. Journal of Economic Theory, 156:1–13, 2015.
- Artificial intelligence, algorithmic pricing, and collusion. American Economic Review, 110(10):3267–3297, 2020.
- Reinforcement learning in economics and finance. Computational Economics, pages 1–38, 2021.
- Learning solutions in large economic networks using deep multi-agent reinforcement learning. In AAMAS, pages 2760–2762, 2023.
- H. Dawid and D. D. Gatti. Agent-based macroeconomics. Handbook of computational economics, 4:63–156, 2018.
- Abides-economist: Agent-based simulation of economic systems with learning agents. arXiv preprint arXiv:2402.09563, 2024.
- J. D. Farmer and D. Foley. The economy needs agent-based modelling. Nature, 460(7256):685–686, 2009.
- D. D. Gatti and J. Grazzini. Rising to the challenge: Bayesian estimation and forecasting techniques for macroeconomic agent based models. Journal of Economic Behavior & Organization, 178:875–902, 2020.
- Reinforcement learning for combining search methods in the calibration of economic abms. In Proceedings of the Fourth ACM International Conference on AI in Finance, pages 305–313, 2023.
- S. Gronauer and K. Diepold. Multi-agent deep reinforcement learning: a survey. Artificial Intelligence Review, 55(2):895–943, 2022.
- Solving heterogeneous general equilibrium economic models with deep reinforcement learning. arXiv preprint arXiv:2103.16977, 2021.
- N. Hinterlang and A. Tänzer. Optimal monetary policy using reinforcement learning. 2021.
- Emergent bartering behaviour in multi-agent reinforcement learning. arXiv preprint arXiv:2205.06760, 2022.
- A. Kuriksha. An economy of neural networks: Learning from heterogeneous experiences. arXiv preprint arXiv:2110.11582, 2021.
- E. Lindau. Optimal taxation by two-agent reinforcement learning, 2023.
- E. Maskin and J. Tirole. Markov perfect equilibrium: I. observable actions. Journal of Economic Theory, 100(2):191–219, 2001.
- Taxai: A dynamic economic simulator and benchmark for multi-agent reinforcement learning. arXiv preprint arXiv:2309.16307, 2023.
- J. Rothe et al. Economics and computation, volume 4. Springer, 2015.
- L. S. Shapley. Stochastic games. Proceedings of the National Academy of Sciences, 39(10):1095–1100, 1953.
- Reinforcement learning: An introduction. MIT press, 2018.
- L. Tesfatsion. Agent-based computational economics: A constructive approach to economic theory. Handbook of computational economics, 2:831–880, 2006.
- L. Tesfatsion. Agent-based computational economics: Overview and brief history. Artificial Intelligence, Learning and Computation in Economics and Finance, pages 41–58, 2023.
- Towards multi-agent reinforcement learning-driven over-the-counter market simulations. Mathematical Finance, 34(2):262–347, 2024.
- J. van der Wal. Stochastic dynamic programming. 1981.
- C. Watkins and P. Dayan. Q-learning. Machine Learning, 8:279–292, 1992.
- M. Wooldridge. An introduction to multiagent systems. John wiley & sons, 2009.
- The ai economist: Taxation policy design via two-level deep multiagent reinforcement learning. Science advances, 8(18):eabk2607, 2022.
- Simone Brusatin (1 paper)
- Tommaso Padoan (7 papers)
- Andrea Coletta (15 papers)
- Domenico Delli Gatti (3 papers)
- Aldo Glielmo (25 papers)