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

DiffLOB: Diffusion Models for Counterfactual Generation in Limit Order Books

Author

Listed:
  • Zhuohan Wang
  • Carmine Ventre

Abstract

Modern generative models for limit order books (LOBs) can reproduce realistic market dynamics, but remain fundamentally passive: they either model what typically happens without accounting for hypothetical future market conditions, or they require interaction with another agent to explore alternative outcomes. This limits their usefulness for stress testing, scenario analysis, and decision-making. We propose \textbf{DiffLOB}, a regime-conditioned \textbf{Diff}usion model for controllable and counterfactual generation of \textbf{LOB} trajectories. DiffLOB explicitly conditions the generative process on future market regimes--including trend, volatility, liquidity, and order-flow imbalance, which enables the model to answer counterfactual queries of the form: ``If the future market regime were X instead of Y, how would the limit order book evolve?'' Our systematic evaluation framework for counterfactual LOB generation consists of three criteria: (1) \textit{Controllable Realism}, measuring how well generated trajectories can reproduce marginal distributions, temporal dependence structure and regime variables; (2) \textit{Counterfactual validity}, testing whether interventions on future regimes induce consistent changes in the generated LOB dynamics; (3) \textit{Counterfactual usefulness}, assessing whether synthetic counterfactual trajectories improve downstream prediction of future market regimes.

Suggested Citation

  • Zhuohan Wang & Carmine Ventre, 2026. "DiffLOB: Diffusion Models for Counterfactual Generation in Limit Order Books," Papers 2602.03776, arXiv.org.
  • Handle: RePEc:arx:papers:2602.03776
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Briola, Antonio & Bartolucci, Silvia & Aste, Tomaso, 2025. "Deep limit order book forecasting: a microstructural guide," LSE Research Online Documents on Economics 128950, London School of Economics and Political Science, LSE Library.
    2. Yuki Tanaka & Ryuji Hashimoto & Takehiro Takayanagi & Zhe Piao & Yuri Murayama & Kiyoshi Izumi, 2025. "CoFinDiff: Controllable Financial Diffusion Model for Time Series Generation," Papers 2503.04164, arXiv.org.
    3. Kelvin J. L. Koa & Yunshan Ma & Ritchie Ng & Tat-Seng Chua, 2023. "Diffusion Variational Autoencoder for Tackling Stochasticity in Multi-Step Regression Stock Price Prediction," Papers 2309.00073, arXiv.org, revised Oct 2023.
    4. Hanna Hultin & Henrik Hult & Alexandre Proutiere & Samuel Samama & Ala Tarighati, 2023. "A generative model of a limit order book using recurrent neural networks," Quantitative Finance, Taylor & Francis Journals, vol. 23(6), pages 931-958, June.
    5. 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.
    6. Zhuohan Wang & Carmine Ventre, 2025. "DiffVolume: Diffusion Models for Volume Generation in Limit Order Books," Papers 2508.08698, arXiv.org.
    7. Leonardo Berti & Bardh Prenkaj & Paola Velardi, 2025. "TRADES: Generating Realistic Market Simulations with Diffusion Models," Papers 2502.07071, arXiv.org, revised Nov 2025.
    8. Andrea Coletta & Matteo Prata & Michele Conti & Emanuele Mercanti & Novella Bartolini & Aymeric Moulin & Svitlana Vyetrenko & Tucker Balch, 2021. "Towards Realistic Market Simulations: a Generative Adversarial Networks Approach," Papers 2110.13287, arXiv.org.
    9. Peer Nagy & Sascha Frey & Silvia Sapora & Kang Li & Anisoara Calinescu & Stefan Zohren & Jakob Foerster, 2023. "Generative AI for End-to-End Limit Order Book Modelling: A Token-Level Autoregressive Generative Model of Message Flow Using a Deep State Space Network," Papers 2309.00638, arXiv.org.
    10. Zhuohan Wang & Carmine Ventre, 2024. "A Financial Time Series Denoiser Based on Diffusion Model," Papers 2409.02138, arXiv.org.
    11. Antonio Briola & Silvia Bartolucci & Tomaso Aste, 2025. "Deep limit order book forecasting: a microstructural guide," Quantitative Finance, Taylor & Francis Journals, vol. 25(7), pages 1101-1131, July.
    12. Briola, Antonio & Bartolucci, Silvia & Aste, Tomaso, 2025. "HLOB–Information persistence and structure in limit order books," LSE Research Online Documents on Economics 126623, London School of Economics and Political Science, LSE Library.
    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. Leonardo Berti & Bardh Prenkaj & Paola Velardi, 2025. "TRADES: Generating Realistic Market Simulations with Diffusion Models," Papers 2502.07071, arXiv.org, revised Nov 2025.
    2. 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.
    3. Sabrina Aufiero & Silvia Bartolucci & Fabio Caccioli & Pierpaolo Vivo, 2025. "Mapping Microscopic and Systemic Risks in TradFi and DeFi: a literature review," Papers 2508.12007, arXiv.org.
    4. Michael Giegrich & Roel Oomen & Christoph Reisinger, 2024. "Limit Order Book Simulation and Trade Evaluation with $K$-Nearest-Neighbor Resampling," Papers 2409.06514, arXiv.org.
    5. Andrea Coletta & Joseph Jerome & Rahul Savani & Svitlana Vyetrenko, 2023. "Conditional Generators for Limit Order Book Environments: Explainability, Challenges, and Robustness," Papers 2306.12806, arXiv.org.
    6. 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.
    7. Leonardo Berti & Gjergji Kasneci, 2025. "TLOB: A Novel Transformer Model with Dual Attention for Price Trend Prediction with Limit Order Book Data," Papers 2502.15757, arXiv.org, revised May 2025.
    8. Ollie Olby & Rory Baggott & Namid Stillman, 2025. "TABL-ABM: A Hybrid Framework for Synthetic LOB Generation," Papers 2510.22685, arXiv.org.
    9. Andrea Coletta & Aymeric Moulin & Svitlana Vyetrenko & Tucker Balch, 2022. "Learning to simulate realistic limit order book markets from data as a World Agent," Papers 2210.09897, arXiv.org.
    10. Xiao-Yang Liu & Ziyi Xia & Jingyang Rui & Jiechao Gao & Hongyang Yang & Ming Zhu & Christina Dan Wang & Zhaoran Wang & Jian Guo, 2022. "FinRL-Meta: Market Environments and Benchmarks for Data-Driven Financial Reinforcement Learning," Papers 2211.03107, arXiv.org.
    11. Jain, Konark & Firoozye, Nick & Kochems, Jonathan & Treleaven, Philip, 2024. "Limit Order Book dynamics and order size modelling using Compound Hawkes Process," Finance Research Letters, Elsevier, vol. 69(PA).
    12. Tao Ren & Ruihan Zhou & Jinyang Jiang & Jiafeng Liang & Qinghao Wang & Yijie Peng, 2024. "RiskMiner: Discovering Formulaic Alphas via Risk Seeking Monte Carlo Tree Search," Papers 2402.07080, arXiv.org, revised Feb 2024.
    13. Koliousis, Ioannis & Al-Surmi, Abdulrahman & Bashiri, Mahdi, 2024. "Artificial intelligence and policy making; can small municipalities enable digital transformation?," International Journal of Production Economics, Elsevier, vol. 274(C).
    14. Haochuan Wang, 2025. "Exploring Microstructural Dynamics in Cryptocurrency Limit Order Books: Better Inputs Matter More Than Stacking Another Hidden Layer," Papers 2506.05764, arXiv.org, revised Jun 2025.
    15. Aaron Wheeler & Jeffrey D. Varner, 2024. "MarketGPT: Developing a Pre-trained transformer (GPT) for Modeling Financial Time Series," Papers 2411.16585, arXiv.org.
    16. Yang Li & Zhi Chen, 2025. "ByteGen: A Tokenizer-Free Generative Model for Orderbook Events in Byte Space," Papers 2508.02247, arXiv.org, revised Aug 2025.
    17. Jiang, Shang & Tran, Cong Quoc & Keyvan-Ekbatani, Mehdi, 2025. "A diffusion-model-based approach for forecasting energy demand in New Zealand’s transport sector," Applied Energy, Elsevier, vol. 400(C).
    18. Hamza Bodor & Laurent Carlier, 2025. "Deep Learning Meets Queue-Reactive: A Framework for Realistic Limit Order Book Simulation," Papers 2501.08822, arXiv.org.
    19. Minshuo Chen & Renyuan Xu & Yumin Xu & Ruixun Zhang, 2025. "Diffusion Factor Models: Generating High-Dimensional Returns with Factor Structure," Papers 2504.06566, arXiv.org, revised Jan 2026.
    20. 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.

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