Understanding the Inner Workings of a State-Space Foundation Model for Limit Order Books
Valentin Mohl, Alexandre Bismuth, Aramis Marti-Shahandeh, George Nigmatulin, Kang Li, Stefan Zohren, Jakob Foerster, Mihai Cucuringu, Anisoara Calinescu
Abstract
Autoregressive foundation models offer state-of-the-art capabilities to simulate the market by generating the message flow of limit order books (LOBs). Yet, without understanding their inner workings, research directions are hard to narrow and practical use in real-world trading environments remains uncertain. This study therefore asks what these models actually learn about market microstructure. We find that, similarly to games where sequence models build an internal representation of the board, an 8.2M-parameter Mamba-3 state-space model trained autoregressively on the tokenized message stream of eight large-cap US equities learns an internal representation of the market and its dynamics. In particular, order-flow imbalance, a central driver of short-horizon price moves, is decodable at , far above controls and baselines. This representation extends to unseen stocks, suggesting that these models learn general representations rather than ticker-specific patterns. The model also generalizes across metrics beyond order-flow imbalance: results hold across traded volume and volatility. Additionally, the representation is causally steerable: pushing the state along a feature's axis shifts the model's next-message beliefs as that feature implies, monotonically in dose, consistent with the emergence of a world model.
Create a lesson
Metadata
- Categories
- q-fin.TR, cs.LG
- Comments
- Accepted at the 7th ACM International Conference on AI in Finance (ICAIF '26), November 14-17, 2026, Milan, Italy
Related papers
Optimal Order Placement under a State-Dependent Hawkes Process Limit Order Book model
Shared title terminologyq-fin.TRJonathan Chávez Casillas, Li Gan
Do Round Numbers Hold Prices? Occupation Densities and Depth-Conditioned Hazards in the Limit Order Book
Shared title terminologyq-fin.TRJiwon Jung, Kiseop Lee
LOB-Impact Benchmark: Emergent Market Impact in Generative Limit Order Book Models
Shared title terminologyq-fin.TRGeorge Nigmatulin, Valentin Mohl, Sascha Frey et al.
Neural Estimation of Irreversibility in Real and Simulated Limit Order Book Paths
Shared title terminologyq-fin.TRHyeonjun Yeo, Doohwi Cha, Yoontae Hwang
Latent Continuum of Regimes in Limit Order Book Dynamics
Shared title terminologyq-fin.TRAnjali Thawait
Agentic Limit Order Books: Phase Transitions and Market Impact
Shared title terminologyq-fin.TRJan Rosenzweig