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

M3: A State-Event Generative Foundation Model for Market Microstructure Dynamics

Author

Listed:
  • Yanzhi Zhang
  • Yu Ma
  • Yilin Cheng
  • Jian Li
  • Yitong Duan

Abstract

Market microstructure simulation aims to model how liquidity, prices, and order flow evolve in electronic financial markets. Since market data reveal only one realized trajectory, many important questions are inherently counterfactual and require realistic trajectory-level simulation. Existing financial generative models, however, often model order events and market states, such as the LOB, in isolation, overlooking the dynamic interaction between order flow and liquidity in market microstructure. We propose the \textbf{M3} (\underline{M}arket \underline{M}icrostructure \underline{M}odel), a state-event generative foundation model for market microstructure dynamics. \textbf{M3} learns to generate future order-flow trajectories, while accounting for the evolving interaction between order events and limit-order-book liquidity. Trained on large-scale order-level real stock market data, \textbf{M3} exhibits predictable scaling behavior, reproduces key market stylized facts, and enables practical simulation-based applications including forecasting, stress testing, and market-impact analysis. These results suggest a scalable foundation-model paradigm for counterfactual market simulation at the microstructure level.

Suggested Citation

  • Yanzhi Zhang & Yu Ma & Yilin Cheng & Jian Li & Yitong Duan, 2026. "M3: A State-Event Generative Foundation Model for Market Microstructure Dynamics," Papers 2608.19227, arXiv.org.
  • Handle: RePEc:arx:papers:2608.19227
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. J. Doyne Farmer & Andrew W. Lo, 1999. "Frontiers of Finance: Evolution and Efficient Markets," Working Papers 99-06-039, Santa Fe Institute.
    2. Ding, Zhuanxin & Granger, Clive W. J. & Engle, Robert F., 1993. "A long memory property of stock market returns and a new model," Journal of Empirical Finance, Elsevier, vol. 1(1), pages 83-106, June.
    3. Junjie Li & Yang Liu & Weiqing Liu & Shikai Fang & Lewen Wang & Chang Xu & Jiang Bian, 2024. "MarS: a Financial Market Simulation Engine Powered by Generative Foundation Model," Papers 2409.07486, arXiv.org, revised Mar 2025.
    4. R. Cont, 2001. "Empirical properties of asset returns: stylized facts and statistical issues," Quantitative Finance, Taylor & Francis Journals, vol. 1(2), pages 223-236.
    5. Xinlong Wang & Yufeng Cui & Jinsheng Wang & Fan Zhang & Yueze Wang & Xiaosong Zhang & Zhengxiong Luo & Quan Sun & Zhen Li & Yuqi Wang & Qiying Yu & Yingli Zhao & Yulong Ao & Xuebin Min & Chunlei Men &, 2026. "Multimodal learning with next-token prediction for large multimodal models," Nature, Nature, vol. 650(8101), pages 327-333, February.
    6. Mike, Szabolcs & Farmer, J. Doyne, 2008. "An empirical behavioral model of liquidity and volatility," Journal of Economic Dynamics and Control, Elsevier, vol. 32(1), pages 200-234, January.
    7. ., 1999. "Time Series Properties of Foreign Currency Hedge Ratios," Chapters, in: Foundations of Futures Markets, chapter 15, pages 276-297, Edward Elgar Publishing.
    8. Kyle, Albert S, 1985. "Continuous Auctions and Insider Trading," Econometrica, Econometric Society, vol. 53(6), pages 1315-1335, November.
    9. Grossman, Sanford J & Stiglitz, Joseph E, 1980. "On the Impossibility of Informationally Efficient Markets," American Economic Review, American Economic Association, vol. 70(3), pages 393-408, June.
    10. Maxime Kawawa-Beaudan & Srijan Sood & Kassiani Papasotiriou & Daniel Borrajo & Manuela Veloso, 2026. "TradeFM: A Generative Foundation Model for Trade-flow and Market Microstructure," Papers 2602.23784, arXiv.org.
    11. Yu Shi & Zongliang Fu & Shuo Chen & Bohan Zhao & Wei Xu & Changshui Zhang & Jian Li, 2025. "Kronos: A Foundation Model for the Language of Financial Markets," Papers 2508.02739, arXiv.org.
    12. Benoit Mandelbrot, 2015. "The Variation of Certain Speculative Prices," World Scientific Book Chapters, in: Anastasios G Malliaris & William T Ziemba (ed.), THE WORLD SCIENTIFIC HANDBOOK OF FUTURES MARKETS, chapter 3, pages 39-78, World Scientific Publishing Co. Pte. Ltd..
    13. LeBaron, Blake & Arthur, W. Brian & Palmer, Richard, 1999. "Time series properties of an artificial stock market," Journal of Economic Dynamics and Control, Elsevier, vol. 23(9-10), pages 1487-1516, September.
    14. Rama Cont & Adrien de Larrard, 2013. "Price Dynamics in a Markovian Limit Order Market," Post-Print hal-00552252, HAL.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. J. Doyne Farmer, 2002. "Market force, ecology and evolution," Industrial and Corporate Change, Oxford University Press and the Associazione ICC, vol. 11(5), pages 895-953, November.
    2. Jean-Philippe Bouchaud & J. Doyne Farmer & Fabrizio Lillo, 2008. "How markets slowly digest changes in supply and demand," Papers 0809.0822, arXiv.org.
    3. Jovanovic, Franck & Schinckus, Christophe, 2017. "Econophysics and Financial Economics: An Emerging Dialogue," OUP Catalogue, Oxford University Press, number 9780190205034.
    4. Jörn Dermietzel, 2008. "The Heterogeneous Agents Approach to Financial Markets – Development and Milestones," International Handbooks on Information Systems, in: Detlef Seese & Christof Weinhardt & Frank Schlottmann (ed.), Handbook on Information Technology in Finance, chapter 19, pages 443-464, Springer.
    5. Detlef Seese & Christof Weinhardt & Frank Schlottmann (ed.), 2008. "Handbook on Information Technology in Finance," International Handbooks on Information Systems, Springer, number 978-3-540-49487-4, June.
    6. Radu T. Pruna & Maria Polukarov & Nicholas R. Jennings, 2016. "A new structural stochastic volatility model of asset pricing and its stylized facts," Papers 1604.08824, arXiv.org.
    7. Anirban Chakraborti & Ioane Muni Toke & Marco Patriarca & Frederic Abergel, 2011. "Econophysics review: I. Empirical facts," Quantitative Finance, Taylor & Francis Journals, vol. 11(7), pages 991-1012.
    8. Martin D. Gould & Mason A. Porter & Stacy Williams & Mark McDonald & Daniel J. Fenn & Sam D. Howison, 2010. "Limit Order Books," Papers 1012.0349, arXiv.org, revised Apr 2013.
    9. Hommes, Cars H., 2006. "Heterogeneous Agent Models in Economics and Finance," Handbook of Computational Economics, in: Leigh Tesfatsion & Kenneth L. Judd (ed.), Handbook of Computational Economics, edition 1, volume 2, chapter 23, pages 1109-1186, Elsevier.
    10. Jasmina Hasanhodzic & Andrew Lo & Emanuele Viola, 2011. "A computational view of market efficiency," Quantitative Finance, Taylor & Francis Journals, vol. 11(7), pages 1043-1050.
    11. Miquel Noguer i Alonso, 2026. "Markets Are Not Random, They Are Hard to Predict," Papers 2606.08209, arXiv.org.
    12. J. Doyne Farmer & John Geanakoplos, 2008. "The virtues and vices of equilibrium and the future of financial economics," Papers 0803.2996, arXiv.org.
    13. Kyubin Yim & Gabjin Oh & Seunghwan Kim, 2016. "Understanding Financial Market States Using an Artificial Double Auction Market," PLOS ONE, Public Library of Science, vol. 11(3), pages 1-15, March.
    14. Troy Tassier, 2013. "Handbook of Research on Complexity, by J. Barkley Rosser, Jr. and Edward Elgar," Eastern Economic Journal, Palgrave Macmillan;Eastern Economic Association, vol. 39(1), pages 132-133.
    15. Andrea Gaunersdorfer & Cars Hommes, 2007. "A Nonlinear Structural Model for Volatility Clustering," Springer Books, in: Gilles Teyssière & Alan P. Kirman (ed.), Long Memory in Economics, pages 265-288, Springer.
    16. Pastushkov, A., 2025. "Evolutionary and agent-based computational finance: The new paradigms for asset pricing," Journal of the New Economic Association, New Economic Association, vol. 66(1), pages 196-222.
    17. Anirban Chakraborti & Ioane Muni Toke & Marco Patriarca & Frederic Abergel, 2011. "Econophysics review: II. Agent-based models," Quantitative Finance, Taylor & Francis Journals, vol. 11(7), pages 1013-1041.
    18. Anirban Chakraborti & Ioane Muni Toke & Marco Patriarca & Frédéric Abergel, 2011. "Econophysics review: I. Empirical facts," Post-Print hal-00621058, HAL.
    19. Alessio Emanuele Biondo, 2020. "Information versus imitation in a real-time agent-based model of financial markets," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 15(3), pages 613-631, July.
    20. Martin D. Gould & Mason A. Porter & Stacy Williams & Mark McDonald & Daniel J. Fenn & Sam D. Howison, 2013. "Limit order books," Quantitative Finance, Taylor & Francis Journals, vol. 13(11), pages 1709-1742, November.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

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

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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.