Manuscript Offprint
arXiv:2610.25495Probabilistic Limit Order Book Forecasting with Conditional Diffusion Models
Abstract
Modeling limit order book (LOB) dynamics is central to market forecasting and execution-strategy evaluation. While diffusion models achieve strong empirical performance, existing LOB snapshot models typically lack a learned recurrent encoder and formal statistical guarantees. We introduce LOBGrad, a conditional DDPM framework for probabilistic LOB forecasting that combines an autoregressive RNN encoder with a diffusion-based generator. In particular, we establish an excess-risk oracle inequality for the one-step DDPM noise-prediction objective under exponential mixing and regularity assumptions. We further show that, under contractive dynamics, the dependence on the conditioning-window length can be reduced to a dependence on the latent-state dimension. Experiments on BTC/USDT, GOOGL, and META show that LOBGrad improves on its encoder-free diffusion ablation across all reported queue metrics and obtains competitive results against other baselines. It also reproduces the key stylized facts of LOB microstructure, and yields reasonably calibrated queue-based predictive intervals. A stylized downstream task illustrates the potential value of the generated forecasts.
Keywords
Limit order book, diffusion models, generative models, probabilistic forecasting, market microstructure
Denoising diffusion probabilistic models (DDPMs) [13, 24] have recently demonstrated strong empirical performance in time-series forecasting [6, 21] and can learn highly complex distributions [7, 29]. These capabilities make DDPMs a natural choice for modeling limit
Franklin Liu
Department of Mathematics
University of Chicago
Chicago, Illinois, USA
Lijian Yang
Department of Statistics and Data Science
Tsinghua University
Beijing, China
order book dynamics [1, 4, 27]. Despite their empirical success, existing diffusion-based models of LOB snapshots typically do not explicitly employ a recurrent encoder of past LOB snapshots. Moreover, for the broader class of DDPMs with recurrent encoders, a general theoretical understanding of how conditioning on recurrently encoded histories affects predictive performance remains unexplored.
In this work, we address both limitations by introducing LOB-Grad, an encoder-conditioned DDPM for probabilistic LOB forecasting. Based on the TimeGrad framework [21], LOBGrad integrates an autoregressive RNN encoder with a conditional diffusion-based generator. Specifically, the recurrent encoder maps past LOB snapshots to a lower-dimensional hidden state [12, 22, 23]. This paper makes three contributions. (1) We adapt conditional diffusion forecasting to jointly predict queue depths and mid-price returns from recurrently encoded past LOB snapshots. (2) For the one-step DDPM noise-prediction objective, we establish an excess-risk rate under the stated mixing and regularity assumptions. Under a contractive hidden-state recurrence, the dimension appearing in the encoder-approximation rate is the hidden-state dimension m rather than the flattened conditioning-window dimension . (3) We show that LOBGrad outperforms baseline models on LOB-Bench-inspired distributional metrics [17] using Bitcoin data and U.S. equity data for Alphabet and Meta, and reproduces key microstructure stylized facts. We additionally demonstrate the practical utility of accurately forecasting LOB dynamics in a downstream execution task.
The remainder of this paper is organized as follows. Section 2 reviews related work. Section 3 introduces the LOB representation and our model architecture. Section 4 presents the theoretical results. Section 5 reports the experimental evaluation. Section 6 concludes the paper.
2 Related Work
LOBGrad models the conditional distribution over future LOB states and can generate multiple plausible trajectories. This objective differs from classification-based or point-forecasting methods [20]. Our work extends the literature in the following two respects.
Generative models for LOB dynamics. A growing body of work uses generative models to capture LOB dynamics. Early approaches
These authors contributed equally to this research.
© 2026 The authors.
employ GANs to generate order streams and learn conditional distributions of future LOB snapshots [8, 16]. Notably, [9] propose a Wasserstein GAN that conditions on the current LOB snapshot and models the transition between consecutive LOB snapshots. Recent work has moved beyond GANs. [18] uses a token-level autoregressive S5 model to generate message streams for a LOB simulator, while [3] introduces TRADES, a Transformer-based conditional diffusion model that generates individual orders conditioned on recent order flow. At the snapshot level, [1] represents LOB snapshots as images and apply image-based diffusion. DiffLOB [28] models future LOB trajectories conditional on the observed history and market-regime variables describing trend, volatility, liquidity, and order-flow imbalance. Its conditioning setup is closely related to that of our no-encoder ablation. Despite their empirical success, none of these diffusion-based snapshot models employs an autoregressive recurrent encoder. Their conditioning relies on the current LOB snapshot, image-based spatial structure, or regime-level information rather than on a learned recurrent summary of the past LOB snapshots.
Theory for diffusion models. Statistical theory for diffusion models has established approximation, estimation, and sampling guarantees, mainly for unconditional distribution learning [2, 5, 14, 15, 19]. Recent work also studies conditional diffusion models, including classifier-free guidance and conditional distribution estimation with observed covariates [10, 25]. These results typically assume independent samples and use feedforward networks conditioned on fixed covariates. Thus, they do not directly apply to our setting, where the conditioning variables are learned recurrent summaries of overlapping windows from a dependent time series. We address this problem by bounding the excess risk of the one-step DDPM -prediction objective under exponential mixing.
3 Methodology
3.1 Limit Order Book Representation
We use Level-2 snapshots, where all orders at the same price are aggregated into a single queue size. Unlike Level-3 (message-level) data, Level-2 snapshots do not record individual order arrivals, cancellations, or modifications.
Centered order book. Figure 1 illustrates our representation of Level-2 LOB snapshots. At time t, let and denote the best ask and best bid, respectively; that is, is the lowest price with positive sell volume, while is the highest price with positive buy volume. The corresponding mid-price is . We center the order book at the mid-price rounded to the nearest tick, and retain d price levels on each side of the book. Let denote the actual price at time t and denote the tick size. For , we define as the bid volume at price , stored with a negative sign, and as the ask volume at price , stored with a positive sign. Empty queues are set to zero. The centered queue vector is
Let the return at time be . The centered LOB representation is , where and is the -dimensional queue vector at time .
Preprocessing. We apply the component-wise signed-log transformation to the queue vector, following [9] and extending their transformation to signed queue volumes. We then clip the transformed queue features and the return before training to prevent rare extreme values from destabilizing the optimization process. Throughout the main text and theory,
denotes the transformed LOB representation, consisting of the price return and the transformed queue vector. Given a look-back length s, the observed history at time t is
The forecasting target is the conditional distribution of given .
3.2 Encoder-conditioned DDPM
LOBGrad follows the TimeGrad framework [21] and consists of two learnable components: a time-series encoder and a noise-prediction network . It first compresses the observed past LOB snapshots into a recurrent latent state and then conditions each reverse-diffusion step on this state.
Autoregressive recurrent encoder. The encoder maps the look-back window , defined in (2), to an m-dimensional conditioning state:
We let , where denotes the encoder function class. Here, V and L denote its width and depth, respectively, and bounds its parameters. This class will be used to derive approximation and metric-entropy bounds in Section 4. The encoder can be implemented using an RNN such as an LSTM.
Noise-prediction network. The denoising head is an MLP that takes as input the recurrent latent state , the noised target , and the diffusion step :
We let , where denotes the function class of the noise-prediction network. Here, denotes its depth, denotes its maximal hidden-layer width, and bounds its affine weights and biases. This class will be used for the theoretical analysis in Section 4.
Composite predictor. The complete predictor used in the DDPM is the composition of the autoregressive recurrent encoder and the noise-prediction network:
Its corresponding composite function class is defined as
What is a Limit Order Book, and how do we represent it?
Raw LOB snapshot (Level-2)
Queued volume by price level.
| Bids | Price | Asks |
|---|---|---|
| 100.02 | 900 | |
| best bid | 100.01 | 1450 |
| 100.00 | 1800 | |
| 2100 | 99.99 | best ask |
| 1280 | 99.98 | |
| 950 | 99.97 |
queued volume
at each price
mid-price:
Centered representation used in our model
, tick , center .
| Relative level | Actual price | Bid queue | Ask queue |
|---|---|---|---|
| 100.01 | |||
| 100.00 | |||
| 99.99 | |||
| 99.98 |
Forecasting target
Centered snapshot
preprocessing
componentwise
History window
Target
LOBGrad forecasts the future local queue profile jointly with the price-center movement, rather than only a single price.
Figure 1: Illustration of the raw Level-2 LOB, the centered representation used in our model, and the forecasting target.
For the theoretical analysis in Section 4, we use a coordinate-wise clipped version of , with a clipping level proportional to , to control the growth of the predictor and derive uniform empirical-process bounds.
Forward and reverse diffusion processes. Let . Given a fixed variance schedule satisfying , define and . The forward process generates the noised target at diffusion step as
The reverse process is initialized with and conditioned on the observed history through . For , its transition is
At , we use the reverse mean without adding Gaussian noise and set . The composite predictor is learned to estimate the injected Gaussian noise from the noised target, the diffusion step, and the LOB history. Its statistical properties are analyzed in Section 4.
3.3 Training and inference
Training objective. From a single transformed LOB series, we extract overlapping pairs . For simplicity, we still index them as . Note that here is effectively the original sample size after removing the first observations. For each , draw and , independently of the LOB process, and form . For any network , define empirical and population denoising risks as
LOBGrad estimates the conditional denoiser by empirical risk minimization
In practice, (11) is optimized by stochastic gradient descent (SGD), with one Monte Carlo draw of for each training example at each optimization step.
Inference. Given a new observed LOB history , we generate a one-step forecast by initializing and iterating the reverse update for according to
where for and . The terminal value is a draw from the learned conditional distribution of the next transformed LOB representation. Multi-step paths are obtained by appending generated states to the history window and repeating the same one-step sampler autoregressively. To recover a raw LOB snapshot, we apply the inverse preprocessing.
4 Theoretical Guarantees
Notation. Throughout this section, denotes the sample size, the entrywise sup-norm, and the Euclidean norm. We write if for a constant , and if . The notations and denote the standard and orders up to factors polynomial in . For a vector-valued function on a set , we write .
This section establishes the statistical guarantees for the DDPM -prediction risk. The main proof arguments are summarized in Remark 4.7. Let have the stationary distribution of . Independently of , let , , and define . The oracle noise predictor is
For any measurable predictor with finite risk, the excess risk is . By the projection identity for squared loss,
Thus, consistency for the DDPM objective is equivalent to estimating the conditional mean of the injected noise. Under the assumptions and sampling schemes of existing diffusion convergence results [7, 14], smaller score-estimation error yields tighter bounds on the discrepancy between generated and target distributions, with additional contributions from initialization and discretization errors.
ASSUMPTION 4.1 (STATISTICAL STRUCTURE). The transformed LOB process is stationary and exponentially -mixing. There exists a constant such that almost surely. Let be the history. There exist an -dimensional summary map and a reduced oracle map such that the oracle noise predictor factors as
The map is -Hölder on . For each , is -Hölder on every compact set , with Hölder radius at most polynomial in .
Remark 4.2. The map is an ideal population encoder. It is the low-dimensional state of the history that is sufficient for the one-step DDPM noise-prediction objective. The factorization (15) means that, for the purpose of predicting the injected noise from , the full history enters the oracle only through the summary . The map is the corresponding oracle noise predictor function written in the reduced variables . Note that the bar does not denote averaging. The normalization is not substantive and can be replaced by any bounded range with only fixed changes in constants. For any , write , where is a nonnegative integer and . An -Hölder function has bounded derivatives up to order , and its derivatives of order are -Hölder continuous. Thus, and measure the smoothness of the functions and , respectively.
To handle the unbounded Gaussian perturbation, we restrict attention to the event , where . The contribution of the complement is absorbed into the logarithmic factors.
Define
where . Let and define the following network-complexity quantity
(18)
THEOREM 4.3 (EXCESS RISK FOR ENCODER-CONDITIONED DDPMs). Suppose Assumption 4.1 holds and is a measurable global minimizer of the empirical risk in (11). Then
For fixed s, m, K and recurrent depth L and noise-prediction network depth , .
Remark 4.4. The first two terms in (19) are the stochastic cost of empirical risk minimization under dependence. The last two terms are approximation errors: is the error of the denoising MLP when the ideal summary is supplied, while is the additional error from replacing by a learned recurrent summary.
Standard ReLU approximation bounds give, up to logarithmic factors,
(20)
for fixed encoder depth and head depth schedule .
COROLLARY 4.5 (GENERIC WINDOW RATE). Under Assumption 4.1, choose
Then
Corollary 4.5 treats as a flattened vector in , so the encoder term deteriorates with the look-back dimension. A sharper bound is available when the sufficient summary is generated by a stable -dimensional recurrence. Specifically, let and suppose
(23) where is a bounded linear map, is locally -Hölder, and for some .
COROLLARY 4.6 (HIDDEN-STATE REFINEMENT). Under Assumption 4.1 and (23), suppose estimation is performed over the state-space recurrent subclass in which the map P and the recurrent transition are learned jointly, and let be the resulting ERM. Let denote the analogue of over this subclass. The encoder approximation term becomes
up to logarithmic factors. With
we obtain
The refinement explains the statistical role of the recurrent encoder: under the contractive-state assumptions, the dimension in the encoder approximation rate is the hidden-state dimension m rather than the flattened dimension . This refinement concerns the one-step DDPM -prediction risk. Multi-step LOB paths are obtained by autoregressive rollout and are evaluated empirically in Section 5.
Remark 4.7 (Proof sketch). We first use the projection identity in (14) to express the excess risk as the estimation error of the oracle noise predictor. Although the training pairs contain overlapping history windows, each pair depends on only a fixed number s of consecutive LOB observations. Thus, appending the independently sampled diffusion steps and Gaussian noises preserves exponential mixing, up to constants depending on s. Then, we apply Gaussian localization to control the diffusion noise. A Gaussian tail bound and a union bound show that the complement of this event has negligible probability. On the localized event, the predictor and the squared loss have controlled envelopes. We approximate the composite network class by a finite cover. Unrolling the recurrent encoder over the fixed look-back window reduces its entropy analysis to that of a feedforward network, whose covering bound can be combined with that of the denoising head. We then apply a concentration inequality for exponentially mixing sequences to this finite cover, followed by the standard empirical-risk-minimization inequality, which yields the two stochastic terms in Theorem 4.3. The localization radius and the Gaussian tail remainder contribute only polylogarithmic or asymptotically negligible factors.
For the approximation error, we approximate with the encoder and with the denoising head. The factorization in Equation (15) and the Hölder continuity of separate the resulting error into and , where . This truncation reflects that when the required perturbation bound follows from local Lipschitz continuity. Applying the ReLU approximation bounds in Equation (20) and balancing the approximation and stochastic terms yields Corollary 4.5.
Finally, under the contractive realization in Equation (23), errors across recurrent updates form a bounded geometric series. The encoder approximation therefore reduces to approximating an m-dimensional transition map rather than a function on the flattened -dimensional history. Substituting Equation (24) and balancing the terms yields Corollary 4.6.
5 Experimental Results
Datasets. We evaluate LOBGrad on three Level-2 LOB datasets: BTC/USDT from Binance and GOOGL and META from Databento. We focus on BTC/USDT, as Bitcoin is a highly liquid cryptocurrency, and its continuous trading provides a dense high-frequency sample without scheduled overnight closures. In this section, we provide the most detailed analysis for BTC/USDT and additional results for GOOGL and META to assess whether the results extend to U.S. equities. The BTC/USDT dataset consists of snapshots collected at 5-second intervals from the Binance public REST endpoint between October 1 and October 21, 2023. It contains 308,826 snapshots and is split chronologically into 15 training days, 2 validation days, and 4 test days. We aggregate the first 100 raw price levels into bins per side using a grid width of USDT, giving in (1). This choice of and covers approximately 98% of the observed mid-price changes between consecutive snapshots. The GOOGL and META datasets use Databento's MBP-10 schema and cover July 1–23, 2026. We retain the same model architecture and hyperparameters across all three datasets and refit the model separately on each dataset .
Ablations and baselines. We compare LOBGrad against three ablations (LG-Q, LG-R, and LG-NE), four external baselines (CGAN, PTM, TransLOB, and DeepLOB), and two classical statistical models (Hawkes and Poisson). LG-Q and LG-R use queue-only and return-only targets, respectively, while LG-NE removes the recurrent encoder and conditions on the flattened history of dimension , isolating the effect of recurrent summarization. The external baselines are a conditional Wasserstein GAN (CGAN) [9]; PTM, our re-implementation of the image-format snapshot diffusion model proposed by Backhouse et al. [1], for which public code is unavailable; TransLOB [26], a transformer-based model; and DeepLOB [30]. We adapt TransLOB and DeepLOB from their original classification setting [20] to our probabilistic forecasting framework.
Experimental setup. Hyperparameters for LOBGrad and the learnable baselines are selected on the validation split using the Optuna Python package with median pruning. The selected model uses a look-back length of s = 100, a one-layer LSTM with hidden size m = 151, a 255-unit noise MLP, and a 32-dimensional diffusion-step embedding. We use K = 102 diffusion steps with a linear schedule from to . The model is trained with the Huber noise-prediction loss using Adam. The empirical study covers three components: distributional generation quality evaluated on 500 held-out windows with 100-step contexts, 20-step forecast horizons, and 100 autoregressive rollouts per window; an analysis of return stylized facts; and a downstream limit-order execution task. The models are trained on a single NVIDIA RTX 5080 GPU. LOBGrad has 248,181 parameters and generates 100 paths at one-step and 20-step forecast horizons in 0.038 and 0.37 seconds, respectively, on a single Apple M4 CPU. Both runtimes are below the 5-second
The code is available at https://github.com/junyuchen-econ/LOBGrad.
snapshot interval, allowing forecasts to be regenerated at every snapshot without dedicated hardware.
5.1 Generation Quality
Following LOB-Bench [17], we report Wasserstein-1 distances for best-level total queue volume, order-book imbalance, and the marginal return distribution. We complement these with queue-profile MAE, queue and absolute-return ACF MAE, CRPS, and calibration coverage rate.
On BTC/USDT, Table 1 shows that LOBGrad achieves the best score on four of the five queue metrics. The only exception is Queue ACF MAE, where the queue-only ablation LG-Q is marginally better, suggesting a small trade-off between modeling queue-return dependence and preserving short-lag queue autocorrelation. On return metrics, LG-R performs best on return Wasserstein and return CRPS, as expected from its dedicated return-only target. Nevertheless, LOBGrad improves over the encoder-free diffusion baseline LG-NE on all queue metrics across all assets. Since LG-NE keeps the diffusion objective fixed but removes the recurrent summary , the gap in queue profile, ACF, and CRPS supports the empirical value of recurrent summarization. This observation is consistent with Corollary 4.6. However, note that this is not a formal test of the asymptotic bound, since Table 1 reports rollout metrics rather than the population DDPM -risk.
Table 1 also reports results for GOOGL and META, using the same architecture and hyperparameters as the BTC/USDT model. On both equities, LOBGrad achieves the best score on three of the five queue metrics, which generalizes the BTC/USDT result to a different market and tick regime without re-tuning.
Figure 2 illustrates the same conclusion at the path level. The predictive bands from LOBGrad cover the realized best-bid queue and mid-price trajectory in a held-out window. Table 2 reports direct interval-calibration diagnostics. We use 500 rollouts per window to reduce Monte Carlo error. The 90% intervals are close to nominal for queue-derived quantities, with empirical coverages 0.876 for all queue dimensions, 0.892 for best-level volume, and 0.900 for orderbook imbalance. Return coverage is lower at 0.844, indicating that the model captures queue uncertainty more reliably than extreme return variation.
Figure 3 shows the marginal distributions of queue size at the first two bid and ask levels, obtained by pooling samples over all 500 held-out windows and all 20 forecast steps. LOBGrad closely matches the empirical marginals.
5.2 Stylized Facts
Figure 4 evaluates whether LOBGrad reproduces standard stylized facts of price series on BTC/USDT. We compare real and generated successive-snapshot mid-price changes using the marginal return distribution, the return ACF, and the absolute-return ACF. Generated samples are obtained from 100 autoregressive rollouts for each of the 500 evaluation windows. LOBGrad closely matches the empirical return distribution, captures the small first-lag autocorrelation in returns, and partially recovers the short-horizon dependence in absolute returns.

Figure 2: Sample best-bid queue (top) and mid-price (bottom) trajectories from LOBGrad with 50% and 90% predictive intervals on a held-out test window.

Figure 3: Marginal distributions of generated and real queue sizes at the top two book levels: bid (left) and ask (right), level 1 (top row) and level 2 (bottom row).

Figure 4: Stylized facts of 5-second BTC/USDT returns: real held-out data (black) versus LOBGrad samples (blue). Return distribution (left), the ACF of returns (middle), and the ACF of absolute returns (right).
5.3 Downstream Task
Beyond distributional metrics, we test whether forecasts can be used for execution decisions. We consider a stylized single-shot sell problem. At the start of each test window, an agent must sell a quantity Q of BTC. The order size Q is fixed across windows within a run and is twice the training-set mean cumulative bid depth over the first three grid bins. The action denotes an immediate market sell, while posts a passive sell limit order at , where USDT, is the mid-price at order arrival, and waits up to 20 future snapshots. We
Table 1: Distributional metrics over a 20-step forecast horizon across 500 held-out windows. Lower values are better. Bold marks the best value per row. NE = no encoder; Q = queue only; R = return only. Dashes indicate metrics that are not applicable.
| Metric | LOBGrad | LG-NE | LG-Q | LG-R | CGAN | PTM | TransLOB | DeepLOB | Hawkes | Poisson |
|---|---|---|---|---|---|---|---|---|---|---|
| BTC/USDT | ||||||||||
| Queue | ||||||||||
| L1 volume Wasserstein | 0.100 | 0.104 | 0.135 | – | 0.197 | 0.126 | 0.201 | 0.176 | 0.266 | 0.330 |
| OB imbalance Wasserstein | 0.095 | 0.107 | 0.096 | – | 0.196 | 0.107 | 0.203 | 0.172 | 0.219 | 0.280 |
| Queue profile MAE | 0.037 | 0.109 | 0.049 | – | 0.044 | 0.140 | 0.068 | 0.082 | 0.098 | 0.100 |
| Queue ACF MAE | 0.026 | 0.081 | 0.024 | – | 0.034 | 0.039 | 0.075 | 0.072 | 0.225 | 0.219 |
| CRPS (queue) | 0.261 | 0.276 | 0.262 | – | 0.284 | 0.309 | 0.285 | 0.284 | 0.341 | 0.312 |
| Returns | ||||||||||
| Return Wasserstein | 0.097 | 0.211 | – | 0.085 | 0.280 | 0.197 | 0.258 | 0.243 | – | – |
| Absolute returns ACF MAE | 0.011 | 0.008 | – | 0.008 | 0.017 | 0.012 | 0.013 | 0.014 | – | – |
| CRPS (returns) | 1.719 | 1.760 | – | 1.694 | 1.837 | 1.786 | 1.912 | 1.855 | – | – |
| GOOGL | ||||||||||
| Queue | ||||||||||
| L1 volume Wasserstein | 0.373 | 0.406 | 0.369 | – | 0.461 | 0.528 | 0.519 | 0.418 | 0.492 | 0.553 |
| OB imbalance Wasserstein | 0.230 | 0.367 | 0.292 | – | 0.555 | 0.245 | 0.146 | 0.172 | 0.426 | 0.525 |
| Queue profile MAE | 0.091 | 0.098 | 0.097 | – | 0.101 | 0.111 | 0.146 | 0.108 | 0.340 | 0.349 |
| Queue ACF MAE | 0.024 | 0.044 | 0.036 | – | 0.353 | 0.035 | 0.045 | 0.046 | 0.362 | 0.349 |
| CRPS (queue) | 0.536 | 0.547 | 0.543 | – | 0.675 | 0.601 | 0.593 | 0.563 | 1.337 | 1.318 |
| Returns | ||||||||||
| Return Wasserstein | 0.049 | 0.061 | – | 0.049 | 0.123 | 0.046 | 0.045 | 0.044 | – | – |
| Absolute returns ACF MAE | 0.012 | 0.011 | – | 0.006 | 0.168 | 0.016 | 0.013 | 0.013 | – | – |
| CRPS (returns) | 4.307 | 4.397 | – | 4.315 | 5.445 | 4.395 | 4.372 | 4.358 | – | – |
| META | ||||||||||
| Queue | ||||||||||
| L1 volume Wasserstein | 0.204 | 0.208 | 0.424 | – | 0.457 | 0.338 | 0.370 | 0.376 | 0.640 | 0.658 |
| OB imbalance Wasserstein | 0.128 | 0.232 | 0.261 | – | 0.683 | 0.322 | 0.131 | 0.129 | 0.593 | 0.643 |
| Queue profile MAE | 0.149 | 0.188 | 0.177 | – | 0.154 | 0.145 | 0.154 | 0.157 | 0.332 | 0.341 |
| Queue ACF MAE | 0.044 | 0.054 | 0.034 | – | 0.238 | 0.044 | 0.063 | 0.053 | 0.296 | 0.257 |
| CRPS (queue) | 0.778 | 0.784 | 0.810 | – | 1.049 | 0.900 | 0.844 | 0.847 | 1.598 | 1.587 |
| Returns | ||||||||||
| Return Wasserstein | 0.092 | 0.054 | – | 0.068 | 0.327 | 0.327 | 0.264 | 0.337 | – | – |
| Absolute returns ACF MAE | 0.010 | 0.010 | – | 0.012 | 0.133 | 0.017 | 0.009 | 0.010 | – | – |
| CRPS (returns) | 3.499 | 3.535 | – | 3.493 | 4.929 | 3.758 | 3.654 | 3.723 | – | – |
Table 2: Calibration summary on BTC/USDT test windows using M = 500 rollouts per window and a 20-step forecast horizon. We report empirical coverages for nominal 50% and 90% central intervals, and the mean width of the 90% interval.
| Target | 50% coverage | 90% coverage | Mean 90% width |
|---|---|---|---|
| Returns | 0.630 | 0.844 | 8.684 |
| Queues (2d = 10) | 0.442 | 0.876 | 6.213 |
| Best-level volume | 0.483 | 0.892 | 11.034 |
| OB imbalance | 0.479 | 0.900 | 1.243 |
take the offset as . The order is treated as passively filled if the mid-price reaches the limit price or if the queue at the corresponding ask level is sufficiently depleted. Otherwise, it is executed at the final snapshot by walking the bid book. For each window, each model draws 100 autoregressive rollouts, simulates each candidate offset on each rollout, and selects the offset with the lowest mean simulated implementation shortfall IS = , where is the realized average fill price. We report mean IS and CVaR (IS), the average shortfall over the worst 5% of windows. The strategies for evaluation are: (i) static rules with fixed j; (ii) model-optimized selection and (iii) an oracle policy that uses the realized future path and is therefore an ex-post, non-implementable lower bound.
Table 3 shows the mean–tail trade-off in this execution problem. The immediate market sell is always completed and therefore has the lowest non-oracle tail risk, but it pays the spread and has poor mean IS. Passive static offsets improve the mean when filled, but incur the cost of a terminal market order when unfilled. Among static rules, j = 2 attains the lowest mean IS at 0.56 USDT. The LOBGrad-optimized further reduces mean IS to 0.03 USDT and lowers CVaR relative to the best-mean static rule, from 47.86 to 41.69 USDT. LOBGrad also outperforms CGAN, LG-NE, PTM, and DeepLOB on both metrics, while improving the mean IS compared to TransLOB at the cost of a slightly higher CVaR. This indicates that the generated rollouts contain useful information for selecting between aggressive and passive execution in individual windows.
6 Conclusion
In this paper, we introduce LOBGrad, an encoder-conditioned DDPM that combines an autoregressive recurrent encoder with a conditional noise-prediction network for probabilistic LOB forecasting. Across BTC/USDT, GOOGL, and META, LOBGrad improves distributional forecasting performance, reproduces key microstructure stylized facts, and provides practical value in a
Table 3: Limit-order execution benchmark across 500 test windows, averaged over 5 seeds. IS per share in USDT (lower is better). Bold marks the best non-oracle value in each column.
| Strategy | Mean IS | CVaR95 (IS) |
|---|---|---|
| j = -1 (Market) | 5.89 | 8.45 |
| j = 0 | 1.75 | 38.90 |
| j = 1 | 0.75 | 43.42 |
| j = 2 | 0.56 | 47.86 |
| j = 3 | 2.93 | 51.51 |
| CGAN-optimized | 0.19 | 47.35 |
| LG-NE-optimized | 0.28 | 43.24 |
| LOBGrad-optimized | 0.03 | 41.69 |
| PTM-optimized | 0.09 | 42.51 |
| TransLOB-optimized | 1.14 | 41.67 |
| DeepLOB-optimized | 0.59 | 41.92 |
| Oracle | -6.73 | 7.07 |
downstream execution task. The theoretical analysis provides a one-step excess-risk bound for a recurrently conditioned DDPM under the stated mixing, smoothness, and network-class assumptions. This result motivates recurrent conditioning: under a stable contractive latent-state dynamics, the encoder approximation error term depends on the hidden-state dimension m rather than the flattened history dimension . Future work will extend these guarantees to multi-step autoregressive forecasts and investigate recurrently conditioned diffusion models across broader market settings.
References
[1] Alfred Backhouse, Kang Li, Jakob Foerster, Anisoara Calinescu, and Stefan Zohren. 2025. Painting the Market: Generative Diffusion Models for Financial Limit Order Book Simulation and Forecasting. arXiv:2509.05107 [q-fin.TR] doi:10.48550/arXiv.2509.05107
[2] Joe Benton, Valentin De Bortoli, Arnaud Doucet, and George Deligiannidis. 2024. Nearly d-Linear Convergence Bounds for Diffusion Models via Stochastic Localization. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=r5njV3BsuD
[3] Leonardo Berti, Bardh Prenkaj, and Paola Velardi. 2025. TRADES: Generating Realistic Market Simulations with Diffusion Models. In ECAI 2025 (Frontiers in Artificial Intelligence and Applications, Vol. 413). IOS Press, 3703–3710. doi:10.3233/FAIA251249
[4] Jean-Philippe Bouchaud, Julius Bonart, Jonathan Donier, and Martin Gould. 2018. Trades, Quotes and Prices: Financial Markets Under the Microscope. Cambridge University Press. doi:10.1017/9781316659335
[5] Minshuo Chen, Kaixuan Huang, Tuo Zhao, and Mengdi Wang. 2023. Score Approximation, Estimation and Distribution Recovery of Diffusion Models on Low-Dimensional Data. In Proceedings of the 40th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 202). PMLR, 4672–4712.
[6] Minshuo Chen, Song Mei, Jianqing Fan, and Mengdi Wang. 2024. Opportunities and Challenges of Diffusion Models for Generative AI. National Science Review 11, 12 (2024), nwae348. doi:10.1093/nsr/nwae348
[7] Sitan Chen, Sinho Chewi, Jerry Li, Yuanzhi Li, Adil Salim, and Anru R. Zhang. 2023. Sampling is as Easy as Learning the Score: Theory for Diffusion Models with Minimal Data Assumptions. In International Conference on Learning Representations (ICLR).
[8] Andrea Coletta, Matteo Prata, Michele Conti, Emanuele Mercanti, Novella Bartolini, Aymeric Moulin, Svitlana Vyetrenko, and Tucker Balch. 2021. Towards Realistic Market Simulations: A Generative Adversarial Networks Approach. In Proceedings of the Second ACM International Conference on AI in Finance. 1–9.
[9] Rama Cont, Mihai Cucuringu, Jonathan Kochems, and Felix Prenzel. 2023. Limit Order Book Simulation with Generative Adversarial Networks. SSRN Electronic Journal (2023). https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4512356
[10] Hengyu Fu, Zhuoran Yang, Mengdi Wang, and Minshuo Chen. 2024. Unveil Conditional Diffusion Models with Classifier-Free Guidance: A Sharp Statistical Theory. arXiv:2403.11968 [cs.LG] doi:10.48550/arXiv.2403.11968
[11] Martin D Gould, Mason A Porter, Stacy Williams, Mark McDonald, Daniel J Fenn, and Sam D Howison. 2013. Limit order books. Quantitative Finance 13, 11 (2013), 1709–1742.
[12] Joshua Hanson and Maxim Raginsky. 2020. Universal Simulation of Stable Dynamical Systems by Recurrent Neural Nets. In Proceedings of the 2nd Conference on Learning for Dynamics and Control (Proceedings of Machine Learning Research, Vol. 120). PMLR, 384–392.
[13] Jonathan Ho, Ajay Jain, and Pieter Abbeel. 2020. Denoising Diffusion Probabilistic Models. In Advances in Neural Information Processing Systems, Vol. 33. 6840–6851. https://proceedings.neurips.cc/paper/2020/hash/4c5bcfec8584af0d967f1ab10179ca4b-Abstract.html
[14] Holden Lee, Jianfeng Lu, and Yixin Tan. 2023. Convergence of Score-Based Generative Modeling for General Data Distributions. In Proceedings of the 34th International Conference on Algorithmic Learning Theory (Proceedings of Machine Learning Research, Vol. 201). PMLR, 946–985. https://proceedings.mlr.press/v201/lee23a.html
[15] Gen Li and Yuling Yan. 2025. Convergence Theory for Diffusion Probabilistic Models under Minimal Assumptions. Journal of Machine Learning Research 26, 292 (2025), 1–55. https://www.jmlr.org/papers/v26/25-0272.html
[16] Junyi Li, Xintong Wang, Yaoyang Lin, Arunesh Sinha, and Michael Wellman. 2020. Generating Realistic Stock Market Order Streams. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 34. 727–734.
[17] Peer Nagy, Sascha Frey, Kang Li, Bidipta Sarkar, Svitlana Vyetrenko, Stefan Zohren, Ani Calinescu, and Jakob Foerster. 2025. LOB-Bench: Benchmarking Generative AI for Finance – an Application to Limit Order Book Data. In Proceedings of the 42nd International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 267). PMLR, 45437–45460. https://proceedings.mlr.press/v267/nagy25a.html
[18] Peer Nagy, Sascha Frey, Silvia Sapora, Kang Li, Anisoara Calinescu, Stefan Zohren, and 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. In Proceedings of the Fourth ACM International Conference on AI in Finance. 91–99.
[19] Kazusato Oko, Shunta Akiyama, and Taiji Suzuki. 2023. Diffusion Models are Minimax Optimal Distribution Estimators. In Proceedings of the 40th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 202). PMLR, 26517–26582.
[20] Matteo Prata, Giuseppe Masi, Leonardo Berti, Viviana Arrigoni, Andrea Coletta, Irene Cannistraci, Svitlana Vyetrenko, Paola Velardi, and Novella Bartolini. 2024. LOB-Based Deep Learning Models for Stock Price Trend Prediction: A Benchmark Study. Artificial Intelligence Review 57 (2024), 116. doi:10.1007/s10462-024-10715-4
[21] Kashif Rasul, Calvin Seward, Ingmar Schuster, and Roland Vollgraf. 2021. Autoregressive Denoising Diffusion Models for Multivariate Probabilistic Time Series Forecasting. In Proceedings of the 38th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 139). PMLR, 8857–8868. https://proceedings.mlr.press/v139/rasul21a.html
[22] Anton Maximilian Schäfer and Hans-Georg Zimmermann. 2007. Recurrent Neural Networks Are Universal Approximators. International Journal of Neural Systems 17, 4 (2007), 253–263. doi:10.1142/S0129065707001111
[23] Justin Sirignano and Rama Cont. 2019. Universal features of price formation in financial markets: perspectives from deep learning. Quantitative Finance 19, 9 (2019), 1449–1459. doi:10.1080/14697688.2019.1622295
[24] Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. 2021. Score-Based Generative Modeling through Stochastic Differential Equations. In International Conference on Learning Representations (ICLR).
[25] Rong Tang, Lizhen Lin, and Yun Yang. 2025. Conditional Diffusion Models Are Minimax-Optimal and Manifold-Adaptive for Conditional Distribution Estimation. In International Conference on Learning Representations. https://openreview.net/forum?id=NltQraRnbW
[26] James Wallbridge. 2020. Transformers for Limit Order Books. arXiv:2003.00130 [q-fin.CP] doi:10.48550/arXiv.2003.00130
[27] Zhuohan Wang and Carmine Ventre. 2025. DiffVolume: Diffusion Models for Volume Generation in Limit Order Books. In Proceedings of the 6th ACM International Conference on AI in Finance. 587–595. doi:10.1145/3768292.3770413
[28] Zhuohan Wang and Carmine Ventre. 2026. DiffLOB: Diffusion Models for Counterfactual Generation in Limit Order Books. In Proceedings of the 35th International Joint Conference on Artificial Intelligence (IJCAI-ECAI 2026). https://arxiv.org/abs/2602.03776
[29] Yifeng Yu and Lu Yu. 2026. Diffusion Models with Heavy-Tailed Targets: Score Estimation and Sampling Guarantees. arXiv:2601.06715 [math.ST] doi:10.48550/ arXiv.2601.06715
[30] Zihao Zhang, Stefan Zohren, and Stephen Roberts. 2019. DeepLOB: Deep Convolutional Neural Networks for Limit Order Books. IEEE Transactions on Signal Processing 67, 11 (2019), 3001–3012. doi:10.1109/TSP.2019.2907260