arXiv:2610.28753q-fin.TROct 2026

Manuscript Offprint

arXiv:2610.28753

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Valentin Mohl*

valentin.mohl@cs.ox.ac.uk

British Open-ended Learning and

Discovery Lab (BOLD)

Department of Computer Science

University of Oxford

Oxford, United Kingdom

George Nigmatulin

george.nigmatulin@eng.ox.ac.uk

British Open-ended Learning and

Discovery Lab (BOLD)

Department of Engineering Science

University of Oxford

Oxford, United Kingdom

Jakob Foerster

jakob@robots.ox.ac.uk

British Open-ended Learning and

Discovery Lab (BOLD)

Department of Engineering Science

University of Oxford

Oxford, United Kingdom

Alexandre Bismuth*

abismuth@g.harvard.edu

British Open-ended Learning and

Discovery Lab (BOLD)

Department of Computer Science

University of Oxford

Oxford, United Kingdom

Harvard University

Cambridge, MA, United States

Kang Li

kang.li@stats.ox.ac.uk

British Open-ended Learning and

Discovery Lab (BOLD)

Department of Statistics

University of Oxford

Oxford, United Kingdom

Mihai Cucuringu

mihai@math.ucla.edu

Department of Mathematics

University of California, Los Angeles

Los Angeles, United States

Oxford-Man Institute of Quantitative

Finance, Department of Statistics

University of Oxford

Oxford, United Kingdom

Aramis Marti-Shahandeh

aramis@robots.ox.ac.uk

British Open-ended Learning and

Discovery Lab (BOLD)

Department of Engineering Science

University of Oxford

Oxford, United Kingdom

Stefan Zohren

stefan.zohren@eng.ox.ac.uk

British Open-ended Learning and

Discovery Lab (BOLD)

Department of Engineering Science

University of Oxford

Oxford, United Kingdom

Anisoara Calinescu

ani.calinescu@cs.ox.ac.uk

British Open-ended Learning and

Discovery Lab (BOLD)

Department of Computer Science

University of Oxford

Oxford, United Kingdom

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 R2≈0.59R^{2} \approx 0.59, far above controls and baselines. This representation extends to unseen stocks, suggesting that these

∗^{*}Equal contribution.

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.

CCS Concepts

• Computing methodologies → Neural networks; Learning latent representations; • Applied computing → Economics.

References (23)