Behavioral Prior Elicitation via LLM for Heterogeneous-Agent Bitcoin Flash-Crash Simulation
This paper proposes a four-stage pipeline that leverages offline large language models to elicit behavioral priors for heterogeneous agents in a limit order book simulator, demonstrating that these empirically anchored priors significantly improve the reproduction of Bitcoin flash-crash events and enable the identification of leverage amplification as a key causal mechanism.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the author. For technical accuracy, refer to the original paper. Read full disclaimer
In the world of modern finance, some markets move with a speed and intensity that feels almost alien. Bitcoin perpetual futures are a prime example. Unlike traditional stock markets that close for the night or futures contracts that expire on a set date, these digital assets trade continuously, twenty-four hours a day, allowing traders to hold leveraged positions indefinitely. This constant activity creates a unique environment where liquidity—the amount of money available to buy or sell—can be surprisingly thin just beyond the very best prices. When a sudden wave of selling hits, this shallow depth can vanish in milliseconds, causing prices to plummet in what is known as a flash crash. These events are dangerous not just because of the immediate loss, but because they reveal how fragile the system can be when automated trading, aggressive orders, and withdrawing liquidity collide. Understanding why these crashes happen is difficult because the data is messy and the behavior of the thousands of participants involved is often hidden. Researchers have long tried to build computer models to simulate these markets, but they have struggled to program the "personality" of the traders inside the simulation. Without realistic rules for how different types of traders react to stress, the models often fail to reproduce the chaotic reality of a crash.
A team of researchers from Vietnam has tackled this problem by creating a new way to teach a computer how to think like a trader during a crisis. Instead of guessing how traders behave or relying on rigid, hand-written rules, they used a large language model—an advanced artificial intelligence trained on vast amounts of text—to generate the behavioral rules for their simulation. The researchers first gathered a massive dataset of 66 real-world flash-crash events involving Bitcoin, recorded at a resolution of one-tenth of a second. They broke these events down into distinct phases: the calm before the storm, the rapid drop, the recovery, and the aftermath. For each phase, they fed specific details about market conditions, such as the imbalance between buy and sell orders and the volatility of prices, into the artificial intelligence. The AI was then asked to propose how four different types of traders—momentum traders who follow the trend, contrarians who bet against the trend, high-frequency market makers who provide liquidity, and random noise traders—would act under those specific conditions.
The researchers did not simply accept whatever the AI suggested. They built a strict filter to ensure the AI's suggestions made mathematical sense and stayed within realistic bounds. Once the AI provided a set of behavioral rules, or "priors," the team plugged them into a complex computer simulation of a limit order book, which is the digital ledger where all buy and sell orders are matched. They ran this simulation 500 times, each time letting the different types of agents interact according to the AI's instructions. The results were striking. When the simulation used the AI-elicited rules, it produced a crash rate of roughly 17.6 percent, a figure that closely matched the frequency of real-world events. In contrast, when the researchers used generic, uninformed rules that did not account for specific market conditions, the crash rate plummeted to less than 1 percent. While the simulation with the AI rules generated price movements with "heavier tails" than the generic models, the paper notes that these tails were still significantly smaller—about 295 times smaller—than the extreme swings observed in actual empirical data, indicating that while the AI improved the model's realism, it did not fully capture the full magnitude of real-world volatility.
Beyond simply recreating the crashes, the researchers used the simulation to ask "what if" questions about what drives these disasters. They tested whether reducing the pressure from aggressive selling or reducing the use of leverage—the practice of borrowing money to amplify trades—would prevent the crashes. The analysis suggested that while aggressive selling is a clear warning sign, it is the amplification of leverage that acts as the primary engine of the crash. When the researchers simulated a scenario where leverage was reduced by a standard amount, the predicted crash rate dropped significantly, from 17.6 percent down to 13.6 percent. Reducing the directional pressure from selling, however, had almost no effect on the crash rate. This finding points to a specific mechanism: as prices fall, the withdrawal of liquidity by market makers and the forced liquidation of leveraged positions create a feedback loop that is far more destructive than the initial selling pressure alone.
The study does not claim to have solved the mystery of Bitcoin crashes or to have proven that these specific rules govern the real market. The researchers are careful to note that their conclusions are valid within the controlled environment of their simulation, which simplifies the real world by using a fixed number of agents and specific mathematical rules. They acknowledge that their model does not yet include every factor that influences real markets, such as complex news sentiment or the exact structure of liquidation feeds. However, the work demonstrates a powerful new method for bridging the gap between raw data and behavioral theory. By using artificial intelligence to extract realistic behavioral patterns from historical data and then testing those patterns in a controlled simulation, the team has created a tool that is far more faithful to reality than previous attempts. This approach suggests that the key to understanding and potentially mitigating future financial instability lies not just in watching the numbers, but in understanding the specific, amplified behaviors of the participants when the system is under the most extreme stress.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.