Agent-Based Simulation of a Financial Market with Large Language Models
Ryuji Hashimoto, Takehiro Takayanagi, Masahiro Suzuki, Kiyoshi Izumi
TL;DR
The paper tackles path-dependent price formation in financial markets by modeling investor behavior with FCLAgent, an LLM-guided trader that decides buy/sell actions while leaving order pricing to traditional rule-based mechanisms. This hybrid design enables psychologically plausible, context-sensitive loss aversion—anchored to reference points like purchase prices and all-time highs—without overburdening the LLM with numerical tasks. Empirical results show that incorporating FCLAgents reproduces the all-time high anomaly (a negative relation between proximity to $p_{1:t}^h$ and future returns) and preserves key stylized facts, while revealing that LLM-driven loss aversion can be highly context-dependent across models. The findings highlight the potential of LLM-based agents to enhance agent-based market simulations, offering richer behavioral realism and insights into how nuanced investor biases shape macro market dynamics. Future work will broaden heterogeneity (e.g., demographics) and further explore how different contextual cues influence collective market outcomes.
Abstract
In real-world stock markets, certain chart patterns -- such as price declines near historical highs -- cannot be fully explained by fundamentals alone. These phenomena suggest the presence of path dependence in price formation, where investor decisions are influenced not only by current market conditions but also by the trajectory of prices leading up to the present. Path dependence has drawn attention in behavioral finance as a key mechanism behind such anomalies. One plausible driver of path dependence is human loss aversion, anchored to individual reference points like purchase prices or past peaks, which vary with personal context. However, capturing such subtle behavioral tendencies in traditional agent-based market simulations has remained a challenge. We propose the Fundamental-Chartist-LLM-Agent (FCLAgent), which uses large language models (LLMs) to emulate human-like trading decisions. In this framework, (1) buy/sell decisions are made by LLMs based on individual situations, while (2) order price and volume follow standard rule-based methods. Simulations show that FCLAgents reproduce path-dependent patterns that conventional agents fail to capture. Furthermore, an analysis of FCLAgents' behavior reveals that the reference points guiding loss aversion vary with market trajectories, highlighting the potential of LLM-based agents to model nuanced investor behavior.
