IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2509.05107.html
   My bibliography  Save this paper

Painting the market: generative diffusion models for financial limit order book simulation and forecasting

Author

Listed:
  • Alfred Backhouse
  • Kang Li
  • Jakob Foerster
  • Anisoara Calinescu
  • Stefan Zohren

Abstract

Simulating limit order books (LOBs) has important applications across forecasting and backtesting for financial market data. However, deep generative models struggle in this context due to the high noise and complexity of the data. Previous work uses autoregressive models, although these experience error accumulation over longer-time sequences. We introduce a novel approach, converting LOB data into a structured image format, and applying diffusion models with inpainting to generate future LOB states. This method leverages spatio-temporal inductive biases in the order book and enables parallel generation of long sequences overcoming issues with error accumulation. We also publicly contribute to LOB-Bench, the industry benchmark for LOB generative models, to allow fair comparison between models using Level-2 and Level-3 order book data (with or without message level data respectively). We show that our model achieves state-of-the-art performance on LOB-Bench, despite using lower fidelity data as input. We also show that our method prioritises coherent global structures over local, high-fidelity details, providing significant improvements over existing methods on certain metrics. Overall, our method lays a strong foundation for future research into generative diffusion approaches to LOB modelling.

Suggested Citation

  • Alfred Backhouse & Kang Li & Jakob Foerster & Anisoara Calinescu & Stefan Zohren, 2025. "Painting the market: generative diffusion models for financial limit order book simulation and forecasting," Papers 2509.05107, arXiv.org.
  • Handle: RePEc:arx:papers:2509.05107
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Zihao Zhang & Stefan Zohren & Stephen Roberts, 2018. "BDLOB: Bayesian Deep Convolutional Neural Networks for Limit Order Books," Papers 1811.10041, arXiv.org.
    2. Rama Cont & Sasha Stoikov & Rishi Talreja, 2010. "A Stochastic Model for Order Book Dynamics," Operations Research, INFORMS, vol. 58(3), pages 549-563, June.
    3. Zoltán Eisler & Jean-Philippe Bouchaud & Julien Kockelkoren, 2012. "The price impact of order book events: market orders, limit orders and cancellations," Quantitative Finance, Taylor & Francis Journals, vol. 12(9), pages 1395-1419, September.
    4. Leonardo Berti & Bardh Prenkaj & Paola Velardi, 2025. "TRADES: Generating Realistic Market Simulations with Diffusion Models," Papers 2502.07071, arXiv.org, revised Nov 2025.
    5. Zihao Zhang & Stefan Zohren, 2021. "Multi-Horizon Forecasting for Limit Order Books: Novel Deep Learning Approaches and Hardware Acceleration using Intelligent Processing Units," Papers 2105.10430, arXiv.org, revised Aug 2021.
    6. Yichi Zhang & Mihai Cucuringu & Alexander Y. Shestopaloff & Stefan Zohren, 2025. "ClusterLOB: Enhancing Trading Strategies by Clustering Orders in Limit Order Books," Papers 2504.20349, arXiv.org, revised May 2025.
    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. Petter N. Kolm & Jeremy Turiel & Nicholas Westray, 2023. "Deep order flow imbalance: Extracting alpha at multiple horizons from the limit order book," Mathematical Finance, Wiley Blackwell, vol. 33(4), pages 1044-1081, October.
    2. Michael Giegrich & Roel Oomen & Christoph Reisinger, 2024. "Limit Order Book Simulation and Trade Evaluation with $K$-Nearest-Neighbor Resampling," Papers 2409.06514, arXiv.org.
    3. Eghbal Rahimikia & Stefan Zohren & Ser-Huang Poon, 2021. "Realised Volatility Forecasting: Machine Learning via Financial Word Embedding," Papers 2108.00480, arXiv.org, revised Nov 2024.
    4. Jonathan A. Chávez Casillas, 2024. "A Time-Dependent Markovian Model of a Limit Order Book," Computational Economics, Springer;Society for Computational Economics, vol. 63(2), pages 679-709, February.
    5. Philippe Bergault & Enzo Cogn'eville, 2024. "Simulating and analyzing a sparse order book: an application to intraday electricity markets," Papers 2410.06839, arXiv.org.
    6. Weibing Huang & Charles-Albert Lehalle & Mathieu Rosenbaum, 2015. "Simulating and Analyzing Order Book Data: The Queue-Reactive Model," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 110(509), pages 107-122, March.
    7. 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.
    8. Xiaofei Lu & Frédéric Abergel, 2017. "Limit order book modelling with high dimensional Hawkes processes," Working Papers hal-01512430, HAL.
    9. Alvaro Arroyo & Alvaro Cartea & Fernando Moreno-Pino & Stefan Zohren, 2023. "Deep Attentive Survival Analysis in Limit Order Books: Estimating Fill Probabilities with Convolutional-Transformers," Papers 2306.05479, arXiv.org.
    10. Gao, Xuefeng & Xu, Tianrun, 2022. "Order scoring, bandit learning and order cancellations," Journal of Economic Dynamics and Control, Elsevier, vol. 134(C).
    11. Federico Gonzalez & Mark Schervish, 2017. "Instantaneous order impact and high-frequency strategy optimization in limit order books," Papers 1707.01167, arXiv.org, revised Oct 2017.
    12. Bonart, Julius & Lillo, Fabrizio, 2018. "A continuous and efficient fundamental price on the discrete order book grid," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 503(C), pages 698-713.
    13. Justin Sirignano & Rama Cont, 2018. "Universal features of price formation in financial markets: perspectives from Deep Learning," Papers 1803.06917, arXiv.org.
    14. Justin Sirignano & Rama Cont, 2018. "Universal features of price formation in financial markets: perspectives from Deep Learning," Working Papers hal-01754054, HAL.
    15. Mircea BAHNA & Cosmin-Octavian CEPOI & Bogdan Andrei DUMITRESCU & Virgil DAMIAN, 2018. "Estimating the Price Impact of Market Orders on the Bucharest Stock Exchange," Journal for Economic Forecasting, Institute for Economic Forecasting, vol. 0(4), pages 120-133, December.
    16. Jonathan A. Ch'avez-Casillas, 2023. "A time-dependent Markovian model of a limit order book," Papers 2302.00846, arXiv.org.
    17. Iacopo Mastromatteo, 2014. "Apparent impact: the hidden cost of one-shot trades," Papers 1409.8497, arXiv.org, revised Jun 2015.
    18. Xiaofei Lu & Frédéric Abergel, 2018. "High dimensional Hawkes processes for limit order books Modelling, empirical analysis and numerical calibration," Post-Print hal-01686122, HAL.
    19. Peer Nagy & Sascha Frey & Kang Li & Bidipta Sarkar & Svitlana Vyetrenko & Stefan Zohren & Ani Calinescu & Jakob Foerster, 2025. "LOB-Bench: Benchmarking Generative AI for Finance -- an Application to Limit Order Book Data," Papers 2502.09172, arXiv.org, revised Jun 2025.
    20. Fabrizio Lillo, 2021. "Order flow and price formation," Papers 2105.00521, arXiv.org.

    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:2509.05107. 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: http://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.