A Comparative Study of an LLM-Based Agent in Synthetic Markets with Memory

Authors

  • Eder Johnson de Area Leão Pereira Federal Institute of Education, Science and Technology of Maranhão (IFMA), Brazil
  • Alan Moura Freitas Federal Institute of Education, Science and Technology of Maranhão (IFMA), Brazil

DOI:

https://doi.org/10.33119/ERFIN.2025.10.2.3

Keywords:

LLM Agents, Financial Modeling, Synthetic Markets, Bounded Rationality, Hurst Exponent, Simulation

Abstract

This paper presents a comparative analysis of four trading strategies---termed chartist, fundamentalist, noise, and a Large Language Model (LLM)-based agent---within a synthetic market environment characterized by different memory regimes, modeled by the Hurst exponent (H). Price series were generated exogenously using Fractional Gaussian Noise. The LLM agent received textual descriptions of price trends and responded with trading actions. Results indicate that the LLM agent achieved superior performance compared to other heuristic strategies across all regimes, particularly in persistent markets (H = 0.7). This study is not intended as an agent-based model (ABM) with endogenous interactions, but rather as a comparative backtest of strategies on exogenous price series. The objective is to explore the potential of LLMs as tools for modeling financial decision-making, serving as a baseline for future research on bounded rationality and adaptive behavior.

References

Arthur, W. B. (1994). Inductive reasoning and bounded rationality. The American Economic Review, 84(2):406–411.

Arthur, W. B. (2006). Out-of-equilibrium economics and agent-based modeling. In Handbook of computational economics, volume 2, pages 1551–1564. Elsevier.

Athey, S. (2019). The impact of machine learning on economics. In The economics of artificial intelligence: An agenda, pages 507–547. University of Chicago Press.

Brock, W. A. and Hommes, C. H. (1998). Heterogeneous beliefs and routes to chaos in a simple asset pricing model. Journal of Economic Dynamics and Control, 22(8–9):1235– 1274.

Cajueiro, D. O. and Tabak, B. M. (2004). The Hurst exponent over time: Testing the assertion that emerging markets are becoming more efficient. Physica A: Statistical Mechanics and Its Applications, 336(3–4):521–537.

Chakraborti, A., Chakrabarti, B. K., and Chatterjee, A. (2011). Econophysics and sociophysics: Recent progress. John Wiley & Sons.

Cong, L. W. et al. (2023). Large language models in finance. Available at SSRN.

Cont, R. (2007). Herd behavior and aggregate fluctuations in financial markets. Macroeconomic Dynamics, 11(S1):170–196.

Cover, T. M. and Thomas, J. A. (2006). Elements of information theory. John Wiley & Sons.

Davies, R. B. and Harte, D. S. (1987). Tests for Hurst effect. Biometrika, 74(1):95–101.

De Grauwe, P. and Grimaldi, M. (2006). Exchange rate puzzles: A tale of switching attractors. MIT Press.

Farmer, J. D. and Foley, D. (2009). The economy needs agent-based modelling. Nature, 460(7256):685–686.

Frankel, J. A. and Froot, K. A. (1990). Chartists, fundamentalists, and trading in the foreign exchange market. The American Economic Review, 80(2):181–185.

Gigerenzer, G. and Goldstein, D. G. (1996). Reasoning the fast and frugal way: Models of bounded rationality. Psychological Review, 103(4):650–669.

Hommes, C. H. and Wagener, F. O. (2009). Does complexity lead to chaos in a finance model? In Complexity and artificial markets, pages 135–154. Springer.

Horton, J. J. (2023). Large language models as simulated economic agents: What can we learn from homo silicus? Technical Report w31122, National Bureau of Economic Research.

Hurst, H. E. (1951). Long-term storage capacity of reservoirs. Transactions of the American Society of Civil Engineers, 116(1):770–799.

Kahneman, D. and Tversky, A. (1979). Prospect theory: An analysis of decision under risk. Econometrica, 47(2):263–291.

Kirman, A. (2010). The economic crisis is a crisis for economic theory. CESifo Forum, 11(2):45–51.

LeBaron, B. (2006). Agent-based computational finance. In Handbook of computational economics, volume 2, pages 1187–1233. Elsevier.

Lo, A. W. (1991). Long-term memory in stock market prices. Econometrica: Journal of the Econometric Society, pages 1279–1313.

Lopez-Lira, A. and Tang, Y. (2023). Can ChatGPT forecast stock price movements? Available at SSRN.

Lux, T. (2008). The complex dynamics of asset prices and returns. In Handbook of financial decision making, pages 219–246. Springer.

Lux, T. and Marchesi, M. (1999). Scaling and criticality in a stochastic multi-agent model of a financial market. Nature, 397(7719):498–500.

Lux, T. and Marchesi, M. (2000). Volatility clustering in financial markets: A microsimulation of interacting agents. International Journal of Theoretical and Applied Finance, 3(4):675–702.

Mandelbrot, B. B. (1997). Fractals and scaling in finance: Discontinuity, concentration, risk. Springer Science + Business Media.

Mantegna, R. N. and Stanley, H. E. (1995). Scaling behaviour in the dynamics of an economic index. Nature, 376(6535):46–49.

Mantegna, R. N. and Stanley, H. E. (2000). An introduction to econophysics: Correlations and complexity in finance. Cambridge University Press.

Newman, M. (2010). Networks: An introduction. Oxford University Press.

Peters, E. E. (1994). Fractal market analysis: Applying chaos theory to investment and economics. John Wiley & Sons.

Simon, H. A. (1955). A behavioral model of rational choice. The Quarterly Journal of Economics, 69(1):99–118.

Sornette, D. (2003). Why stock markets crash: Critical events in complex financial systems. Princeton University Press.

Tesfatsion, L. (2006). Agent-based computational economics: A constructive approach. In Handbook of computational economics, volume 2, pages 831–880. Elsevier.

Varian, H. R. (2018). Artificial intelligence, economics, and industrial organization. In The economics of artificial intelligence: An agenda, pages 399–429. University of Chicago Press.

Xiao, Z. et al. (2023). Financial agent-based models with LLMs. arXiv preprint arXiv:2310.01233.

Downloads

Published

2025-12-31

Issue

Section

Articles

How to Cite

A Comparative Study of an LLM-Based Agent in Synthetic Markets with Memory. (2025). Econometric Research in Finance, 10(2), 91-102. https://doi.org/10.33119/ERFIN.2025.10.2.3