# Understanding the Inner Workings of a State-Space Foundation Model for Limit Order Books

DevFeed: [Understanding the Inner Workings of a State-Space Foundation Model for Limit Order Books](<https://devfeed.tech/articles/understanding-the-inner-workings-of-a-state-space-foundation-model-for-limit-order-books-94800.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.28753>)

Author: Valentin Mohl, Alexandre Bismuth, Aramis Marti-Shahandeh, George Nigmatulin, Kang Li, Stefan Zohren, Jakob Foerster, Mihai Cucuringu, Anisoara Calinescu

Published: 2026-10-22T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Mamba](<https://devfeed.tech/topics/mamba.md>), [AI Foundation Models](<https://devfeed.tech/topics/ai-foundation-models.md>), [model architecture](<https://devfeed.tech/topics/model-architecture.md>), [World models](<https://devfeed.tech/topics/world-models.md>)

Tags: [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [foundation-model](<https://devfeed.tech/tags/foundation-model.md>), [mamba](<https://devfeed.tech/tags/mamba.md>), [market-microstructure](<https://devfeed.tech/tags/market-microstructure.md>), [order-flow-imbalance](<https://devfeed.tech/tags/order-flow-imbalance.md>), [q-fin-tr](<https://devfeed.tech/tags/q-fin-tr.md>), [stocks](<https://devfeed.tech/tags/stocks.md>), [trading](<https://devfeed.tech/tags/trading.md>), [volume](<https://devfeed.tech/tags/volume.md>), [world-model](<https://devfeed.tech/tags/world-model.md>)

## AI overview

An 8.2M-parameter Mamba-3 model trained on tokenized limit order book messages from eight large-cap US equities learns a decodable representation of market dynamics. Order-flow imbalance is recovered at about R² = 0.59, above controls and baselines; the representation also extends to unseen stocks and captures traded volume and volatility. Steering the model's internal state along a feature axis shifts its next-message beliefs monotonically in the direction implied by that feature. These findings suggest an internal market representation, while the abstract says practical use in real-world trading remains uncertain.

## Source excerpt

arXiv:2610.28753v1 Announce Type: cross 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 $R^2 \approx 0.59$, 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.