mlsanityData to 24 Nov 2026

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

arXiv 2610.28753 ↗Submitted 20 Oct 2026q-fin.TR cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

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.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.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 28 of its 53 references that are in the map. Submitted 20 Oct 2026.

Builds on

28 of 53 references.

References · 28

  1. 2017A Unified Approach to Interpreting Model Predictionscited by 6,783
  2. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,479
  3. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 971
  4. 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 462
  5. 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 345
  6. 2021Acquisition of Chess Knowledge in AlphaZerocited by 130
  7. 2024Evaluating the World Model Implicit in a Generative Modelcited by 129
  8. 2026Mamba-3: Improved Sequence Modeling using State Space Principlescited by 113
  9. 2024The Hidden Attention of Mamba Modelscited by 102
  10. 2024Emergent World Models and Latent Variable Estimation in Chess-Playing Language Modelscited by 68
  11. 2018Universal features of price formation in financial markets: perspectives from Deep Learningcited by 63
  12. 2024MambaLRP: Explaining Selective State Space Sequence Modelscited by 38
16 more
  1. 2024MarS: a Financial Market Simulation Engine Powered by Generative Foundation Modelcited by 37
  2. 2023Emergent Representations of Program Semantics in Language Models Trained on Programscited by 34
  3. 2022Learning to simulate realistic limit order book markets from data as a World Agentcited by 31
  4. 2023Conditional Generators for Limit Order Book Environments: Explainability, Challenges, and Robustnesscited by 17
  5. 2024Does Transformer Interpretability Transfer to RNNs?cited by 13
  6. 2025LOB-Bench: Benchmarking Generative AI for Finance -- an Application to Limit Order Book Datacited by 11
  7. 2023LOB-Based Deep Learning Models for Stock Price Trend Prediction: A Benchmark Studycited by 10
  8. 2025LaTIM: Measuring Latent Token-to-Token Interactions in Mamba Modelscited by 8
  9. 2026TradeFM: A Generative Foundation Model for Trade-flow and Market Microstructurecited by 8
  10. 2025TRADES: Generating Realistic Market Simulations with Diffusion Modelscited by 7
  11. 2025A Financial Brain Scan of the LLMcited by 5
  12. 2026DiffLOB: Diffusion Models for Counterfactual Generation in Limit Order Bookscited by 5
  13. 2024Interpretable Company Similarity with Sparse Autoencoderscited by 4
  14. 2025ByteGen: A Tokenizer-Free Generative Model for Orderbook Events in Byte Spacecited by 4
  15. 2026Verification of the Implicit World Model in a Generative Model via Adversarial Sequencescited by 2
  16. 2026WriteSAE: Sparse Autoencoders for Recurrent Statecited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026LOB-Impact Benchmark: Emergent Market Impact in Generative Limit Order Book Models
  2. 2023Generative AI for End-to-End Limit Order Book Modelling: A Token-Level Autoregressive Generative Model of Message Flow Using a Deep State Space Network
  3. 2026Towards Financial World Modeling
  4. 2026Adversarial Post-Training of Foundation Models for High-Frequency Trading
  5. 2025Interpretable Hypothesis-Driven Trading:A Rigorous Walk-Forward Validation Framework for Market Microstructure Signals
  6. 2025DiffVolume: Diffusion Models for Volume Generation in Limit Order Books
  7. 2025Deep Learning Meets Queue-Reactive: A Framework for Realistic Limit Order Book Simulation
  8. 2026FlowLOB: Efficient and Controllable Limit Order Book Generation with Flow Matching