IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2610.28753.html

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

Author

Listed:
  • 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 $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.

Suggested Citation

  • Valentin Mohl & Alexandre Bismuth & Aramis Marti-Shahandeh & George Nigmatulin & Kang Li & Stefan Zohren & Jakob Foerster & Mihai Cucuringu & Anisoara Calinescu, 2026. "Understanding the Inner Workings of a State-Space Foundation Model for Limit Order Books," Papers 2610.28753, arXiv.org.
  • Handle: RePEc:arx:papers:2610.28753
    as

    Download full text from publisher

    File URL: https://arxiv.org/pdf/2610.28753
    File Function: Latest version
    Download Restriction: no
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2610.28753. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: https://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.