Proceedings

DiffLOB: Diffusion Models for Counterfactual Generation in Limit Order Books

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. AI4Tech: AI Enabling Technologies. Pages 6564-6572.

https://doi.org/10.24963/ijcai.2026/730

Abstract

Modern generative models for limit order books (LOBs) can reproduce realistic market dynamics, but they 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 DiffLOB, a regime-conditioned Diffusion model for controllable and counterfactual generation of 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?” We introduce the first systematic evaluation framework for counterfactual LOB generation consisting of three criteria: (1) Realism, measuring how well generated trajectories can reproduce marginal distributions, temporal dependence structure and regime variables; (2) Counterfactual validity, testing whether interventions on future regimes induce consistent changes in the generated LOB dynamics; (3) Counterfactual usefulness, assessing whether synthetic counterfactual trajectories improve downstream prediction of future market regimes.

  1. [Alcaraz and Strodthoff, 2022] Juan Miguel Lopez Alcaraz and Nils Strodthoff. Diffusion-based time series impu- tation and forecasting with structured state space models. Transactions on Machine Learning Research, 2022.
  2. [Berti et al., 2025] Leonardo Berti, Bardh Prenkaj, and Paola Velardi. Trades: Generating realistic market simulations with diffusion models. Proceedings of the Twenty-Eighth European Conference on Artificial Intelligence, 2025.
  3. [Briola et al., 2025a] Antonio Briola, Silvia Bartolucci, and Tomaso Aste. Deep limit order book forecasting: a mi- crostructural guide. Quantitative Finance, 25(7):1101- 1131, 2025.
  4. [Briola et al., 2025b] Antonio Briola, Silvia Bartolucci, and Tomaso Aste. Hlob-information persistence and structure in limit order books. Expert Systems with Applications, 266:126078, 2025.
  5. [Coletta et al., 2021] Andrea Coletta, Matteo Prata, Michele Conti, Emanuele Mercanti, Novella Bartolini, Aymeric Moulin, Svitlana Vyetrenko, and Tucker Balch. Towards realistic market simulations: a generative adversarial net- works approach. In Proceedings of the Second ACM Inter- national Conference on AI in Finance, pages 1-9, 2021.
  6. [Cont et al., 2023] Rama Cont, Mihai Cucuringu, Jonathan Kochems, and Felix Prenzel. Limit order book simulation with generative adversarial networks. Available at SSRN 4512356, 2023.
  7. [Gould et al., 2013] Martin D Gould, Mason A Porter, Stacy Williams, Mark McDonald, Daniel J Fenn, and Sam D Howison. Limit order books. Quantitative Finance, 13(11):1709-1742, 2013.
  8. [Hashimoto et al., 2025] Ryuji Hashimoto, Yuki Tanaka, Takehiro Takayanagi, Zhe Piao, and Kiyoshi Izumi. Norm- salvaged embedding: Improving condition alignment of synthetic time series generation in finance. In Proceedings of the 6th ACM International Conference on AI in Finance, pages 838-846, 2025.
  9. [Ho and Salimans, 2021] Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. NeurIPS 2021 Work- shop on Deep Generative Models and Downstream Appli- cations, 2021.
  10. [Ho et al., 2020] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840-6851, 2020.
  11. [Huang and Polak, 2011] Ruihong Huang and Tomas Polak. Lobster: Limit order book reconstruction system. Avail- able at SSRN 1977207, 2011.
  12. [Hultin et al., 2023] Hanna Hultin, Henrik Hult, Alexandre Proutiere, Samuel Samama, and Ala Tarighati. A gener- ative model of a limit order book using recurrent neural networks. Quantitative Finance, 23(6):931-958, 2023.
  13. [Kingma and Ba, 2015] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. Interna- tional Conference on Learning Representations, 2015.
  14. [Koa et al., 2023] Kelvin JL Koa, Yunshan Ma, Ritchie Ng, and Tat-Seng Chua. Diffusion variational autoencoder for tackling stochasticity in multi-step regression stock price prediction. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management, pages 1087-1096, 2023.
  15. [Li et al., 2025] Junjie Li, Yang Liu, Weiqing Liu, Shikai Fang, Lewen Wang, Chang Xu, and Jiang Bian. Mars: a financial market simulation engine powered by generative foundation model. In The Thirteenth International Con- ference on Learning Representations, 2025.
  16. [Nagy et al., 2023] Peer Nagy, Sascha Frey, Silvia Sapora, Kang Li, Anisoara Calinescu, Stefan Zohren, and Jakob Foerster. 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. In Pro- ceedings of the Fourth ACM International Conference on AI in Finance, pages 91-99, 2023.
  17. [Perez et al., 2018] Ethan Perez, Florian Strub, Harm De Vries, Vincent Dumoulin, and Aaron Courville. Film: Visual reasoning with a general conditioning layer. In Pro- ceedings of the AAAI conference on artificial intelligence, volume 32, 2018.
  18. [Sohl-Dickstein et al., 2015] Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermody- namics. In International conference on machine learning, pages 2256-2265. PMLR, 2015.
  19. [Sohn et al., 2015] Kihyuk Sohn, Honglak Lee, and Xinchen Yan. Learning structured output representation using deep conditional generative models. Advances in neural infor- mation processing systems, 28, 2015.
  20. [Song and Ermon, 2019] Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. Advances in neural information processing systems, 32, 2019.
  21. [Song et al., 2021] Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. International Conference on Learning Representations, 2021.
  22. [Tanaka et al., 2025] Yuki Tanaka, Ryuji Hashimoto, Take- hiro Takayanagi, Zhe Piao, Yuri Murayama, and Kiyoshi Izumi. Cofindiff: Controllable financial diffusion model for time series generation. Proceedings of the Thirty- Fourth International Joint Conference on Artificial Intel- ligenc, 2025. IJCAI
  23. [Tashiro et al., 2021] Yusuke Tashiro, Jiaming Song, Yang Song, and Stefano Ermon. Csdi: Conditional score- based diffusion models for probabilistic time series impu- tation. Advances in Neural Information Processing Sys- tems, 34:24804-24816, 2021.
  24. [van den Oord et al., 2016] Aäron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew W. Senior, and Koray Kavukcuoglu. WaveNet: A Generative Model for Raw Audio. In Proceedings of the 9th ISCA Speech Syn- thesis Workshop (SSW), pages 125-131, 2016.
  25. [Vincent, 2011] Pascal Vincent. A connection between score matching and denoising autoencoders. Neural computa- tion, 23(7):1661-1674, 2011.
  26. [Wang and Ventre, 2024] Zhuohan Wang and Carmine Ven- tre. A financial time series denoiser based on diffusion models. In Proceedings of the 5th ACM International Con- ference on AI in Finance, pages 72-80, 2024.
  27. [Wang and Ventre, 2025] Zhuohan Wang and Carmine Ven- tre. Diffvolume: Diffusion models for volume generation in limit order books. In Proceedings of the 6th ACM In- ternational Conference on AI in Finance, pages 587-595, 2025.
  28. [Zhang et al., 2023] Lvmin Zhang, Anyi Rao, and Maneesh Agrawala. Adding conditional control to text-to-image dif- fusion models. In Proceedings of the IEEE/CVF interna- tional conference on computer vision, pages 3836-3847, 2023.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards