Daily AI Trading Paper

Daily AI Trading Paper

2026-10-20

Archived
2026-10-20

Probabilistic Limit Order Book Forecasting with Conditional Diffusion Models

Junyu Chen, Franklin Liu, Moshu Xu, Lijian Yang

arXiv:2610.25495v1

Limit order books sit at the center of modern electronic trading. They tell us, level by level, how much buying and selling interest is waiting just off the current price. For a trader, that matters because the shape of the book reveals local liquidity, the cost of getting filled, and the short-horizon price impact of aggressive orders. For an execution algorithm, it matters because the book helps determine whether to submit, cancel, or cross the spread. And for a market researcher, it matters because the book is one of the richest high-frequency signals we have for forecasting and for simulating how markets might react under different conditions. This paper is about forecasting those limit order book dynamics probabilistically, rather than making a single point estimate. That distinction is important. In practice, the next book state is not deterministic. There are many plausible futures, and a good model should represent that uncertainty, not just output one average outcome. That is especially true at short horizons, where microstructure noise is high and where execution decisions depend on the full distribution of outcomes, not only the most likely one. The authors build on a recent family of models called denoising diffusion probabilistic models, or DDPMs. Diffusion models have become popular because they learn to generate complex distributions by starting from noise and iteratively denoising it. In time series, and increasingly in finance, they have shown strong empirical performance because they can represent multimodal, highly nonlinear conditional distributions. But the paper points out a gap in existing diffusion-based limit order book models: most snapshot-level approaches do not use a learned recurrent encoder of the past book history. Instead, they condition on the current snapshot, on image-like structure, or on regime variables. That can be useful, but it does not explicitly compress a sequence of past order book states into a latent memory of market dynamics. So the core idea here is to combine two pieces. First, an autoregressive recurrent encoder, such as an RNN or LSTM, reads a window of past LOB snapshots and compresses them into a latent state. Second, a conditional diffusion generator uses that latent state to produce a probabilistic forecast of the next book state. The model is called LOBGrad, and it is framed as a TimeGrad-style architecture adapted to limit order books. To understand the data representation, the paper uses Level-2 snapshots. That means the book is aggregated by price level, not by individual order messages. At each time step, the authors center the book around the mid-price, rounded to the nearest tick, and keep a fixed number of levels on both sides. They include signed queue volumes: bids are stored with negative sign and asks with positive sign. They also include the return, defined as the price change from the previous step. So the target state is a vector containing both the return and the transformed queue profile. There is also a preprocessing step that matters in practice. They apply a signed-log transform to the queue sizes, which is a common way to reduce the influence of very large volumes while preserving sign and relative structure. Then they clip transformed queue features and returns to avoid rare extreme values destabilizing training. This is a sensible choice in high-frequency finance, where raw variables can be heavy-tailed and where a few outliers can dominate optimization. The forecasting problem is set up conditionally. Given a look-back window of past transformed LOB states, the model learns the conditional distribution of the next state. The recurrent encoder turns that entire history into a lower-dimensional hidden state. Then the diffusion component takes a noised version of the target state, the diffusion step index, and the hidden state, and learns to predict the injected Gaussian noise. That is the standard DDPM training objective: instead of directly predicting the next book state, the network learns how to denoise partially corrupted versions of it. At inference time, the model starts from pure Gaussian noise and repeatedly applies the learned reverse diffusion steps, conditioned on the encoded history, until it produces a sample from the estimated next-step distribution. Because this is generative, it can produce multiple plausible future books from the same starting history. The authors also note that multi-step forecasts can be obtained autoregressively by appending generated states back into the input window and repeating the one-step sampler. A major contribution of the paper is theoretical. The authors provide an excess-risk oracle inequality for the DDPM noise-prediction objective under exponential mixing and regularity assumptions. In plain language, they show that the learned denoiser can be analyzed statistically even though the data come from a dependent time series rather than from independent samples. That is not trivial, because order book snapshots overlap in time and are strongly dependent. They also show that if the hidden-state recurrence is contractive, the dependence of the approximation rate can be reduced from the full flattened history dimension to the latent-state dimension. That is an important conceptual result: if the recurrent encoder is well behaved, the effective complexity of the conditioning history is governed by the size of the memory state, not by the raw window length times feature dimension. The paper also connects the DDPM objective to conditional mean estimation of the injected noise. That helps clarify what the training objective is doing statistically: if the model learns to predict the diffusion noise well, it is effectively learning the conditional score structure needed to reconstruct the next-step distribution. This theoretical section is not a trading result per se, but it gives the model a statistical foundation that many applied forecasting papers do not have. On the empirical side, the authors test the model on BTC/USDT, GOOGL, and META. So the evaluation spans crypto and U.S. equities, which is useful because those markets have very different microstructure characteristics. They compare LOBGrad against baselines, including an encoder-free diffusion ablation that is especially relevant because it isolates the value of the recurrent encoder. They also compare against other benchmark models in the spirit of LOB-Bench-style evaluation. The reported metrics are queue-based distributional metrics, rather than only point-forecast errors. That is a good choice for this problem, because a model can get a low average error while still failing to reproduce the book’s shape or its uncertainty. According to the paper, LOBGrad improves on its encoder-free diffusion ablation across all reported queue metrics, and is competitive with the other baselines. The key message is that the recurrent history encoder adds value beyond diffusion alone. The authors also check whether the generated samples reproduce stylized facts of limit order books. That is an important sanity test. In market microstructure, you want the synthetic or forecasted book to look like a real book in the ways that matter: queue structure, imbalance patterns, and other characteristic regularities. The paper says LOBGrad reproduces the key stylized facts of LOB microstructure, which suggests the generated distributions are not just numerically close but structurally plausible. Another useful result is calibration. The model yields reasonably calibrated queue-based predictive intervals. In other words, when it says there is a certain probability range for future queue sizes, that uncertainty is not wildly miscalibrated. For trading and execution, calibration matters a lot. A forecast that is sharp but overconfident can be dangerous, because execution decisions based on bad uncertainty estimates can lead to poor fills or unnecessary market impact. Finally, the paper includes a stylized downstream execution task to show potential practical value. The point is not that the model is already a production-ready execution engine, but that better probabilistic forecasts of book dynamics can help in a task where the trader must decide under uncertainty. That is the right kind of downstream demonstration, because it connects forecasting quality to a market-relevant decision problem. There are, of course, limitations to keep in mind. First, the model is still evaluated on Level-2 snapshots, so it abstracts away message-level event dynamics such as individual order arrivals, cancellations, and modifications. That means it captures book states, but not the full event stream. Second, diffusion-based forecasting can be computationally heavier than simpler point-forecasting methods, especially at inference time because sampling requires multiple reverse steps. Third, the theoretical guarantees rely on assumptions such as exponential mixing and contractive dynamics, which are useful for analysis but may only approximately hold in real markets. And fourth, while the paper reports competitive performance and calibration, the downstream task is stylized, so the next step would be a more extensive trading or execution study with realistic costs, latency, and market impact. Overall, the paper’s main contribution is to show that a recurrently conditioned diffusion model can be a strong and statistically grounded way to forecast limit order books. The practical takeaway is that if you want probabilistic next-book forecasts that respect microstructure structure and uncertainty, encoding the recent history with a recurrent state before diffusion decoding appears to be a meaningful improvement over encoder-free conditioning. The broader research message is that generative models for trading data become much more compelling when they are paired with the right inductive bias for temporal dependence, and when they come with theory that explains what the model is actually learning.