Manuscript Offprint
arXiv:2610.22727OrderFlowDiT: Transport-Regularized Diffusion Transformer for Probabilistic Limit-Order Supply Forecasting
Abstract
We study the conditional distribution of limit-order volume submitted over the next five minutes, given the current order book and recent order flow. The task requires capturing price placement, total volume, and predictive uncertainty jointly. Coordinate-wise diffusion losses do not explicitly account for price displacement, while normalizing fields to unit mass removes information about total volume. Agreement on selected summary statistics also does not establish fidelity to the joint field distribution. We introduce OrderFlowDiT, a conditional Diffusion Transformer for unnormalized bid and ask volume-at-price fields, trained with an unbalanced optimal-transport (UOT) auxiliary loss. We also develop a full-field evaluation framework that combines a transport cost sensitive to price placement and total volume with proper scoring rules and calibration diagnostics. In the primary comparison on 1,950 validation conditions across 30 U.S. equities, adding UOT reduces full-field transport cost by 45.8% and the transport energy score by 26.1% relative to training with mean squared error alone. Both measures improve for every stock. These findings support incorporating price geometry and volume into generative modeling, with field accuracy and predictive uncertainty evaluated together.
Keywords
limit order book, world model, generative models, optimal transport, evaluation, market microstructure
Forecasting future order supply requires characterizing uncertainty in both submitted volume and its price allocation. Empirical order-flow analysis documents interdependence between order sizes and arrival dynamics [25]. A single expected submission profile cannot express this uncertainty: two predictive distributions
Tucker Balch
Emory University
Atlanta, Georgia, USA
can have the same mean field while assigning different probabilities to low submitted volume within a given price region. This motivates representing forecasts as predictive distributions, rather than point predictions alone [9]. Moreover, marginal distributions at individual prices do not determine how volumes vary jointly across prices and sides; constructing multivariate forecast scenarios requires accounting for dependence as well as the marginal distributions [27]. Total-volume forecasts omit price allocation, whereas unit-mass price profiles discard absolute volume. We therefore seek a conditional joint distribution over unnormalized bid and ask volume-at-price fields, allowing total side volumes, price-localized submissions, and bid-ask submission asymmetries to be examined within the same generated scenarios.
Specifically, we model the conditional joint distribution of bid and ask limit-order submission fields over the next five minutes, given the current LOB snapshot and recent order flow. Using both book state and flow history is consistent with queue-reactive Hawkes models that explicitly combine these sources of information [34]. Each field coordinate records the cumulative volume of new limit orders submitted on one side within a price bin during the forecast window. We fix the price grid relative to the mid-price observed at the forecast origin and retain absolute submitted volume without unit-mass normalization. Unlike message-level generators coupled to a book simulator [19], our target aggregates submissions without retaining event order. Since order-book dynamics also involve cancellations and executions [13], the submission fields alone do not determine the subsequent book state or remaining liquidity. We therefore position this conditional order-supply model as a potential component of a financial world model, rather than as a complete simulator of order-book evolution.
Learning these submission fields calls for an objective sensitive to both price displacement and differences in submitted volume. We use a conditional diffusion model with a denoising mean squared error (MSE) objective [12]. This objective penalizes errors coordinate-wise, without explicitly assigning costs to displacement between price levels. Optimal transport provides a geometry-aware comparison by matching mass across locations according to a ground cost [7]. However, balanced transport requires equal total mass, whereas predicted and observed submission fields can have different total volumes. Unbalanced optimal transport (UOT) relaxes the marginal constraints through divergence penalties, allowing spatial displacement and mass discrepancies to be considered jointly [28]. We therefore augment diffusion MSE with a debiased unbalanced Sinkhorn divergence on decoded denoised fields, introducing an auxiliary training signal that explicitly accounts for price placement and unequal submitted volume.
Evaluating these forecasts requires assessing not only discrepancies between generated and observed fields, but also the quality of the predictive distribution. Comparisons of market statistics, such as those included in LOB-Bench [20], provide useful measures of realism, but agreement on selected summaries alone does not determine the conditional joint distribution of submission fields. Even when full fields are compared, averaging distances from individual generated samples to the realization can favor overly concentrated forecasts rather than faithful representations of uncertainty [10]. Proper scoring rules instead evaluate predictive distributions and are optimized in expectation by the data-generating distribution [10]. We therefore combine mass-aware full-field transport comparisons with proper scoring rules and calibration diagnostics [9], evaluating forecasts against their corresponding realizations at matched forecast origins and horizons.
To address this task, we introduce OrderFlowDiT, a conditional Diffusion Transformer for the joint generation of unnormalized bid and ask limit-order submission fields, together with a training objective and evaluation framework tailored to price allocation, submitted volume, and predictive uncertainty. Our contributions are threefold:
(1) We incorporate an unbalanced optimal-transport (UOT) auxiliary objective into conditional diffusion training. A debiased unbalanced Sinkhorn divergence on decoded denoised fields augments the diffusion mean squared error (MSE), providing a field-level training signal that explicitly accounts for price displacement and differences in total submitted volume.
(2) We construct a full-field evaluation framework that combines a mass-aware transport cost with transport and joint-field energy scores, the continuous ranked probability score (CRPS) for side volumes, and calibration diagnostics. These complementary measures assess field accuracy and predictive uncertainty at matched forecast origins and horizons.
(3) We compare MSE-only and MSE+UOT training with statistical baselines across 1,950 forecast conditions from 30 U.S. equities, reporting pooled and per-stock results. We examine accuracy–diversity tradeoffs and volume calibration in a Group Relative Policy Optimization (GRPO) fine-tuned variant, and assess a larger training configuration that jointly increases model capacity, training data, and optimization budget.
Across 1,950 validation conditions on 30 U.S. equities, Base-UOT lowers full-field transport cost by 45.8% and transport energy score by 26.1% versus Base-MSE, with both improving for every stock. Joint-field energy and log-side-volume CRPS also improve. The evaluated GRPO configuration further improves transport energy and volume CRPS but worsens full-field cost, joint-field energy, and pooled volume-rank calibration while reducing ensemble dispersion, highlighting trade-offs across distributional metrics.
2 Related Work
Market simulation and conditional order-flow generation. Market simulation relies on a model of the order flow that drives changes in liquidity. Agent-based platforms such as ABIDES generate this flow through interactions among trading agents and an exchange [3], while queue-reactive models specify event intensities conditional on book state [13]. Learning aggregate trading behavior directly from historical data provides a complementary approach, as in the conditional generators Stock-GAN and World Agent [4, 15]. Autoregressive models learn the corresponding message sequences [19], and MarS integrates order and order-batch generation within an interactive simulator [14]. At the level of book states, DiffVolume uses conditional diffusion to generate future resting-volume snapshots [33]. Our work addresses future liquidity provision through the conditional generation of new limit-order volume accumulated at each price over a five-minute window. Given the observed book and recent flow, the model produces fields that preserve price placement and total submitted volume while abstracting from within-window event sequences.
Optimal transport for generative training. Optimal transport incorporates the geometry of the data into distributional comparisons through a ground cost [23]. Entropic regularization makes these comparisons computationally tractable, enabling generative models to be trained with Sinkhorn-based losses [8]. For sequential data, COT-GAN further imposes causal constraints on transport couplings to respect temporal structure [35]. These approaches compare distributions of generated and observed samples. Our training objective applies transport within each prediction-target pair, treating submitted volumes as measures supported on the price grid. Because total submitted volume varies across fields, this comparison motivates an unbalanced formulation that accommodates unequal mass [24]. Debiased unbalanced Sinkhorn divergences provide differentiable losses for this setting [28]. We incorporate such a divergence as an auxiliary objective alongside the diffusion denoising loss, making training sensitive to both price displacement and volume mismatch.
Market realism and predictive-distribution evaluation. Market simulators are commonly evaluated by their ability to reproduce stylized facts of returns and order-book dynamics [5, 32]. LOB-Bench formalizes this approach through and Wasserstein-1 comparisons of conditional and unconditional market-statistic distributions, complemented by a learned discriminator and event-response diagnostics [20]. Agreement on selected scalar summaries alone does not determine the joint distribution of volume across prices. We complement these diagnostics by comparing complete, unnormalized submission fields at matched forecast boundaries, with a transport-plus-volume cost that retains price geometry and total volume. A low average cost across generated draws, however, can favor concentrated forecasts without correctly representing predictive uncertainty. Proper scoring rules provide a principled basis for evaluating the predictive distribution [10], and fair ensemble estimators account for finite sampling [6]. We therefore pair the field cost with transport and joint-field energy scores, supplemented by the continuous ranked probability score (CRPS) and rank diagnostics for total volume. Section 5 specifies the support and propriety conditions for each score.
Reward-based diffusion fine-tuning. Denoising diffusion policy optimization (DDPO) treats iterative denoising as a sequential decision process, enabling policy-gradient updates from rewards assigned to generated samples [2]. Group Relative Policy Optimization (GRPO), introduced for mathematical reasoning in language models, estimates advantages from rewards normalized within groups
OrderFlowDiT: Transport-Regularized Diffusion Transformer for Probabilistic Limit-Order Supply Forecasting
of outputs sampled under the same condition [29]. DanceGRPO applies this approach to diffusion and rectified-flow models for image and video generation [36]. We apply group-relative fine-tuning to conditional order-flow generation, using a reward that combines price displacement, volume error, and diversity among generated fields. Our evaluation examines whether improvements under the training reward extend to distributional accuracy and volume calibration.
3 Problem Formulation and Data Representation
We study the conditional distribution of new limit-order volume submitted during the next time window. The prediction target is a pair of volume-at-price fields, one for each side of the book, conditioned on an observed book snapshot and recent order flow.
3.1 Book state and submission fields
The book state records resting liquidity at an instant. Let be the tick size and index bids and asks, respectively. We write for the number of shares resting at price on side immediately before time , reconstructed from the preceding message history. Its best bid and best ask define the mid-price .
The submission field records new limit-order volume accumulated over an interval. For each new submission , let , , , and denote its arrival time, price, side, and volume in shares. For an interval , define
so is a pair of non-negative, unnormalized measures on the price grid. The side mass is the total submitted volume on side . Retaining volumes in shares preserves both price placement and the amount of liquidity submitted.
Each submission contributes its volume even if it is later canceled or executed. Aggregation discards order identities and within-window event order. Bid and ask supports may overlap: as quotes move, a price can receive submissions on different sides at different times. Cancellation and execution flows are outside the target, so a generated submission field alone does not determine the next book state.
3.2 Conditional forecasting task
At each forecast boundary , the observed field summarizes submissions in the preceding window, and the target covers the following window. For a common duration , these fields are
We use seconds (five minutes) in our experiments. Figure 1 shows , and at one boundary.
In addition to , the conditioning information comprises the book snapshot , summary features for its bid–ask spread and the time of session, and the instrument identity . Both and use messages strictly before . A new submission at exactly contributes only to the target field (Figure 2).
MSFT · 2026-06-10 · ET · mid $402.04 · spread 12 ticks

Figure 1: The data at one forecast boundary, within 300 ticks of the mid-price: the book snapshot , the observed field , and the target field . Ask volume is drawn upward and bid volume downward; both are non-negative, unnormalized share counts, and the two flow panels share a vertical scale. This view holds 53% of the submitted volume and 1.2% of the resting depth; the rest lies farther from the mid.
Snapshot : events before

Figure 2: Forecast timing in the contemporaneous-snapshot setting. All windows are left-closed and right-open; the target begins at the forecast boundary.
The forecasting task is to learn the conditional distribution
This distribution jointly describes submitted volume across prices and both sides of the book. For each condition, a generative model produces sampled fields representing possible future outcomes. We compare this ensemble with the realized field using the evaluation measures in Section 5.
3.3 Mid-relative representation and preprocessing
We represent the book, observed flow, and future submission field on a common price grid anchored to the observed snapshot. Let be the snapshot mid-price rounded down to an integer tick. The grid contains bins, with
Thus each bin refers to the same price across all fields in a prediction example. We use , giving bins at one-tick spacing. The model predicts within this finite grid. Volume outside the grid is recorded for coverage diagnostics, and evaluation retains the full support of the realized target.
For numerical conditioning, we apply a logarithmic transform followed by standardization:
The mean and standard deviation are estimated separately for bid and ask book depth and submission flow, using training cells including zeros. Generated values are decoded through the inverse transform and clipped to non-negative share volumes before evaluation. No unit-mass normalization is applied, so total submitted volume remains part of the prediction.
On this grid, the transformed target contains bid and ask submission flow. The conditioning tensor combines transformed bid and ask book depth, two indicator channels marking the best quotes, and transformed bid and ask observed flow. The summary vector contains the spread in ticks and sine-cosine features for the time of session, standardized using training statistics. Instrument identity and the window duration provide additional global conditioning inputs.
Data coverage, chronological splits, and the evaluation protocol are given in Section 6.
4 Conditional Order-Flow Model
OrderFlowDiT generates the next-window submission field conditioned on the current book and recent flow, using the representation in Section 3.3. Its MSE and UOT variants share a conditional Diffusion Transformer; the UOT variant adds a transport objective on decoded fields. We first define the diffusion model and its MSE loss, then introduce the transport objective, sampling, and additional GRPO fine-tuning. Figure 3 illustrates the Base configuration used in the primary comparison.
4.1 Conditional Diffusion Model
With and fixed conditioning , training samples uniformly from a 1000-level cosine schedule and independent noise to form
where .
Our price-axis DiT [22] sums separate linear embeddings of aligned, non-overlapping P-bin patches from and with fixed sinusoidal positional encodings (Figure 3). Bid and ask enter jointly as channels; padding is masked. AdaLN-Zero uses summed embeddings of , , , , and the mean valid conditioning token. A linear head predicts the velocity field .
MSE training minimizes the expected masked velocity loss
where indicates valid price bins. Architecture and training settings are given in Section 6.3.
4.2 Training with an Unbalanced Transport Objective
The velocity MSE compares predictions coordinatewise. To account explicitly for price displacement and unequal submitted volumes, we add an unbalanced optimal-transport (UOT) objective on decoded fields. For each noisy example, the implied clean prediction is . We decode it to in shares using the decoder in Section 4.3 and compare each side with the realized in-grid field.
For non-negative volume vectors , define entropic UOT with relaxed marginals:
(8)
The ground cost measures displacement in ticks. The marginal penalties allow the transport plan to accommodate unequal side volumes; KL denotes generalized KL divergence, including its linear mass terms. We use entropic regularization and marginal penalty . Following Séjourné et al. [28], we remove entropic self-bias:
(9)
where and abbreviates . To reduce variation in loss scale across windows with different volumes, we divide by the pair's mean mass: . This scales the scalar loss while retaining both input fields in shares. The combined training objective is
with expectation over training examples, noise levels, and noise realizations. The UOT variant uses ; setting it to zero recovers MSE-only training. The factor reduces the auxiliary contribution at high noise levels, where clean-field estimates are less reliable.
On the uniform grid, Sinkhorn kernel products use FFT convolution, with detached dual potentials obtained from log-domain iterations. Evaluation uses the distinct field distances and scoring rules in Section 5. The Base variants share a training split and optimizer schedule; budgets and variant-specific checkpoint-selection rules are given in Section 6.3.
4.3 Sampling and Predictive Ensembles
MSE and UOT ensembles use independent Gaussian initializations, each sampled with 50 DDIM steps ( ), fixed conditioning, and exponential moving average (EMA) weights. Final values decode to with . Fields retain non-negative, real-valued share volumes without unit-mass normalization and map back to absolute price ticks; non-positive-price bins are excluded and their mass recorded.
4.4 GRPO Fine-Tuning
We further adapt Base-UOT with GRPO [29], optimizing a reward on groups of generated fields while retaining the architecture and representation. This Base-GRPO variant treats stochastic DDIM with 20 steps and as a policy, drawing decoded fields per condition. For the realized field , define the target-dependent cost
where is normalized-shape in ticks (Section 5.1), , and . For the reward, shape cost is zero when both sides are
OrderFlowDiT: Transport-Regularized Diffusion Transformer for Probabilistic Limit-Order Supply Forecasting
sampling: 50 DDIM steps ( ); independent initial noise per draw gives the R-member ensemble

Figure 3: OrderFlowDiT-Base. Every field shares the one-tick, mid-anchored price grid of Section 3.3, so a bin refers to the same price in the noisy target and in all six conditioning channels of : book depth , the two best-quote indicators, and observed flow . Patches of bins are embedded separately for target and conditioning and summed; bins padding the grid to whole patches are masked. Base-MSE trains on the masked velocity loss alone, whereas the Base-UOT term is evaluated on the decoded field in shares rather than in velocity space. GRPO (Section 4.4) fine-tunes this same network.
empty and B/2 ticks when exactly one is empty; the mass term is omitted when . Each draw receives reward
The first term rewards agreement with the realization; the second encourages separation between draws. Group-standardized rewards define the advantages. Updates use a clipped policy-ratio surrogate and a KL penalty to the frozen Base-UOT model, with log-ratios and KL terms normalized by the number of valid scalar entries.
5 Full-Field and Distributional Evaluation
We evaluate both the accuracy of individual submission fields and the quality of their predictive distribution. At forecast boundary , independent model draws are compared with the realization . These paired field comparisons complement summary-statistic benchmarks such as LOB-Bench [20]. All comparisons retain share volumes and the full supplied price support, including realized flow outside the model's grid. A common price translation leaves the scores unchanged, so absolute ticks and the shared mid-relative frame give identical values. Table 1 summarizes the eight quantities; sampling and reporting follow Section 6.4.
5.1 Full-Field Accuracy
For generic bid-ask fields , write for the price tick and for side mass. When this mass is positive, let be the CDF of . The one-dimensional Wasserstein shape discrepancy is
This exact CDF expression measures price displacement in ticks without a transport solver [26]. Normalization removes total volume, so fields with the same shape have zero discrepancy even when their masses differ.
To retain both placement and volume, set and and define
The first term transports the common mass between the normalized shapes; the second charges for residual volume. With ticks, the cost has units of share-ticks. An equal-mass displacement by ticks costs ; a volume change at fixed shape incurs the mass penalty. If either mass is zero, the transport term is defined as zero, leaving .
This feasible plan leaves total marginal defect , so its cost upper-bounds unbalanced OT with a -weighted penalty on each marginal discrepancy [24]. It need not attain the optimal transport value or satisfy the triangle inequality. It also differs from the entropic, KL-relaxed training objective in (8).
Error components. Alongside the combined cost, we report sided , target-normalized volume error for a generated and realization , and log-field error , with defined in (18). Sided and NTVE are zero when a side is empty in both fields; sided is undefined when exactly one is empty and NTVE when the target alone is empty, whereas and remain defined for empty fields.
5.2 Predictive Distribution Quality
Averaging field costs over draws measures sample fidelity but does not identify the predictive law: concentrated forecasts can achieve small average errors. Proper scoring rules instead attain their minimum expected value at the true conditional law; strict propriety makes that minimizer unique [10].
For a fixed condition, write and . Given a ground distance and independent draws, the fair energy-score estimator is [6]
The pairwise sum uses ordered pairs; independence makes the estimator unbiased for the population score. We retain the mean target distance and mean distance between distinct draws , so .
Transport energy score. To combine price geometry with volume uncertainty, set and use
with ticks and . The symmetric log-mass term reduces the dominance of large volumes without exact scale invariance. On laws with nonempty sides and finite first metric moments, is proper because is a sum of distances and hence of negative type [10, 31]. Its additive side, shape, and mass terms do not identify their dependence, so it is not strictly proper for the joint field law. The GRPO reward in (12) uses a different mass discrepancy and does not inherit this propriety claim.
For each side, the target and all draws must be either all nonempty or all empty; the latter receives zero score. Both side scores must be defined. Mixed empty/nonempty ensembles are excluded, and the propriety statement does not extend to laws mixing empty and nonempty fields.
Joint-field energy score. To assess the joint bid–ask law, define and
Here fixes normalization without truncating support, and the log transform uses raw shares without model-specific standardization. The injective log-field map lies in a separable Hilbert space, whose norm distance has strong negative type [17]. Thus the resulting is strictly proper for the joint field law under finite first metric moments, including laws with empty fields. Its binwise geometry complements transport: the penalty for moving an isolated spike to another bin does not increase with the distance moved.
Volume CRPS.. Applying (16) to gives the fair continuous ranked probability score (CRPS) for log side volume [18]; we average the two sides. Each score is strictly proper for its log-volume marginal under a finite first moment, including empty sides with . Their average does not identify bid–ask dependence.
Table 1: Evaluation quantities and their roles. Costs, errors, scores, and RI are lower-is-better. Propriety refers to population scores on the domains stated in the text.
| Quantity | Role |
|---|---|
| Price placement and volume cost | |
| Proper transport-based score | |
| Strictly proper joint-field score | |
| Volume CRPS | Strictly proper side-volume score |
| Sided | Shape diagnostic in ticks |
| NTVE | Relative-volume diagnostic |
| Per-bin log-volume diagnostic |
6 Experimental Setup
6.1 Data and Experimental Splits
We use LOBSTER full-depth order-message data for a fixed panel of 30 U.S. equities. Each session is restricted to 10:30–16:00 Eastern Time, with a common one-cent price lattice. We construct the contemporaneous-snapshot (lag0) conditions of Section 3: the book snapshot and preceding five minutes of submission flow condition the forecast of bid and ask submission fields over the next seconds.
The Base models train on 10 trading days from June 8–22, 2026. The Large models extend this split with 19 earlier days from May 11–June 5, giving 29 training days in total. Training uses window-grid offsets of 0, 60, 120, 180, and 240 seconds, yielding 96,300 Base and 279,270 Large training pairs. Volume-transform and summary-feature statistics are fitted separately for each training split using only its unshifted windows.
All models are compared on a fixed corpus from June 23, 2026 containing 1,950 conditions, with 65 per stock. Evaluation uses the unshifted grid, with target windows starting at 10:35 through 15:55 Eastern Time. This day also serves for checkpoint selection, so the reported results are validation-set comparisons following chronological training. June 24 is reserved in the configured test split and is not used in these comparisons. The same 30 stocks appear in training and evaluation; per-stock results characterize performance variation across this observed panel.
6.2 Experimental Comparisons and Baselines
The primary comparison uses three Base variants of the conditional diffusion model in Section 4.1. Base-MSE trains with the diffusion MSE in (7); Base-UOT adds the transport auxiliary objective in (10). Throughout, UOT denotes this combined MSE+UOT objective. Base-GRPO fine-tunes Base-UOT as described in Section 4.4. These variants examine how the training objective and fine-tuning procedure affect field accuracy and predictive uncertainty, alongside the statistical references below.
An expanded configuration adds Large-MSE and Large-UOT to check whether the MSE/UOT findings persist with greater capacity, more data, and longer training (Section 6.3).
AAPL, AMGN, AMZN, AXP, BA, CAT, CRM, CSCO, CVX, DIS, GS, HD, HON, IBM, JNJ, JPM, KO, MCD, MMM, MRK, MSFT, NKE, NVDA, PG, SHW, TRV, UNH, V, VZ, and WMT.
OrderFlowDiT: Transport-Regularized Diffusion Transformer for Probabilistic Limit-Order Supply Forecasting
Two parametric baselines fit the observed submission field . Skew-normal fits one skew-normal distribution per side, using volume weights within 50 ticks of that side's modal price. Skew-normal mixture fits the full observed support, with BIC selecting one or two components per side ( ) and observed share volume as the effective sample size. Both fit separately at each forecast boundary and scale the fitted shape to the observed side's total volume, yielding a deterministic forecast field. They use recent flow without book-depth conditioning; their comparison includes differences in fitting support and component limits.
For a historical distributional reference, Empirical samples complete bid-ask fields from the same instrument and five-minute window index on the Base configuration's 10 training days, using unshifted windows only. Each selected field is translated from its own snapshot-mid anchor to the current anchor. Draws are uniform and independent with replacement. This baseline uses instrument identity, time of day, and the snapshot anchor; it does not use recent flow or book depth.
6.3 Training
Diffusion training. Base has 58.7M parameters (hidden width , 12 blocks, 8 heads) and trains for 30,000 steps at learning rate ; Large uses 174.3M parameters ( , 16 blocks, 12 heads) and 100,000 steps at . Within each size, MSE and UOT share architecture, data, and optimizer settings. Both use AdamW with constant learning rates, batch size 64, weight decay 0.01, gradient-norm clipping at 1, mixed precision, and EMA decay 0.9999. Both sizes use patch width , feed-forward width 4d, and dropout 0.1; the grid, diffusion schedule, and UOT coefficients are also shared. Each learned configuration uses one training seed, 42.
GRPO fine-tuning. Base-GRPO starts from the selected Base-UOT EMA weights and uses the same training split. Each of 500 iterations samples G = 8 fields for each of 16 conditions, followed by one policy-update epoch. Updates use AdamW with learning rate , zero weight decay, gradient-norm clipping at 1, mixed precision, and EMA decay 0.99. The policy-ratio clipping threshold is 0.2 and the KL-penalty coefficient is 0.02.
6.4 Evaluation and Reporting Protocol
All models are evaluated on the common lag0 corpus in Section 6.1, with matched forecast boundaries and realized targets. Their conditioning inputs follow Section 6.2.
Forecast generation. Diffusion models generate independent fields per condition from selected EMA weights (evaluation base seed 0). MSE/UOT use 50 DDIM steps ( ); Base-GRPO uses its 20-step training sampler ( ). Empirical also draws four independent fields; each skew-normal baseline is deterministic ( ). Base/Large share the 50-step sampler, whereas the GRPO comparison combines fine-tuning and a sampler change.
Scoring and calibration. Fields in shares are scored against full-support targets, including realized flow outside the model grid, using the eight quantities in Section 5. Field costs and errors average over defined draws; distributional scores use the ensemble jointly. Deterministic forecasts have zero inter-draw terms, leaving only target distance. For GRPO, we retain both energy scores' target and inter-draw components. Volume calibration compares models using RI and interior-rank coverage (nominal 0.6). Ties are broken uniformly at random using reproducible sample-based seeds.
Aggregation and reporting. Sided and NTVE average defined draws within sides, then equally across sides, requiring both means. Full-field cost sums sides; log-field MSE follows (18). Per-stock and pooled means equally weight defined boundaries, with per-metric valid and excluded counts; volume ranks pool boundary-side pairs. Raw costs can be dominated by high-volume windows and are interpreted alongside shape and relative- or log-volume metrics. Comparisons are descriptive, using the checkpoint-selection day and one training seed per learned configuration.
7 Results
We assess field accuracy and predictive-distribution quality on the common 1,950 lag0 conditions across 30 stocks described in Section 6.1. All field costs and distributional scores are defined on every condition for the eight selected models, with no exclusions. Volume-rank diagnostics use 3,900 condition-side pairs per model. As specified in Section 6.4, these are descriptive comparisons on the checkpoint-selection day, with one training seed per learned configuration.
7.1 Main Comparison with Statistical Baselines
Base-UOT improves both field accuracy and predictive-distribution quality over Base-MSE (Table 2). All seven reported metrics decrease, including a 45.8% reduction in full-field cost and a 26.1% reduction in transport energy score . The gains also extend to the joint-field score , whose binwise geometry differs from transport, and to volume CRPS.
The statistical baselines place these improvements in context. Base-UOT outperforms Empirical in full-field cost and both energy scores, and has the lowest among the six models in Table 2. Other measures favor different forecasts: the skew-normal baselines attain the lowest NTVE. The learned forecasts' advantages in field accuracy and distributional scores therefore coexist with room for improvement in marginal volume calibration.
The UOT gains are consistent across the evaluated stock panel. Relative to Base-MSE, Base-UOT lowers both full-field cost and for every stock. It also lowers full-field cost relative to Empirical on 29 stocks and on all 30. Each comparison uses the same 65 conditions per stock, showing that the pooled improvements are accompanied by gains across the instruments represented in training and evaluation.
Figure 4 illustrates a generated field by placing one Large-UOT draw beside the realization at the same condition.
7.2 GRPO: Accuracy, Diversity, and Calibration
The GRPO variant improves transport and volume scores, but the gain does not extend to the joint-field score. Relative to Base-UOT, Base-GRPO lowers by 6.1% and volume CRPS by 14.0%, while increasing by 5.7% and full-field cost by 3.2%. The pooled full-field cost increases despite decreases in 24 of the 30 per-stock means: larger deteriorations elsewhere outweigh those gains.
Table 2: Main comparison on 1,950 conditions. All seven metrics are lower-is-better; bold marks the lowest displayed value in each column. The full-field cost is reported in share-ticks and sided in ticks. CRPS denotes log-total-volume CRPS. The mixture uses . The rows are point-mass forecasts.
| Model | CRPS | Sided | NTVE | |||||
|---|---|---|---|---|---|---|---|---|
| Skew-normal | 1 | 450.515 | 14.995 | 0.794 | 0.317 | 733.904 | 0.722 | |
| Skew-normal mixture | 1 | 109.510 | 4.154 | 1.452 | 0.317 | 191.888 | 2.433 | |
| Empirical | 4 | 95.698 | 2.018 | 0.496 | 0.283 | 166.599 | 0.756 | 0.934 |
| Base-MSE | 4 | 110.829 | 2.152 | 0.414 | 0.460 | 149.220 | 1.058 | 0.656 |
| Base-UOT | 4 | 1.591 | 0.283 | 123.552 | 0.447 | 0.599 | ||
| Base-GRPO | 4 | 62.025 | 1.494 | 0.409 | 0.243 | 107.705 | 0.382 | 0.549 |

Figure 4: Realized and Large-UOT submission fields within 100 ticks of the mid-price on identical axes: ask shares upward, bid downward. The condition is nearest the median Large-UOT energy score among mid-session conditions on this instrument. Total volumes are 1.94M and 1.49M shares, respectively; only roughly a quarter of each field's volume lies in the displayed range.
Table 3: GRPO comparison on the same lag0 conditions (). For each energy-score geometry , is the mean target distance and the mean off-diagonal inter-draw distance, so . Interior-rank coverage has nominal value 0.600. Distance components and coverage are diagnostics, without a common lower-is-better direction.
| Quantity | Base-UOT | Base-GRPO |
|---|---|---|
| 1.591 | 1.494 | |
| Target distance | 2.897 | 2.510 |
| Inter-draw distance | 2.611 | 2.033 |
| 0.387 | 0.409 | |
| Target distance | 0.722 | 0.686 |
| Inter-draw distance | 0.670 | 0.553 |
| 60.074 | 62.025 | |
| Volume CRPS | 0.283 | 0.243 |
| RI | 0.256 | 0.269 |
| Interior-rank coverage | 0.395 | 0.385 |
The energy-score decomposition in Table 3 explains the disagreement between the two scoring geometries. Under both distances, generated fields become closer to the realization on average, but also closer to one another. Since , the transport score improves because the reduction in target distance exceeds half the reduction in inter-draw distance. For the joint-field score, the smaller target-distance improvement is outweighed by the loss of the dispersion contribution. A lower average distance to the target therefore need not yield a better score for the predictive distribution.
Volume-rank diagnostics show a related limitation. RI rises from 0.256 to 0.269, while interior-rank coverage falls from 0.395 to 0.385, farther below its nominal value of 0.600. Thus the improved transport score and volume CRPS coexist with reduced ensemble dispersion and weaker pooled volume calibration. These results describe the combined change in weights and sampling: Base-GRPO uses 20 DDIM steps with , whereas Base-UOT uses 50 steps with .
7.3 Expanded Training Configuration
The UOT advantage over MSE in full-field cost and both energy scores persists in the expanded configuration. Relative to Base-UOT, Large-UOT reduces full-field cost by 2.1% and by 17.5%. Large-MSE nevertheless retains lower NTVE and log-field MSE than Large-UOT. Capacity, training data, optimizer steps, and learning rate change together, so this comparison does not isolate their individual effects.
8 Conclusion
We presented OrderFlowDiT for conditional generation of unnormalized limit-order submission fields, together with an evaluation framework that assesses price placement, total volume, and predictive uncertainty. On 1,950 validation conditions across 30 U.S. equities, Base-UOT reduces full-field transport cost by 45.8% and the transport energy score by 26.1% relative to Base-MSE, with gains in both measures for every stock. The UOT advantage persists when model capacity, training data, and optimization budget increase together. The GRPO variant illustrates the need for complementary distributional diagnostics: its lower transport energy score coexists with reduced sample diversity, a worse joint-field score, and weaker volume calibration. These results support training and evaluation that account jointly for price geometry, submitted volume, and the distribution of possible outcomes.
The central limitation is that generating submission flow does not complete a financial world model. An impact model is also needed to connect the current book, order flow, and trading actions
OrderFlowDiT: Transport-Regularized Diffusion Transformer for Probabilistic Limit-Order Supply Forecasting
to the distribution of subsequent book states and prices. Our aggregated fields omit cancellations, executions, and event ordering, so they cannot by themselves determine these transitions. Learning and validating this link, including the market’s response to trading actions, is the next step toward multi-step simulation and the evaluation of trading decisions.
References
[1] Bruno Biais, Pierre Hillion, and Chester Spatt. 1995. An Empirical Analysis of the Limit Order Book and the Order Flow in the Paris Bourse. The Journal of Finance 50, 5 (1995), 1655–1689. doi:10.1111/j.1540-6261.1995.tb05192.x
[2] Kevin Black, Michael Janner, Yilun Du, Ilya Kostrikov, and Sergey Levine. 2024. Training Diffusion Models with Reinforcement Learning. In The Twelfth International Conference on Learning Representations. https://arxiv.org/abs/2305.13301
[3] David Byrd, Maria Hybinette, and Tucker Hybinette Balch. 2020. ABIDES: Towards High-Fidelity Multi-Agent Market Simulation. In Proc. 2020 ACM SIGSIM Conf. on Principles of Advanced Discrete Simulation (SIGSIM-PADS). 11–22. doi:10.1145/3384441.3395986
[4] Andrea Coletta, Aymeric Moulin, Svitlana Vyetrenko, and Tucker Balch. 2022. Learning to Simulate Realistic Limit Order Book Markets from Data as a World Agent. In Proc. 3rd ACM Int. Conf. on AI in Finance (ICAIF). 428–436. doi:10.1145/3533271.3561753
[5] Rama Cont. 2001. Empirical Properties of Asset Returns: Stylized Facts and Statistical Issues. Quantitative Finance 1, 2 (2001), 223–236. doi:10.1080/713665670
[6] Christopher A. T. Ferro. 2014. Fair Scores for Ensemble Forecasts. Quarterly Journal of the Royal Meteorological Society 140, 683 (2014), 1917–1923. doi:10.1002/qj.2270
[7] Jean Feydy, Thibault Séjourné, François-Xavier Vialard, Shun-ichi Amari, Alain Trouvé, and Gabriel Peyré. 2019. Interpolating between Optimal Transport and MMD using Sinkhorn Divergences. In Proceedings of the Twenty-Second International Conference on Artificial Intelligence and Statistics (Proceedings of Machine Learning Research, Vol. 89). PMLR, 2681–2690.
[8] Aude Genevay, Gabriel Peyré, and Marco Cuturi. 2018. Learning Generative Models with Sinkhorn Divergences. In Proceedings of the Twenty-First International Conference on Artificial Intelligence and Statistics (Proceedings of Machine Learning Research, Vol. 84). PMLR, 1608–1617. https://proceedings.mlr.press/v84/genevay18a.html
[9] Tilmann Gneiting, Fadoua Balabdaoui, and Adrian E. Raftery. 2007. Probabilistic Forecasts, Calibration and Sharpness. Journal of the Royal Statistical Society: Series B (Statistical Methodology) 69, 2 (2007), 243–268. doi:10.1111/j.1467-9868.2007.00587.x
[10] Tilmann Gneiting and Adrian E. Raftery. 2007. Strictly Proper Scoring Rules, Prediction, and Estimation. J. Amer. Statist. Assoc. 102, 477 (2007), 359–378. doi:10.1198/016214506000001437
[11] Nikolaus Hautsch and Ruihong Huang. 2012. The Market Impact of a Limit Order. Journal of Economic Dynamics and Control 36, 4 (2012), 501–522. doi:10.1016/j.jedc.2011.09.012
[12] Jonathan Ho, Ajay Jain, and Pieter Abbeel. 2020. Denoising Diffusion Probabilistic Models. In Advances in Neural Information Processing Systems, Vol. 33.
[13] Weibing Huang, Charles-Albert Lehalle, and Mathieu Rosenbaum. 2015. Simulating and Analyzing Order Book Data: The Queue-Reactive Model. J. Amer. Statist. Assoc. 110, 509 (2015), 107–122. doi:10.1080/01621459.2014.982278
[14] Junjie Li, Yang Liu, Weiqing Liu, Shikai Fang, Lewen Wang, Chang Xu, and Jiang Bian. 2025. MarS: A Financial Market Simulation Engine Powered by Generative Foundation Model. In Int. Conf. on Learning Representations (ICLR). https://arxiv.org/abs/2409.07486
[15] Junyi Li, Xintong Wang, Yaoyang Lin, Arunesh Sinha, and Michael P. Wellman. 2020. Generating Realistic Stock Market Order Streams. Proceedings of the AAAI Conference on Artificial Intelligence 34, 1 (2020), 727–734. doi:10.1609/aaai.v34i01.5415
[16] Danny K. Lo and Anthony D. Hall. 2015. Resiliency of the Limit Order Book. Journal of Economic Dynamics and Control 61 (2015), 222–244. doi:10.1016/j.jedc.2015.09.012
[17] Russell Lyons. 2013. Distance Covariance in Metric Spaces. The Annals of Probability 41, 5 (2013), 3284–3305. doi:10.1214/12-AOP803
[18] James E. Matheson and Robert L. Winkler. 1976. Scoring Rules for Continuous Probability Distributions. Management Science 22, 10 (1976), 1087–1096. doi:10.1287/mnsc.22.10.1087
[19] 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 (ICAIF '23). Association for Computing Machinery, 91–99. doi:10.1145/3604237.3626898
[20] Peer Nagy, Sascha Yves Frey, Kang Li, Bidipta Sarkar, Svitlana Vyetrenko, Stefan Zohren, Ani Calinescu, and Jakob Nicolaus 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
[21] Anna A. Obizhaeva and Jiang Wang. 2013. Optimal Trading Strategy and Supply/Demand Dynamics. Journal of Financial Markets 16, 1 (2013), 1–32. doi:10.1016/j.finmar.2012.09.001
[22] William Peebles and Saining Xie. 2023. Scalable Diffusion Models with Transformers. https://arxiv.org/abs/2212.09748 arXiv:2212.09748.
[23] Gabriel Peyré and Marco Cuturi. 2019. Computational Optimal Transport. Foundations and Trends in Machine Learning 11, 5–6 (2019), 355–607. doi:10.1561/2200000073
[24] Benedetto Piccoli and Francesco Rossi. 2014. Generalized Wasserstein Distance and its Application to Transport Equations with Source. Archive for Rational Mechanics and Analysis 211, 1 (2014), 335–358. doi:10.1007/s00205-013-0669-x arXiv:1206.3219.
[25] Marcello Rambaldi, Emmanuel Bacry, and Fabrizio Lillo. 2017. The Role of Volume in Order Book Dynamics: A Multivariate Hawkes Process Analysis. Quantitative Finance 17, 7 (2017), 999–1020. doi:10.1080/14697688.2016.1260759
[26] Filippo Santambrogio. 2015. Optimal Transport for Applied Mathematicians. Progress in Nonlinear Differential Equations and Their Applications, Vol. 87. Birkhäuser. doi:10.1007/978-3-319-20828-2
[27] Roman Schefzik, Thordis L. Thorarinsdottir, and Tilmann Gneiting. 2013. Uncertainty Quantification in Complex Simulation Models Using Ensemble Copula Coupling. Statist. Sci. 28, 4 (2013), 616–640. doi:10.1214/13-STS443
[28] Thibault Séjourné, Jean Feydy, François-Xavier Vialard, Alain Trouvé, and Gabriel Peyré. 2019. Sinkhorn Divergences for Unbalanced Optimal Transport. arXiv:1910.12958 [math.OC] doi:10.48550/arXiv.1910.12958
[29] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. https://arxiv.org/abs/2402.03300 arXiv preprint arXiv:2402.03300.
[30] Jiaming Song, Chenlin Meng, and Stefano Ermon. 2021. Denoising Diffusion Implicit Models. In International Conference on Learning Representations. https://arxiv.org/abs/2010.02502
[31] Gábor J. Székely and Maria L. Rizzo. 2013. Energy Statistics: A Class of Statistics Based on Distances. Journal of Statistical Planning and Inference 143, 8 (2013), 1249–1272. doi:10.1016/j.jspi.2013.03.018
[32] Svitlana Vyetrenko, David Byrd, Nick Petosa, Mahmoud Mahfouz, Danial Dervovic, Manuela Veloso, and Tucker Balch. 2020. Get Real: Realism Metrics for Robust Limit Order Book Market Simulations. In Proc. 1st ACM Int. Conf. on AI in Finance (ICAIF). doi:10.1145/3383455.3422561
[33] Zhuohan Wang and Carmine Ventre. 2025. DiffVolume: Diffusion Models for Volume Generation in Limit Order Books. In Proc. 6th ACM Int. Conf. on AI in Finance (ICAIF). doi:10.1145/3768292.3770413
[34] Peng Wu, Marcello Rambaldi, Jean-François Muzy, and Emmanuel Bacry. 2019. Queue-Reactive Hawkes Models for the Order Flow. arXiv:1901.08938 [q-fin.TR] doi:10.48550/arXiv.1901.08938
[35] Tianlin Xu, Li Kevin Wenliang, Michael Munn, and Beatrice Acciaio. 2020. COT-GAN: Generating Sequential Data via Causal Optimal Transport. In Advances in Neural Information Processing Systems, Vol. 33. https://proceedings.neurips.cc/paper/2020/hash/641d77dd5271fca28764612a028d9c8e-Abstract.html
[36] Zeyue Xue, Jie Wu, Yu Gao, Fangyuan Kong, Lingting Zhu, Mengzhao Chen, Zhiheng Liu, Wei Liu, Qiushan Guo, Weilin Huang, and Ping Luo. 2025. DanceGRPO: Unleashing GRPO on Visual Generation. https://arxiv.org/abs/2505.07818 arXiv preprint arXiv:2505.07818.