Learning the market: machine learning and generative modelling for limit order books
Year: 2025
Type: dissertation
Abstract: This integrated thesis advances the application of machine learning (ML) to limitorder book (LOB) markets, a central mechanism of financial market microstructure. The work spans reinforcement learning (RL) for trading and inventory management, hardware-accelerated LOB simulation, deep generative modelling of order-flow dynamics, and standardised evaluation of generative market models. Together, these components constitute an end-to-end pipeline for constructing, training, and assessing intelligent agents and generative world models in high-frequency financial environments. The thesis is structured around four research papers, each addressing a distinct challenge in this pipeline. 1. Reinforcement learning for trading and inventory management. We formulate intraday trading within a LOB as a Markov decision process and demonstrate that deep RL can transform directional alpha signals into eective execution strategies. An agent trained in a replay-based environment substantially outperforms heuristic baselines in both execution quality and inventory control. 2. JAX-LOB: a hardware-accelerated, parallelisable LOB simulator. To enable large-scale simulation and RL training, we develop JAX-LOB, a fully parallelisable LOB simulation engine built in the JAX ecosystem. Supporting thousands of concurrent simulations on GPUs, JAX-LOB achieves up to 75◊ speed-ups over conventional simulators, providing the computational substrate for scalable policy learning and rapid experimentation. 3. LOB-S5: a deep autoregressive generative model for LOB dynamics. Moving beyond replay-based simulation, we introduce LOB-S5, the first end-to-end deep autoregressive state-space model for generating realistic LOB message sequences. Using a custom encoder and structured state-space layers, LOB-S5 captures long-range dependencies in order flow and achieves stateof-the-art out-of-sample performance, establishing a foundation for black-box market simulation and RL environment generation. 4. LOB-Bench: a benchmarking suite for generative LOB models. To address the absence of standardised evaluation protocols, we propose LOBBench, the first comprehensive benchmarking framework for generative LOB models. LOB-Bench assesses both unconditional and conditional distributional properties — including market spread, queue depth, and price impact response functions — and is released as an open-source Python package to promote reproducibility and community adoption. The principal contributions of this thesis to the scientific literature are as follows. (i) It provides the first systematic demonstration that deep RL, when combined with structured LOB representations and synthetic alpha signals, can learn execution policies that meaningfully outperform rule-based baselines in realistic microstructure settings. (ii) It introduces a GPU-native, massively parallel LOB simulation architecture that reduces the computational barrier to RL research in financial microstructure by up to two orders of magnitude. (iii) It establishes deep autoregressive state-space modelling as a viable paradigm for generative modelling of high-frequency order flow, achieving state-of-the-art realism in a previously unsolved sequence generation task. (iv) It proposes and releases the first standardised, open-source evaluation framework for generative LOB models, enabling rigorous and reproducible comparison across methods. Collectively, these contributions lay the groundwork for future research in multi-agent market simulation, generative world models for finance, and the design of intelligent trading systems.
Author: Nagy, P
Institution: University of Oxford
Language: English
Subfield: Finance
Domain: Social Sciences
Open Access status: green
OpenAlex ID: W7168343393
