Manuscript Offprint
arXiv:2610.21081StochLOB: Heavy-Tailed Score Matching for Robust Limit Order Book Trend Prediction
Abstract
Score-based diffusion methods usually perturb data with Brownian Gaussian noise, corresponding to a light-tailed forward stochastic differential equation (SDE). For market time series this SDE can be a poor abstraction: limit order book (LOB) order flow is heavy-tailed, bursty, and occasionally jump-like. We study STOCHLOB, a training-only score-matching framework that changes the forward diffusion corruption law while leaving the deployed predictor deterministic. Instead of Brownian-only Gaussian corruption, the noising process uses two non-Gaussian SDE-inspired alternatives: jump-Lévy noise through a compound-Poisson variance mixture, and clipped -stable noise through a positive-stable Gaussian scale mixture. These corruptions inject finite jumps and heavy-tailed residuals into training without requiring reverse-time diffusion sampling at inference. The resulting score target has a useful interpretation: its radial factor is the posterior expected corruption precision, so large residuals are weighted according to the latent corruption scale that most plausibly generated them. On chronologically held-out Coinbase LOB data, the proposed variants remain competitive on uncorrupted BTC and altcoin test horizons and improve several realized tail-window stress diagnostics. An exploratory Feishu A-share transfer study further tests whether the probability outputs remain usable under transaction costs and trading-rule constraints. Code and configuration files are available at https://github.com/ArshiAbolghasemi/Penny.
1 Introduction
Score-based diffusion methods are commonly built around a Brownian forward stochastic differential equation (SDE), whose finite-time corruption is Gaussian and light-tailed. This modeling choice is convenient, but it also defines the residual geometry seen by a denoising score objective: large coordinate movements become exponentially unlikely, and the learned restoring force is tied to a Brownian quadratic penalty. For data generated by stochastic systems with bursts, jumps, or persistent heavy tails, the Brownian-only SDE can therefore be a poor training corruption law.
Limit order book (LOB) prediction makes this mismatch concrete. Order-flow imbalance (OFI), depth changes, and short-horizon returns can remain quiet for many bins and then move abruptly after an order sweep, a liquidity withdrawal, or a short burst of directional trading. These large residuals are not rare under the market process, but they are rare under Gaussian diffusion corruption. This is difficult to reconcile with the heavy tails and jump-like behavior observed in financial time series and LOB order flow [Mandelbrot, 1963, Cont, 2001, Cont et al., 2014].
Equal contribution.
Corresponding author: Ali Habibnia, habibnia@vt.edu.
40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: AI for Stochastic Dynamics.
The question we study is whether the forward diffusion SDE used for score-based regularization should be modified so its noise law better matches the stochastic input process. We introduce STOCHLOB, a training-only framework for robust mid-price trend prediction. The deployed model remains a standard classifier: the corruption sampler and score head are used only while learning the shared representation, and test-time inference is a single deterministic forward pass. This isolates the effect of changing the stochastic diffusion corruption from the cost of reverse-time diffusion sampling at deployment.
We consider two non-Gaussian SDE-inspired corruption families. The jump-Lévy variant adds a compound-Poisson jump component to a Brownian background, implemented as a Gaussian scale mixture that exposes the representation to mostly ordinary perturbations with occasional finite jumps. The -stable variant replaces the fixed Brownian variance with a clipped positive-stable scale mixture, producing broad heavy-tailed perturbations while retaining numerical stability. Both variants use the same classifier architecture and differ only in the stochastic training law and auxiliary loss. The score target is also interpretable: the radial score factor is a posterior precision under the latent corruption scale. Thus the denoising objective does not apply the same restoring force to every residual. Ordinary residuals receive high posterior precision, while extreme residuals can be explained by larger latent corruption scales.
Our empirical analysis follows the same logic. First, distribution-fit and tail diagnostics on Coinbase OFI show that the Gaussian assumption is a poor description of the observed inputs. Second, on Coinbase BTC and four additional crypto symbols, the proposed variants remain competitive on standard held-out mid-price trend prediction and win selected horizons, showing that the stochastic auxiliary objective does not require a large standard-test accuracy tradeoff. Third, realized stress-window diagnostics evaluate the regimes that motivate the method: high-stress, high-variance, and jump-residual windows in which Gaussian corruption is least plausible. Figure 1 gives the headline stress diagnostic at k = 100. We also include an exploratory Feishu A-share transfer study in which model probabilities are converted into constrained portfolio signals, checking whether the forecasts remain useful after transaction costs, lot-size rules, and T+1 selling constraints. This transfer check is not meant to define a complete trading system; it tests whether the learned probabilities survive a realistic downstream decision rule.
Contributions. We make three contributions. First, we formulate robust supervised representation learning as a mismatch between Brownian diffusion-SDE corruption and heavy-tailed, jump-like stochastic inputs, using LOB trend prediction as the concrete test bed. Second, we modify the training-time diffusion corruption with jump-Lévy and clipped -stable noise while keeping the LOB predictor deterministic and free of inference-time sampling. Third, we provide a posterior-precision interpretation of the resulting score function , with proofs and future-work mathematics in Appendix G. Appendices A–F provide the data details, score-table construction, implementation and training algorithms, additional crypto results, and the Feishu portfolio analysis.
Heavy tails and jumps. Heavy tails are a classical stylized fact of financial returns [Mandelbrot, 1963, Cont, 2001]; LOB-specific studies show non-Gaussian behavior in liquidity, impact, and order flow [Bouchaud et al., 2002, Mike and Farmer, 2008, Gould et al., 2013, Cont et al., 2014]. Jump-diffusion models provide a finite-activity language for abrupt price moves [Merton, 1976], while stable processes model persistent heavy-tailed fluctuations [Samorodnitsky and Taqqu, 1994]. We use these objects as training-time corruption laws, not as complete market simulators.

Figure 1: Main stress result on chronologically held-out Coinbase BTC windows at horizon (31,842 test windows). Columns sort windows by realized stress, realized variance, and variance-controlled jump residual, all computed from one-step increments of the level-averaged feature stream. Decile 10 is the most turbulent. The top row reports macro-F1 by decile; the bottom row reports paired differences against the same StochLOB trunk trained with cross-entropy only. Shaded bands are 95% circular block-bootstrap confidence intervals.
Diffusion as representation learning. Score-based and denoising diffusion models are typically introduced as generative models [Ho et al., 2020, Song et al., 2021], but the denoising task can also shape supervised representations. Joint diffusion training uses shared networks for denoising and prediction [Deja et al., 2023], and related work studies diffusion features as representation learners [Yang and Wang, 2023]. Non-Gaussian diffusion replaces Brownian noise with jump or heavy-tailed processes [Yoon et al., 2023, Shariatian et al., 2025, Pandey et al., 2025]. LOB diffusion work models event streams, counterfactual books, or volume snapshots [Zheng et al., 2024, Wang and Ventre, 2026, 2025]; STOCHLOB instead uses non-Gaussian corruption as a training-time auxiliary regularizer for deterministic LOB classification.
3 Background
Limit order book (LOB) data record the outstanding limit orders waiting at an exchange. At any time, the book has a bid side, where traders are willing to buy, and an ask side, where traders are willing to sell. Each side is ordered by price into levels: the first bid and ask levels are the immediately executable quotes, while deeper levels describe nearby liquidity that would be reached after the top quotes are consumed. A raw book snapshot is therefore a structured row rather than a flat tabular observation: for each displayed level it contains a bid price, bid volume, ask price, and ask volume. With twenty displayed levels, one snapshot contains eighty raw book fields before trade-flow and derived features are added.
Across time, consecutive snapshots show how queues build, vanish, or move across levels. These changes are the main signal in LOB prediction because they reveal buying and selling pressure before it appears as a mid-price move.
Following the multi-level OFI representation of Kolm et al. [2023], which builds on the order-flow imbalance construction of Cont et al. [2014], we use OFI as the primary LOB representation. OFI summarizes whether liquidity is added, cancelled, or consumed on the bid and ask sides before the mid-price moves. New bid depth or removed ask depth pushes signed flow positive; removed bid depth or new ask depth pushes it negative. Aggregating these signed changes converts irregular book updates into a regular time-series signal for neural sequence models. Appendix A.1 gives the full LOB notation, Coinbase feature construction, and exact OFI aggregation formula in Eq. (10). Appendix A.4 reports the train-only heavy-tail diagnostics, including Figures 4 and 5.
The representation-learning question is whether the auxiliary corruption task should match the market residuals seen by OFI windows. Many bins contain small queue adjustments, but active periods can contain abrupt order sweeps, liquidity withdrawals, or bursts of one-sided trading. A pooled Hill/Pareto tail-index estimate on Coinbase OFI magnitudes gives , well below Gaussian light-tail behavior (Appendix A.4). A Gaussian denoising task emphasizes a fixed quadratic geometry around the clean input; the non-Gaussian score tasks below instead expose the shared classifier trunk to larger residuals during training. The reverse diffusion chain is never run at inference, so the method is stochastic representation learning rather than a generative market simulator.
4 Methodology
STOCHLOB is designed to change the training signal while leaving the deployed predictor unchanged. Each minibatch is seen in two views. The clean window is passed through the classifier path and optimized with the ordinary three-class trend loss. A second, stochastically corrupted view is passed through a score head attached to the same temporal trunk. Only the shared representation is common between these objectives; at test time the noisy view, corruption sampler, score table, and score head are all disabled.
4.1 Problem and Labels
Given a normalized LOB feature window , the classifier returns probabilities over . For Coinbase, and : each window covers 10 minutes sampled every 10 seconds. Following the DeepLOB smoothed-mid protocol [Zhang et al., 2019], the return target at horizon is
and labels are assigned by train-calibrated thresholds
The standard supervised loss is .
The chronological construction is important. For a window centered at , the input uses only observations up to , while the label uses the smoothed future mid-price in Eq. (1). Windows are therefore assigned to train, validation, or test only when the full look-back context and the full future label horizon remain inside the same split. This avoids leakage from overlapping windows near split boundaries.
4.2 Generalized Scale-Mixture Score Matching
STOCHLOB corrupts an unperturbed input through a Gaussian scale mixture:
Here follows a standard variance-preserving or cosine schedule, while the variance is random. Gaussian diffusion is the special case . Non-Gaussian corruption changes only the scale law , so the same classifier can be trained under light-tailed, jump-like, or heavy-tailed perturbations.
We choose Gaussian scale mixtures because they keep the score target tractable while allowing non-Gaussian residuals. Conditional on , the corruption is Gaussian and isotropic. Marginally, however, the variance is random, so the residual distribution can place much more probability on large moves. This gives a controlled way to expose the classifier representation to market-shaped perturbations without changing the input schema or the inference-time architecture.
The additive-noise density is
Its score is radial:
where
The function can be interpreted as the posterior expected corruption precision, , as shown in more detail in Appendix G (Posterior-Precision Interpretation of ). Following Baule [2025], STOCHLOB tabulates this one-dimensional function by Monte Carlo over residual radii and diffusion steps, then interpolates it during training. Appendix B.1 establishes that this tabulation procedure is a self-normalized importance-sampling estimator [Geweke, 1989] of a Tweedie-type posterior expectation [Efron, 2011]. For each fixed , the estimator is strongly consistent, satisfies an explicit non-asymptotic error bound, and is asymptotically normal with a closed-form variance under the Gaussian, jump-Poisson, and clipped alpha-stable corruption laws used in this paper. This posterior-score view is a Gaussian scale-mixture instance of classical empirical-Bayes score identities [Andrews and Mallows, 1974, Efron, 2011].
The score loss is
The scalar is a deterministic per-step denoising-score-matching weight: for finite-variance Gaussian and jump corruptions, and for the reported clipped -stable runs. The classifier and score head share the temporal trunk, but only the classifier path is used at test time. The complete training objective is
4.3 Two Market-Shaped Corruptions
STOCHLOB (Lévy). The jump variant uses a Brownian background plus a compound-Poisson gamma variance:
This exposes the representation to mostly ordinary perturbations with occasional large shocks, matching the intuition of order sweeps or liquidity withdrawals.
STOCHLOB ( -stable). The stable variant uses
This creates polynomial-tail perturbations in the ideal case. The implementation clips A at a high quantile for numerical stability, giving a truncated-stable corruption law that remains much heavier-tailed than a Gaussian. Appendix A (Data Details, Alpha Selection, and Tail Diagnostics), especially Appendices A.2 and A.3, explains how and are selected without test leakage.
4.4 Architecture
All proposed variants use the same classifier family: optional BiN normalization, a two-layer bidirectional GRU, one temporal self-attention block with timestep conditioning, attention pooling, and a three-class classifier head. The score head is a training-only branch attached to the shared representation. Figure 2 shows the complete training workflow and the inference path without stochastic corruption. Using a shared architecture isolates the effect of the corruption law: changes in test behavior are attributable to the auxiliary stochastic objective rather than to a larger inference model. Training, inference, and score-table pseudocode are given in Appendix B (GSM Score Table) and Appendix D (Training and Inference Pseudocode).
TRAINING-ONLY: STOCHASTIC DIFFUSION (Forward Process)
(A) Compound Poisson Jump Diffusion (StochLOB-Levy)


Forward SDE with jumps:
Jump term (Compound Poisson):
(B) -Stable Diffusion (StochLOB- Stable)

Forward SDE with -stable noise:
Noise Schedule:
SEQUENCE ENCODER
BiGRU Encoder

Multi-Head Temporal Attention
Adaptive Layer Normalization
(AdaLN)
Attention Pooling
(Sequence Summary)
DUAL HEADS
Classifier Head (Inference)
MLP
Softmax
Score Head (Training)
MLP
Figure 2: StochLOB workflow. The classifier pools the unperturbed sequence representation for three trend logits. The training-only score decoder receives the noisy window, timestep embedding, and per-timestep trunk context, and predicts a score field. At inference, the corruption sampler and score decoder are disabled.
5 Datasets
We use point-in-time market data from crypto and equity order books. Appendix A gives the exact timestamps, feature construction, normalization, split counts, label calibration, and tail diagnostics.
Coinbase crypto. The main benchmark is Coinbase order-book and trade data for BTC, ETH, BNB, XRP, and USDT. The main text focuses on BTC as the deepest symbol; ETH, BNB, XRP, and USDT results are in Appendix E.
Feishu A-share universe. Feishu is a broader Chinese A-share transfer setting. Each asset-day combines intraday OFI summaries with daily OHLCV and technical variables. The transfer study evaluates the resulting directional probabilities through a common constrained portfolio rule, described in Appendix F.
6 Experiments
6.1 Experiment Setup
All Coinbase experiments use chronological 70/15/15 train, validation, and test splits, so every model is evaluated on later market periods than those used for training. Checkpoints are selected by validation macro-F1 and then frozen for all reported test metrics. The main tables use OFI windows with , , and horizons . Optimizer, corruption, seed-sweep, and Feishu transfer details are given in Appendix C.
6.2 Mid-Price Trend Prediction Results
Table 1 reports standard held-out BTC mid-price trend prediction results with seed-sweep variability. StochLOB (jump-Poisson) has the highest mean macro-F1 at , StochLOB (alpha-stable) at , and StochLOB variants are competitive at the remaining horizons. The standard-test ranking is mixed, so the proposed variants are not presented as across-the-board leaderboard winners. The primary claim is that non-Gaussian score corruption remains competitive on BTC and improves stability in realized tail-window regimes.
6.3 Stress Stability
Standard held-out trend prediction does not fully test behavior under difficult market states. Figure 1 shows the BTC stress comparison, and Table 2 reports a compact summary of extreme-window results across stress, high-variance, and jump-residual regimes. For each normalized OFI window, we average features across levels and compute one-step increments . The stress score is , the high-variance score is , and the jump-residual score is the residual from regressing on within the same horizon. Extreme windows are the top decile of the corresponding score. The full pre-specified regime-by-horizon grid is in Appendix Table 9, with implementation details in Appendix C. These comparisons support the paper's empirical claim: StochLOB variants are not uniformly best on standard held-out data, but heavy-tailed score corruption gives measurable stability gains in several tail-region test windows.
6.4 Feishu Portfolio Transfer
Table 3 and Figure 3 report the Feishu out-of-sample portfolio transfer check. The classifier is trained for mid-price direction; the fixed downstream portfolio rule tests whether its probabilities remain usable after frictions and trading constraints. Details are in Appendices F.1, F.2, and F.3. Among the active models shown, StochLOB (jump-Poisson) reaches 38.78% CAGR and Sharpe 1.04, with the lowest maximum drawdown and volatility.
7 Discussion
The central message of STOCHLOB is not that one architecture should dominate every standard benchmark cell. It is that the auxiliary corruption used for representation learning should match the regime in which robustness is needed. Crypto OFI inputs are heavy-tailed, ordinary Gaussian
| Model | k = 10 | k = 20 | ||
|---|---|---|---|---|
| Acc | F1 | Acc | F1 | |
| Logistic regression | 0.6607±0.0007 | 0.6591±0.0007 | 0.6061±0.0049 | 0.6089±0.0048 |
| Linear VAR | 0.6735±0.0009 | 0.6710±0.0008 | 0.6205±0.0017 | 0.6231±0.0015 |
| DeepLOB (CNN-LSTM) | 0.6338±0.0167 | 0.6284±0.0142 | 0.5591±0.0128 | 0.5535±0.0079 |
| BiN-CTABL | 0.6679±0.0045 | 0.6659±0.0041 | 0.6097±0.0027 | 0.6110±0.0024 |
| TLOB (Transformer) | 0.6783±0.0068 | 0.6754±0.0054 | 0.6127±0.0076 | 0.6142±0.0068 |
| OFSATNet | 0.6834±0.0027 | 0.6811±0.0026 | 0.6190±0.0109 | 0.6205±0.0099 |
| StochLOB (jump-Poisson) | 0.6891±0.0036 | 0.6866±0.0031 | 0.6212±0.0125 | 0.6230±0.0117 |
| StochLOB (alpha-stable) | 0.6885±0.0069 | 0.6848±0.0061 | 0.6274±0.0036 | 0.6275±0.0028 |
| Model | k = 50 | k = 100 | ||
|---|---|---|---|---|
| Acc | F1 | Acc | F1 | |
| Logistic regression | 0.5802±0.0040 | 0.5853±0.0039 | 0.5493±0.0019 | 0.5538±0.0019 |
| Linear VAR | 0.5948±0.0020 | 0.5998±0.0020 | 0.5632±0.0016 | 0.5689±0.0017 |
| DeepLOB (CNN-LSTM) | 0.5311±0.0140 | 0.5233±0.0176 | 0.5138±0.0284 | 0.5133±0.0300 |
| BiN-CTABL | 0.5736±0.0101 | 0.5764±0.0096 | 0.5411±0.0138 | 0.5445±0.0139 |
| TLOB (Transformer) | 0.5856±0.0201 | 0.5870±0.0185 | 0.5574±0.0127 | 0.5604±0.0117 |
| OFSATNet | 0.5828±0.0126 | 0.5861±0.0102 | 0.5418±0.0136 | 0.5438±0.0149 |
| StochLOB (jump-Poisson) | 0.6009±0.0152 | 0.6044±0.0140 | 0.5536±0.0200 | 0.5570±0.0212 |
| StochLOB (alpha-stable) | 0.5929±0.0069 | 0.5973±0.0066 | 0.5619±0.0137 | 0.5663±0.0134 |
Table 1: BTC OFI trend prediction on chronologically held-out windows. Accuracy (Acc) and macro-F1 are reported as mean±std over five seeds (13, 21, 42, 84, 168). Bold marks the best mean result in each horizon/metric column; underlining marks the second best.
| Regime | Best StochLOB | k | StochLOB F1 | Gaussian F1 | Best supervised | Gain vs. Gaussian | Gain vs. supervised |
|---|---|---|---|---|---|---|---|
| Stress | alpha-stable | 10 | 0.712 | 0.703 | TLOB 0.708 | +0.008 | +0.004 |
| Stress | alpha-stable | 100 | 0.647 | 0.604 | LogReg 0.614 | +0.043 | +0.034 |
| High variance | jump-Poisson | 20 | 0.686 | 0.680 | LinVAR 0.651 | +0.006 | +0.034 |
| High variance | alpha-stable | 50 | 0.658 | 0.603 | LinVAR 0.645 | +0.055 | +0.014 |
| High variance | alpha-stable | 100 | 0.659 | 0.613 | LinVAR 0.628 | +0.046 | +0.030 |
| Jump residual | alpha-stable | 100 | 0.637 | 0.567 | LinVAR 0.597 | +0.070 | +0.039 |
Table 2: Compact summary of extreme-window macro-F1 comparisons on held-out BTC regimes. Each row reports the best heavy-tailed StochLOB variant in that regime and horizon, the matched Gaussian StochLOB baseline, and the strongest supervised comparator in the same row. Best F1 in each row is shown in bold. Gains are absolute macro-F1 differences; Appendix Table 9 reports the full regime-by-horizon grid.
corruption is a limited proxy for market stress, and non-Gaussian score matching gives the shared representation a geometry that is more appropriate for large-residual states. The posterior-precision view of makes this mechanism explicit: as the residual magnitude changes, the score adapts to the corruption scale that is plausible under the chosen noise law.
There are limits. The compound-Poisson law is still isotropic after scaling; real book shocks are signed, level-correlated, and state dependent. The alpha-stable law is clipped for numerical stability, so the implementation is a truncated-stable training distribution rather than a pure infinite-variance process. Feishu also shows that robust probabilities are not automatically portfolio-ready; the alpha-stable model may need threshold or utility-aware calibration before its conservative signal becomes economically useful.
Future work should turn this into a sharper coverage criterion. The present corruptions improve radial coverage by making large residual magnitudes plausible during training, but they do not guarantee angular coverage: real book stress is signed, cross-level, and concentrated along a small number
| Model | CAGR(%) | Sharpe | Max DD(%) | Return(%) | Vol. (%) | Calmar | Win(%) | Avg. Hold. |
|---|---|---|---|---|---|---|---|---|
| LogReg | 28.03 | 0.69 | -28.41 | 28.03 | 46.28 | 0.99 | 47.72 | 167.3 |
| LinVAR | -38.66 | -0.71 | -49.75 | -38.66 | 52.35 | -0.78 | 43.98 | 11.3 |
| DeepLOB | 31.72 | 0.68 | -36.49 | 31.72 | 82.61 | 0.87 | 48.55 | 50.1 |
| TLOB | 17.56 | 0.55 | -29.04 | 17.56 | 46.28 | 0.60 | 53.11 | 961.5 |
| StochLOB (jump-Poisson) | 38.78 | 1.04 | -23.20 | 38.78 | 36.64 | 1.67 | 54.36 | 1861.0 |
Table 3: Feishu out-of-sample constrained portfolio metrics. Bold denotes the best result in each column across the shown active models. Other evaluated models are omitted because they mostly predict the flat class and therefore generate little or no trading activity.

Figure 3: Exploratory Feishu portfolio-management transfer result. Cumulative returns are shown for the constrained portfolio rule using StochLOB variants, supervised baselines, and the passive equal-weight reference.
of market directions. Appendix G, especially Appendix G.1, formalizes this with a second-order change-of-measure argument in which robustness transfer depends on both radial tail compatibility and an angular Rényi term that can dominate in high-dimensional LOB windows. This motivates four next steps: estimate state-dependent directional stress spectra and replace scalar with matrix-valued posterior precision; replay signed empirical jumps from real order-book residuals; separate the score loss and temporal readout with multi-seed ablations; and select portfolio thresholds on validation data under transaction costs and risk constraints.
8 Conclusion
This work reframes LOB diffusion regularization around the noise geometry observed in market data. STOCHLOB keeps inference as a deterministic classifier, but trains the shared representation with jump-like or heavy-tailed score-matching corruption. The resulting models remain competitive on standard Coinbase trend prediction, improve several realized stress-window diagnostics, and produce probabilities that can be tested under a constrained Feishu portfolio rule. Appendix G (Posterior-Precision Interpretation of ) proves that is a posteriori expected corruption precision; Appendices D (Training and Inference Pseudocode) and C (Experimental Setup and Implementation Details) provide the operational details.
References
Sergios Agapiou, Omiros Papaspiliopoulos, Daniel Sanz-Alonso, and Andrew M. Stuart. Importance sampling: Intrinsic dimension and computational cost. Statistical Science, 32(3):405–431, 2017. doi: 10.1214/17-STS611. URL https://doi.org/10.1214/17-STS611.
David F. Andrews and Colin L. Mallows. Scale mixtures of normal distributions. Journal of the Royal Statistical Society: Series B (Methodological), 36(1):99–102, 1974. doi: 10.1111/j.2517-6
161.1974.tb00989.x. URL https://doi.org/10.1111/j.2517-6161.1974.tb00989.x.
Hamidreza Bandealinaeini, Mohammad Sharifkhani, and Erfan Salavati. Attention-based multi-asset order flow networks for enhanced mid-price prediction. In Proceedings of the International Conference on AI in Finance, pages 525–533, 2025. doi: 10.1145/3768292.3770430. URL https://doi.org/10.1145/3768292.3770430.
Bojan Basrak, Richard A. Davis, and Thomas Mikosch. A characterization of multivariate regular variation. The Annals of Applied Probability, 12(3):908–920, 2002. doi: 10.1214/aoap/1031863174. URL https://doi.org/10.1214/aoap/1031863174.
Adrian Baule. Generative modelling with jump-diffusions. arXiv preprint arXiv:2503.06558, 2025. doi: 10.48550/arXiv.2503.06558. URL https://doi.org/10.48550/arXiv.2503.06558.
Leonardo Berti and Gjergji Kasneci. TLOB: A novel transformer model with dual attention for price trend prediction with limit order book data. arXiv preprint arXiv:2502.15757, 2025. doi:10.48550/arXiv.2502.15757. URL https://doi.org/10.48550/arXiv.2502.15757.
Nicholas H. Bingham, Charles M. Goldie, and Jozef L. Teugels. Regular Variation. Cambridge University Press, Cambridge, 1987.
Jean-Philippe Bouchaud, Marc Mézard, and Marc Potters. Statistical properties of stock order books: Empirical results and models. Quantitative Finance, 2(4):251–256, 2002. doi: 10.1088/1469-7688/2/4/301. URL https://doi.org/10.1088/1469-7688/2/4/301.
Stephen Boyd, Enzo Busseti, Steven Diamond, Ronald N. Kahn, Kwangmoo Koh, Peter Nystrup, and Jan Speth. Multi-period trading via convex optimization. Foundations and Trends in Optimization, 3(1):1–76, 2017. doi: 10.1561/2400000023. URL https://doi.org/10.1561/2400000023.
Stamatis Cambanis, Steel Huang, and Gordon Simons. On the theory of elliptically contoured distributions. Journal of Multivariate Analysis, 11(3):368–385, 1981. doi: 10.1016/0047-259X(81)90082-8. URL https://doi.org/10.1016/0047-259X(81)90082-8.
Rama Cont. Empirical properties of asset returns: Stylized facts and statistical issues. Quantitative Finance, 1(2):223–236, 2001. doi: 10.1080/713665670. URL https://doi.org/10.1080/713665670.
Rama Cont, Arseniy Kukanov, and Sasha Stoikov. The price impact of order book events. Journal of Financial Econometrics, 12(1):47–88, 2014. doi: 10.1093/jjfinec/nbt003. URL https://doi.org/10.1093/jjfinec/nbt003.
Corinna Cortes, Yishay Mansour, and Mehryar Mohri. Learning bounds for importance weighting. In Advances in Neural Information Processing Systems, volume 23, pages 442–450, 2010. URL https://papers.nips.cc/paper/4156-learning-bounds-for-importance-weighting.
Jacob Deasy, Nikola Simidjievski, and Pietro Liò. Heavy-tailed denoising score matching. arXiv preprint arXiv:2112.09788, 2021. doi: 10.48550/arXiv.2112.09788. URL https://doi.org/10.48550/arXiv.2112.09788.
Kamil Deja, Tomasz Trzcinski, and Jakub M. Tomczak. Learning data representations with joint diffusion models. CoRR, abs/2301.13622, 2023. doi: 10.48550/arXiv.2301.13622. URL https://doi.org/10.48550/arXiv.2301.13622.
Bradley Efron. Tweedie's formula and selection bias. Journal of the American Statistical Association, 106(496):1602–1614, 2011. doi: 10.1198/jasa.2011.tm11181. URL https://doi.org/10.1198/jasa.2011.tm11181.
John H. J. Einmahl, Laurens de Haan, and Vladimir I. Piterbarg. Nonparametric estimation of the spectral measure of an extreme value distribution. The Annals of Statistics, 29(5):1401–1423, 2001. doi: 10.1214/aos/1013203459. URL https://doi.org/10.1214/aos/1013203459.
Nicolae Gârleanu and Lasse Heje Pedersen. Dynamic trading with predictable returns and transaction costs. The Journal of Finance, 68(6):2309–2340, 2013. doi: 10.1111/jofi.12080. URL https://doi.org/10.1111/jofi.12080.
John Geweke. Bayesian inference in econometric models using monte carlo integration. Econometrica, 57(6):1317–1339, 1989. doi: 10.2307/1913710. URL https://doi.org/10.2307/1913710.
Martin D. Gould, Mason A. Porter, Stacy Williams, Mark McDonald, Daniel J. Fenn, and Sam D. Howison. Limit order books. Quantitative Finance, 13(11):1709–1742, 2013. doi: 10.1080/14697688.2013.803148. URL https://doi.org/10.1080/14697688.2013.803148.
Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, volume 33, pages 6840–6851, 2020. doi: 10.48550/arXiv.2006.11239. URL https://doi.org/10.48550/arXiv.2006.11239.
Wassily Hoeffding. Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association, 58(301):13–30, 1963. doi: 10.1080/01621459.1963.10500830. URL https://doi.org/10.1080/01621459.1963.10500830.
Weibing Huang, Charles-Albert Lehalle, and Mathieu Rosenbaum. Simulating and analyzing order book data: The queue-reactive model. Journal of the American Statistical Association, 110(509):107–122, 2015. doi: 10.1080/01621459.2014.982278. URL https://doi.org/10.1080/01621459.2014.982278.
Henrik Hult and Filip Lindskog. Multivariate extremes, aggregation and dependence in elliptical distributions. Advances in Applied Probability, 34(3):587–608, 2002.
Damian Kisiel and Denise Gorse. Axial-LOB: High-frequency trading with axial attention. In 2022 IEEE Symposium Series on Computational Intelligence (SSCI), pages 1327–1333, 2022. doi:10.1109/SSCI51031.2022.10022284. URL https://doi.org/10.1109/SSCI51031.2022.10022284.
Petter N. Kolm, Jeremy Turiel, and Nicholas Westray. Deep order flow imbalance: Extracting alpha at multiple horizons from the limit order book. Mathematical Finance, 33(4):1044–1081, 2023. doi: 10.1111/mafi.12413. URL https://doi.org/10.1111/mafi.12413.
Kenneth L. Lange, Roderick J. A. Little, and Jeremy M. G. Taylor. Robust statistical modeling using the t distribution. Journal of the American Statistical Association, 84(408):881–896, 1989. doi:10.1080/01621459.1989.10478852. URL https://doi.org/10.1080/01621459.1989.10478852.
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. doi: 10.48550/arXiv.1711.05101. URL https://doi.org/10.48550/arXiv.1711.05101.
Thomas A. Louis. Finding the observed information matrix when using the em algorithm. Journal of the Royal Statistical Society: Series B (Methodological), 44(2):226–233, 1982. doi: 10.1111/j.2517-6161.1982.tb01203.x. URL https://doi.org/10.1111/j.2517-6161.1982.tb01203.x.
Benoit B. Mandelbrot. The variation of certain speculative prices. The Journal of Business, 36(4): 394–419, 1963. doi: 10.1086/294632. URL https://doi.org/10.1086/294632.
Robert C. Merton. Option pricing when underlying stock returns are discontinuous. Journal of Financial Economics, 3(1–2):125–144, 1976. doi: 10.1016/0304-405X(76)90022-2. URL https://doi.org/10.1016/0304-405X(76)90022-2.
Szabolcs Mike and J. Doyne Farmer. An empirical behavioral model of liquidity and volatility. Journal of Economic Dynamics and Control, 32(1):200–234, 2008. doi: 10.1016/j.jedc.2007.01.025. URL https://doi.org/10.1016/j.jedc.2007.01.025.
Art B. Owen. Monte carlo theory, methods and examples, 2013. URL https://artowen.su.domains/mc/. Online book.
Kushagra Pandey, Jaideep Pathak, Yilun Xu, Stephan Mandt, Michael Pritchard, Arash Vahdat, and Morteza Mardani. Heavy-tailed diffusion models. In International Conference on Learning Representations, 2025. doi: 10.48550/arXiv.2410.14171. URL https://doi.org/10.48550/arXiv.2410.14171.
Alfréd Rényi. On measures of entropy and information. In Proceedings of the Fourth Berkeley Symposium on Mathematical Statistics and Probability, volume 1, pages 547–561, 1961.
Sidney I. Resnick. Heavy-Tail Phenomena: Probabilistic and Statistical Modeling. Springer, New York, 2007. doi: 10.1007/978-0-387-45024-7. URL https://doi.org/10.1007/978-0-387-45024-7.
Gennady Samorodnitsky and Murad S. Taqqu. Stable Non-Gaussian Random Processes: Stochastic Models with Infinite Variance. Chapman & Hall, New York, 1994. ISBN 978-0-412-05171-5. URL https://www.routledge.com/Stable-Non-Gaussian-Random-Processes-Stochastic-Models-with-Infinite-Variance/Samorodnitsky-Taqqu/p/book/9780412051715.
Dario Shariatian, Umut Simsekli, and Alain Durmus. Heavy-tailed diffusion with denoising lévy probabilistic models. In International Conference on Learning Representations, 2025. doi:10.48550/arXiv.2407.18609. URL https://doi.org/10.48550/arXiv.2407.18609.
Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021. doi: 10.48550/arXiv.2011.13456. URL https://doi.org/10.48550/arXiv.2011.13456.
Dat Thanh Tran, Alexandros Iosifidis, Juho Kanniainen, and Moncef Gabbouj. Temporal attention-augmented bilinear network for financial time-series data analysis. IEEE Transactions on Neural Networks and Learning Systems, 30(5):1407–1418, 2019. doi: 10.1109/TNNLS.2018.2869225. URL https://doi.org/10.1109/TNNLS.2018.2869225.
Dat Thanh Tran, Juho Kanniainen, Moncef Gabbouj, and Alexandros Iosifidis. Data normalization for bilinear structures in high-frequency financial time-series. In 2020 25th International Conference on Pattern Recognition (ICPR), pages 7287–7292, 2021. doi: 10.1109/ICPR48806.2021.9412547. URL https://doi.org/10.1109/ICPR48806.2021.9412547.
Aad W. van der Vaart. Asymptotic Statistics. Cambridge University Press, 1998. doi: 10.1017/CBO9780511802256. URL https://doi.org/10.1017/CBO9780511802256.
Tim van Erven and Peter Harremoës. Rényi divergence and kullback–leibler divergence. IEEE Transactions on Information Theory, 60(7):3797–3820, 2014. doi: 10.1109/TIT.2014.2320500. URL https://doi.org/10.1109/TIT.2014.2320500.
Pascal Vincent. A connection between score matching and denoising autoencoders. Neural Computation, 23(7):1661–1674, 2011. doi: 10.1162/NECO_a_00142. URL https://doi.org/10.1162/NECO_a_00142.
Zhuohan Wang and Carmine Ventre. DiffVolume: Diffusion models for volume generation in limit order books. In Proceedings of the 6th ACM International Conference on AI in Finance, pages 587–595, 2025. doi: 10.1145/3768292.3770413. URL https://doi.org/10.1145/3768292.3770413.
Zhuohan Wang and Carmine Ventre. DiffLOB: Diffusion models for counterfactual generation in limit order books. In Proceedings of the 35th International Joint Conference on Artificial Intelligence (IJCAI-ECAI 2026), 2026. doi: 10.48550/arXiv.2602.03776. URL https://doi.org/10.48550/arXiv.2602.03776.
Mike West. On scale mixtures of normal distributions. Biometrika, 74(3):646–648, 1987. doi:10.1093/biomet/74.3.646. URL https://doi.org/10.1093/biomet/74.3.646.
Yue Xiao, Carmine Ventre, Yuhan Wang, Haochen Li, Yuxi Huan, and Buhong Liu. LiT: Limit order book transformer. Frontiers in Artificial Intelligence, 8:1616485, 2025. doi: 10.3389/frai.2025.1616485. URL https://doi.org/10.3389/frai.2025.1616485.
Xingyi Yang and Xinchao Wang. Diffusion model as representation learner. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 18938–18949, 2023. doi: 10.1109/ICCV51070.2023.01736. URL https://doi.org/10.1109/ICCV51070.2023.01736.
Eun Bi Yoon, Keehun Park, Sungwoong Kim, and Sungbin Lim. Score-based generative models with lévy processes. In Advances in Neural Information Processing Systems, volume 36, pages 40694–40707, 2023. doi: 10.52202/075280-1772. URL https://doi.org/10.52202/075280-1772.
A. Zaigraev. On asymptotic properties of multidimensional -stable densities. Mathematische Nachrichten, 279(16):1835–1854, 2006. doi: 10.1002/mana.200310459. URL https://doi.org/10.1002/mana.200310459.
Zihao Zhang, Stefan Zohren, and Stephen Roberts. DeepLOB: Deep convolutional neural networks for limit order books. IEEE Transactions on Signal Processing, 67(11):3001–3012, 2019. doi:10.1109/TSP.2019.2907260. URL https://doi.org/10.1109/TSP.2019.2907260.
Zetao Zheng, Guoan Li, Deqiang Ouyang, Decui Liang, and Jie Shao. Limit order book event stream prediction with diffusion model. arXiv preprint arXiv:2412.09631, 2024. doi: 10.48550/arXiv.2412.09631. URL https://doi.org/10.48550/arXiv.2412.09631.
Muyao Zhong, Yushi Lin, and Peng Yang. Representation learning of limit order book: A comprehensive study and benchmarking. arXiv preprint arXiv:2505.02139, 2025. doi: 10.48550/arXiv.2505.02139. URL https://doi.org/10.48550/arXiv.2505.02139.
A Data Details, Alpha Selection, and Tail Diagnostics
A.1 Coinbase Crypto Protocol and LOB Representation
The Coinbase dataset covers BTC, ETH, BNB, XRP, and USDT. The raw data were crawled from Coinbase as paired order-book and trade CSV files and then normalized into the shared parquet schema used by the experiments. The feed is sampled every 10 seconds from 2026-06-18 23:42:10 UTC to approximately 2026-07-13 23:10:40 UTC, giving 26 calendar dates and roughly 213k snapshots per symbol. Each input window has steps, so it covers 10 minutes of recent book and trade-flow state. Prediction horizons correspond to 100, 200, 500, and 1000 seconds.
At sampling time , the exchange exposes the top bid and ask levels. Bid level is the -th highest buy price and ask level is the -th lowest sell price, so
With aggregate resting volumes and , a depth- snapshot is
The level-1 spread is , and the mid-price is . The Coinbase raw snapshot columns are , sampled into 10-second bins before OFI and auxiliary feature construction.
OFI mode uses 20 bid/ask order-flow coordinates plus the 11 auxiliary features in Table 5. Feature extraction is per calendar day for order-flow differences. Normalization is a causal trailing rolling z-score over the chronological series, using a 2000-bin window. Thus a feature at bin uses only statistics from the past and current bin, never future test data.
Following Cont et al. [2014] and Kolm et al. [2023], cumulative OFI for level over an interval is
All Coinbase splits are chronological: 70% train, 15% validation, and 15% test. A window is assigned to a split only when its look-back context and future label horizon remain inside the same raw interval. This prevents overlapping windows from leaking across train/test boundaries. Table 4 reports the crawl coverage and raw test-start boundary for each crypto symbol.
For BTC, the row-index split boundaries are 2026-06-18 23:42:10 UTC for the first training row, 2026-07-06 11:40:10 UTC for the first validation row, and 2026-07-10 05:24:10 UTC for the first test row; the final raw timestamp is 2026-07-13 23:10:40 UTC. Because the input look-back and label horizon must remain inside the test interval, the first BTC test label center is 2026-07-10 05:34:00 UTC. The last label centers are 2026-07-13 23:09:00, 23:07:20, 23:02:10, and 22:53:50 UTC for , respectively; in all four cases the final future label timestamp is 2026-07-13 23:10:40 UTC. Table 6 gives the resulting BTC split sizes and train-calibrated label thresholds by horizon.
| Symbol | Snapshots | Raw start (UTC) | Raw end (UTC) | Test start (UTC) |
|---|---|---|---|---|
| BNB | 213,679 | 2026-06-18 23:42:10 | 2026-07-13 23:10:30 | 2026-07-10 05:24:30 |
| BTC | 213,335 | 2026-06-18 23:42:10 | 2026-07-13 23:10:40 | 2026-07-10 05:24:10 |
| ETH | 213,593 | 2026-06-18 23:42:10 | 2026-07-13 23:10:30 | 2026-07-10 05:28:10 |
| USDT | 213,448 | 2026-06-18 23:42:10 | 2026-07-13 23:10:40 | 2026-07-10 05:27:10 |
| XRP | 213,752 | 2026-06-18 23:42:10 | 2026-07-13 23:10:30 | 2026-07-10 05:27:40 |
Table 4: Coinbase crawl coverage and chronological test-start timestamps computed from the normalized local parquet files. Test start denotes the raw snapshot index at the 85% chronological split boundary before applying horizon-specific look-back and future-label validity constraints.
| Block | Features |
|---|---|
| Microstructure | spread/mid; log total bid-depth over total ask-depth; one-step log mid-return |
| Trade flow | log buy volume; log sell volume; signed trade imbalance; log trade count; VWAP deviation from mid |
| Activity proxies | log trade count; spread/mid; absolute one-step log mid-return |
Table 5: The 11 auxiliary features appended to the 20 OFI levels. Repeated activity proxies are intentional substitutes for unavailable intra-bin quote-update counts in the resampled exchange feed.
| k | Real time | Train | Val. | Test | |
|---|---|---|---|---|---|
| 10 | 100 s | 0.000093 | 147,218 | 31,831 | 31,932 |
| 20 | 200 s | 0.000189 | 147,208 | 31,821 | 31,922 |
| 50 | 500 s | 0.000362 | 147,178 | 31,791 | 31,892 |
| 100 | 1000 s | 0.000543 | 147,087 | 31,741 | 31,842 |
Table 6: BTC split sizes and train-calibrated label thresholds. Other crypto symbols use the same protocol with symbol-specific thresholds.
A.2 How Is Selected
The label threshold controls the dead band between “stationary” and a directional move. For crypto, it is calibrated on the training split only. We first compute the smoothed-mid trend ratio from Eq. (1) over the training interval, then set
This gives an approximately balanced three-class split while preserving the chronological validation and test intervals. If a config sets label_alpha to a positive number, that fixed value is used instead; the Coinbase experiments reported here use label_alpha: -1, meaning train-only calibration.
For Feishu mid-price experiments, the default label mode is quantile rather than a symmetric fixed band. The training-split return distribution is cut at the 1/3 and 2/3 quantiles:
Labels are down for , stationary for , and up for . The same thresholds are then frozen for validation and out-of-sample portfolio evaluation. A fixed band is also available, but the Feishu mid-price experiments reported here use label_mode: "quantile" and class_quantiles: [0.3333, 0.6667].
A.3 How the Alpha-Stable Tail Index Is Selected
The alpha-stable parameter is separate from . It controls the tail thickness of the training corruption: smaller values show the score head larger perturbations more often, while recovers Gaussian-type behavior. We select this quantity from training data, not from validation or test performance.
For the Coinbase configs, is based on a Hill/Pareto tail estimate of normalized OFI magnitudes. The pooled diagnostic gives , which motivated the heavy-tailed corruption family. The final per-symbol configs use clipped symbol-specific estimates in the practical range [1.2, 1.9], shown in Table 7. BTC therefore uses a slightly heavier-than-Gaussian setting near the observed OFI tail, while BNB is clipped at the upper end because its estimate is closer to light-tailed behavior under this diagnostic.
For Feishu, we do not reuse the crypto per-symbol calibration because the task is a broad A-share transfer experiment with daily asset windows and a different market microstructure. The Feishu alpha-stable configs therefore use as a conservative heavy-tailed transfer default. This value is not tuned on the out-of-sample portfolio period.
| Symbol | BTC | ETH | BNB | XRP | USDT |
|---|---|---|---|---|---|
| used for -stable corruption | 1.687 | 1.731 | 1.900 | 1.615 | 1.685 |
Table 7: Coinbase alpha-stable corruption indices from train-only OFI tail calibration.
A.4 Heavy-Tail Evidence
The distribution-fit diagnostics rank candidate laws by Kolmogorov-Smirnov distance on subsampled series. Figure 4 shows the BTC mid-price-increment and feature-PC1 distribution fits. Across all crypto symbols, the normal reference is not the leading fit. For mid-price increments, it ranks 11th (BTC), 13th (BNB), 12th (ETH), 20th (XRP), and 16th (USDT) among roughly 83 candidates. For the first principal component of the full feature tensor, the normal ranks are 31st, 65th, 25th, 40th, and 26th. Feishu shows the same direction: normal ranks 24th for mid-price increments and 63rd for the first feature principal component. Figure 5 gives the pooled OFI tail evidence used to motivate the alpha-stable family.

(a) BTC mid-price increments

(b) BTC feature PC1
Figure 4: Heavy-tail distribution-fit diagnostics. The dashed normal reference is not the leading fit: it ranks 11th for BTC increments and 31st for the first principal component of the feature tensor.

absolute OFI, divided by symbol median
Figure 5: Log-log complementary CDF of pooled absolute crypto OFI, normalized by symbol median. The top 5% Hill/Pareto fit gives , supporting heavy-tailed OFI corruption.
A.5 Feishu Data Details
The Feishu dataset is the larger Chinese A-share protocol used for the portfolio transfer experiment. The feature tensor has 259 coordinates per asset-day. The first 240 coordinates are intraday OFI features: 24 trading-day slots times 10 book levels. The slot grid uses the Chinese A-share continuous trading sessions: 09:40, 09:50, ..., 11:20 in the morning and 13:00, 13:10, ..., 15:00 in the afternoon.
Table 8: Feishu data and evaluation protocol.
| Block | Feishu protocol |
|---|---|
| Universe | 2,306 Chinese A-share symbols |
| Rows | 1,606,720 asset-day observations |
| Features | 240 intraday OFI and 19 daily features |
| Slots | 24 ten-minute morning/afternoon slots |
| History | 50 trading days per model input |
| Splits | 756,787 train; 189,882 validation; 542,612 out-of-sample |
| Period | Two years in-sample; one year out-of-sample |
OFI is computed at the tick level within each asset-day, aligned to the 10-minute slot marks, and zero-filled for off-grid 5-minute bars. The OFI block is normalized with a causal 5-day rolling z-score and clipped to .
The remaining 19 coordinates are daily OHLCV and technical variables: 1-, 5-, 10-, and 20-day returns; 5- and 20-day volatility; Amihud illiquidity; volume z-score; 14-day RSI; distances from 5- and 20-day moving averages; open-to-close return; high-low range; close-VWAP distance; and raw open, close, volume, low, and high. These daily features are cross-sectionally standardized across assets on the same day and clipped to the same numeric range as the OFI block. Table 8 summarizes the Feishu universe, feature count, splits, and evaluation period.
B GSM Score Table
For , , and , the marginal density is
Differentiating under the integral gives
Dividing by yields Eq. (5). The table is therefore one-dimensional in the radius even though for the crypto dataset. Appendix G gives the complete posterior-precision proof and its Gaussian, jump, and alpha-stable corollaries.
Algorithm 1 BuildScoreTable
Require: diffusion horizon ; corruption sampler ; dimension ; grid size ; Monte Carlo size Ensure: per-timestep radius grids and radial precision values
1: for do 2: draw 3: draw 4: estimate typical radii 5: set quantile 6: create on 7: for each do 8: compute log weights 9: set 10: set 11: end for 12: end for 13: return
B.1 Monte Carlo Justification
Algorithm 1 estimates by replacing the two expectations in Eq. (6) with Monte Carlo averages. The argument below is pointwise in the tabulated radius: reusing one batch of draws across the radius grid creates correlation between grid entries, but it does not change the marginal guarantee at any fixed grid point.
Fix a timestep and a radius . Here , so negative values are outside the domain. We state the Monte Carlo guarantee for positive radii only. The table may include as a numerical interpolation endpoint, but Proposition 1 does not claim a finite-sample bound there for the clipped alpha-stable law: the bounds in Lemma 1 diverge as . If is bounded away from zero, as in the Gaussian and jump-Poisson corruptions used here, the same ratio-estimator argument extends to with bounds based on that lower bound. For clipped alpha-stable corruption, the zero endpoint would require separate negative-moment/concentration conditions. This is fine because under continuous Gaussian-mixture corruption, sampled training residuals satisfy : conditional on any realization , the residual is absolutely continuous, so
Taking expectation over gives . Define
and write
Then . The empirical table entry is
Since , this is equivalently
The table value is therefore a self-normalized importance-sampling estimator (Geweke, 1989; see also Owen, 2013, Ch. 9 for a general treatment). The proposal is the corruption law , the unnormalized target is
and the estimated quantity is
By Proposition 2, this is the Tweedie-type posterior expected corruption precision .
Lemma 1 (Pointwise boundedness). For every ,
Both bounds are finite for fixed r > 0.
Proof. Both functions have the form , with for and for . Since
the unique critical point is . Also as and as , so this critical point is the global maximum. Evaluating gives
Substituting and gives the two displayed bounds.
This boundedness is the only fact needed to cover the corruption laws used in the paper. For Gaussian corruption, is the point mass . For the jump-Poisson law,
For the clipped alpha-stable law,
The clipped law may still have support arbitrarily close to zero, but for any fixed Lemma 1 makes and bounded uniformly over . Thus and are finite, and .
Proposition 1 (Statistical accuracy of one score-table entry). Fix t and , and let be the Gaussian, jump-Poisson, or clipped alpha-stable corruption law used by StochLOB. Then:
This is the usual consistency property of self-normalized importance-sampling estimators [Geweke, 1989]. Moreover, for any , if
then with probability at least ,
This gives a finite-sample guarantee of the kind developed for importance-sampling estimators more generally [Agapiou et al., 2017]. Finally,
This is the corresponding asymptotic normality result for this estimator class (Geweke, 1989; Owen, 2013, Ch. 9), where
For deterministic Gaussian corruption this variance is zero, recovering the exact value .
Proof. Lemma 1 gives and . The strong law of large numbers therefore gives
almost surely. Since , the continuous mapping theorem gives almost surely.
For the finite-sample statement, write
Algebra gives
By Lemma 1, and . Hoeffding's inequality [Hoeffding, 1963] and a union bound imply that, with probability at least ,
The stated lower bound on ensures on this event. Substitution gives the displayed non-asymptotic error bound.
For asymptotic normality, apply the multivariate central limit theorem to
Its covariance is finite by Lemma 1. The delta method [van der Vaart, 1998] applied to , whose gradient at is
yields an asymptotic variance
Using gives the stated closed form.
The proposition shows that the Monte Carlo part of the table has the usual pointwise error scale, with a variance determined by how much posterior-weighted precision varies under the corruption law. The log-sum-exp computation in Algorithm 1 implements the same ratio estimator in a numerically stable form. Linear interpolation and clamping are deterministic post-processing steps applied after the grid values have been estimated; they do not change the pointwise Monte Carlo claim above, although they add the ordinary discretization error of a finite radius grid.
StochLOB (Lévy) uses , . StochLOB ( -stable) uses , . Training radii are linearly interpolated and clamped beyond the largest tabulated radius. The Gaussian limit recovers , so no table is needed for a purely Gaussian baseline.
C Experimental Setup and Implementation Details
C.1 Shared Architecture
Both STOCHLOB variants use optional BiN normalization, a two-layer bidirectional GRU with 64 hidden units per direction, one DiT-style temporal self-attention block with four heads and adaLN-Zero timestep conditioning, attention pooling for trend classification, and a small convolutional score head. The corruption law and loss differ; the inference path without stochastic corruption is the same. Figure 2 shows the workflow in the main text.
C.2 Optimization
Optimization is fixed across the proposed models: AdamW [Loshchilov and Hutter, 2019], learning rate , default moments , , weight decay , and a per-update schedule with 500 linear warmup steps followed by cosine decay over the planned training steps. We also use gradient clipping at 1.0, label smoothing 0.1, and dropout 0.2. Coinbase runs use batch size 64 and at most 80 epochs with patience 15. Feishu runs use batch size 256 and at most 30 epochs. Checkpoints are selected by validation macro-F1 on unperturbed windows, not by the score loss, because the final deployed model is a classifier. The diffusion auxiliary weight is . The jump-Poisson setting uses a variance-preserving schedule with and gamma jump shape/scale 1. The alpha-stable setting clips the positive stable scale at the 0.999 quantile.
All reported Coinbase configuration files set device: "cuda" and use single-GPU workers. The reported training runs and checkpoint artifact repair/validation were carried out on a single NVIDIA GeForce RTX 4090 worker with 24 GB VRAM. The StochLOB classifier trunk has about 0.53M trainable parameters. Logged per-sample forward costs for the supervised baselines range from effectively zero for linear models to about 0.122 GFLOPs for Axial-LOB; DeepLOB and TLOB are logged at about 0.093 and 0.061 GFLOPs/sample, respectively. The score-table Monte Carlo preprocessing is performed once per corruption law and schedule and is reused by the training runs.
C.3 Crypto Evaluation
For each symbol and horizon, all baselines use the same chronological train/validation/test windows, the same feature normalization, and the same train-calibrated label thresholds. Standard held-out metrics are accuracy and macro-F1 on the held-out test interval. The main paper reports BTC; the appendix reports ETH, BNB, XRP, and USDT. Seed-sweep results are reported as mean and sample standard deviation over seeds 13, 21, 42, 84, 168.
The realized stress evaluation freezes the trained checkpoint and partitions held-out BTC windows by statistics computed from the observed test inputs. The stress score is the maximum one-step level-averaged feature increment divided by realized volatility; the variance score is the realized variance of those increments; and the jump-residual score is the residual from regressing the largest increment on realized variance in log-log space. This keeps the data split, trained weights, class thresholds, and decision rule fixed while testing the regimes where stochastic score-matching corruption should matter.
C.4 Feishu Evaluation
Feishu uses a two-year in-sample period and one-year out-of-sample release period. The in-sample period is split chronologically per asset into train/validation windows. The out-of-sample period is never used for label thresholds, normalization decisions, checkpoint selection, or trading threshold selection. Model probabilities are exported day by day and consumed by the common portfolio engine described in Appendix F.
D Training and Inference Pseudocode
Algorithms 1, 2, and 3 give the operational recipe. The score table is constructed once per corruption law and schedule; training then uses table interpolation for each sampled residual norm.
Algorithm 2 TRAINNONGAUSSIANLOB
Require: training windows ; classifier ; score head ; corruption sampler ; score table ; loss weight
Ensure: checkpoint with best validation macro-F1
1: for epoch = 1, ..., E do 2: for minibatch do 3: compute unperturbed logits 4: compute 5: sample diffusion step 6: sample variance and noise 7: form and 8: interpolate from the score table 9: compute target score 10: compute 11: update using 12: end for 13: evaluate validation macro-F1 on unperturbed windows and save the best checkpoint 14: end for
Algorithm 3 INFERSTOCHLOB
Require: normalized LOB window ; trained classifier path
Ensure: class probabilities for down, stationary, and up
1: pass through the same causal normalization used in training
2: encode the unperturbed window through BiGRU, temporal attention, and pooling
3: compute trend logits
4: return
The corruption sampler, score table, score head, and reverse diffusion process are not used at inference.
E Additional Crypto Results
The main paper keeps the Coinbase exchange table focused on BTC. This appendix reports the remaining coins so the reader can see whether the same story survives beyond one crypto pair. Table 10 reports ETH, BNB, XRP, and USDT across all horizons. Within each symbol and horizon, bold marks the best accuracy or macro-F1 value and underlining marks the second-best value under the same standard held-out test protocol as the main table. A partial rule separates the two proposed non-Gaussian models from the standard baselines. The broader pattern is deliberately mixed: linear and attention baselines remain strong on several standard benchmark cells, while StochLOB (alpha-stable) wins the BNB short-horizon cell and is competitive on ETH, XRP, and USDT. StochLOB (jump-Poisson) is frequently near the top, consistent with the main claim that market-shaped score corruption need not sacrifice standard predictive quality to improve stress-regime behavior. Table 11 provides the per-class precision, recall, and F1 breakdown for BTC at , illustrating how each model distributes errors among the three trend classes. Realized BTC stress-window diagnostics are reported in the main paper in Figure 1 and Table 2; the complete stress-regime grid is reported in Table 9.
| Regime | k | Best heavy-tailed StochLOB | StochLOB F1 | Gaussian F1 | Best supervised | Gain vs Gaussian | Gain vs supervised | |
|---|---|---|---|---|---|---|---|---|
| Stress | 10 | alpha-stable | 0.712 | 0.703 | TLOB 0.708 | +0.008 | +0.004 | 3194 |
| Stress | 20 | alpha-stable | 0.655 | 0.663 | LinVAR 0.648 | -0.007 | +0.007 | 3193 |
| Stress | 50 | jump-Poisson | 0.610 | 0.592 | TLOB 0.611 | +0.019 | -0.001 | 3190 |
| Stress | 100 | alpha-stable | 0.647 | 0.604 | LogReg 0.614 | +0.043 | +0.034 | 3185 |
| High variance | 10 | alpha-stable | 0.695 | 0.665 | TLOB 0.697 | +0.031 | -0.002 | 3194 |
| High variance | 20 | jump-Poisson | 0.686 | 0.680 | LinVAR 0.651 | +0.006 | +0.034 | 3193 |
| High variance | 50 | alpha-stable | 0.658 | 0.603 | LinVAR 0.645 | +0.055 | +0.014 | 3190 |
| High variance | 100 | alpha-stable | 0.659 | 0.613 | LinVAR 0.628 | +0.046 | +0.030 | 3185 |
| Jump residual | 10 | alpha-stable | 0.696 | 0.679 | TLOB 0.693 | +0.017 | +0.003 | 3194 |
| Jump residual | 20 | jump-Poisson | 0.643 | 0.651 | BiN-CTABL 0.622 | -0.008 | +0.021 | 3193 |
| Jump residual | 50 | jump-Poisson | 0.602 | 0.565 | TLOB 0.607 | +0.036 | -0.005 | 3190 |
| Jump residual | 100 | alpha-stable | 0.637 | 0.567 | LinVAR 0.597 | +0.070 | +0.039 | 3185 |
Table 9: Complete BTC extreme-window macro-F1 grid underlying Table 2. Each row uses the top held-out windows for the named regime and horizon. The table reports the better of the two heavy-tailed StochLOB variants, the matched Gaussian StochLOB baseline, and the best supervised comparator in the same tail subset. Best F1 in each row is shown in bold. Rows with negative gains are retained rather than filtered out.
F Feishu Portfolio Management Details
F.1 Models and Prediction Targets
Every Feishu model is trained to predict the same three-class next-period mid-price trend target:
The portfolio experiment does not introduce a separate trading model. It uses the classifier probabilities
as alpha signals. This makes the downstream transfer test direct: if the learned probabilities contain useful directional information, a constrained portfolio rule should be able to convert them into positive out-of-sample performance. The experiment is therefore a check of probability usability, not a claim that the paper designs a deployable trading system.
F.2 Portfolio Construction
The Feishu portfolio experiment uses the out-of-sample release period only for the exploratory portfolio evaluation. In-sample data are used as causal warmup history for rolling features such as returns, volatility, RSI, and the 5-day OFI normalizer. For each model and each trading day , the signal is computed from the historical window ending at . The portfolio rule receives and converts the probabilities into positions. Assets with sufficiently
| Symbol | Model | k = 10 | k = 20 | k = 50 | k = 100 | ||||
|---|---|---|---|---|---|---|---|---|---|
| Acc | F1 | Acc | F1 | Acc | F1 | Acc | F1 | ||
| ETH | LogReg | 0.6669 | 0.6653 | 0.6304 | 0.6334 | 0.5975 | 0.5999 | 0.5573 | 0.5614 |
| ETH | LinVAR | 0.6913 | 0.6876 | 0.6518 | 0.6550 | 0.6033 | 0.6074 | 0.5686 | 0.5734 |
| ETH | DeepLOB | 0.6615 | 0.6543 | 0.5752 | 0.5754 | 0.5471 | 0.5464 | 0.4793 | 0.4829 |
| ETH | BiN-CTABL | 0.6857 | 0.6820 | 0.6467 | 0.6484 | 0.5771 | 0.5792 | 0.5464 | 0.5501 |
| ETH | TLOB | 0.6840 | 0.6793 | 0.6389 | 0.6412 | 0.5606 | 0.5624 | 0.5826 | 0.5782 |
| ETH | OFSATNet | 0.6987 | 0.6951 | 0.6538 | 0.6562 | 0.5861 | 0.5875 | 0.5715 | 0.5769 |
| ETH | StochLOB (jump-Poisson) | 0.6889 | 0.6851 | 0.6505 | 0.6525 | 0.5992 | 0.6017 | 0.5592 | 0.5640 |
| ETH | StochLOB (alpha-stable) | 0.7001 | 0.6950 | 0.6573 | 0.6593 | 0.5915 | 0.5939 | 0.5712 | 0.5737 |
| BNB | LogReg | 0.6730 | 0.6725 | 0.6320 | 0.6343 | 0.5803 | 0.5837 | 0.5352 | 0.5378 |
| BNB | LinVAR | 0.6863 | 0.6855 | 0.6467 | 0.6493 | 0.5822 | 0.5860 | 0.5334 | 0.5366 |
| BNB | DeepLOB | 0.6405 | 0.6357 | 0.5547 | 0.5533 | 0.4515 | 0.4472 | 0.4020 | 0.3787 |
| BNB | BiN-CTABL | 0.6765 | 0.6771 | 0.6068 | 0.6084 | 0.5446 | 0.5469 | 0.4804 | 0.4833 |
| BNB | TLOB | 0.6856 | 0.6858 | 0.6247 | 0.6252 | 0.5510 | 0.5481 | 0.5049 | 0.5065 |
| BNB | OFSATNet | 0.7012 | 0.7005 | 0.6311 | 0.6327 | 0.5561 | 0.5582 | 0.5039 | 0.5052 |
| BNB | StochLOB (jump-Poisson) | 0.7019 | 0.7006 | 0.6356 | 0.6367 | 0.5742 | 0.5768 | 0.5086 | 0.5113 |
| BNB | StochLOB (alpha-stable) | 0.7096 | 0.7086 | 0.6227 | 0.6244 | 0.5660 | 0.5691 | 0.5057 | 0.5093 |
| XRP | LogReg | 0.6485 | 0.6492 | 0.6167 | 0.6197 | 0.6114 | 0.6162 | 0.5764 | 0.5822 |
| XRP | LinVAR | 0.6686 | 0.6677 | 0.6238 | 0.6268 | 0.6173 | 0.6218 | 0.5870 | 0.5931 |
| XRP | DeepLOB | 0.6027 | 0.6024 | 0.5292 | 0.5301 | 0.4922 | 0.4868 | 0.4818 | 0.4855 |
| XRP | BiN-CTABL | 0.6489 | 0.6496 | 0.6076 | 0.6091 | 0.5729 | 0.5764 | 0.5495 | 0.5519 |
| XRP | TLOB | 0.6606 | 0.6587 | 0.6164 | 0.6129 | 0.5759 | 0.5808 | 0.5391 | 0.5445 |
| XRP | OFSATNet | 0.6758 | 0.6740 | 0.6290 | 0.6298 | 0.6092 | 0.6080 | 0.5423 | 0.5484 |
| XRP | StochLOB (jump-Poisson) | 0.6508 | 0.6515 | 0.6086 | 0.6108 | 0.6052 | 0.6071 | 0.5495 | 0.5550 |
| XRP | StochLOB (alpha-stable) | 0.6739 | 0.6731 | 0.6203 | 0.6226 | 0.6010 | 0.6011 | 0.5830 | 0.5809 |
| USDT | LogReg | 0.6298 | 0.6315 | 0.5956 | 0.5974 | 0.5735 | 0.5716 | 0.5467 | 0.5425 |
| USDT | LinVAR | 0.6339 | 0.6360 | 0.6023 | 0.6047 | 0.5761 | 0.5738 | 0.5524 | 0.5484 |
| USDT | DeepLOB | 0.5903 | 0.5888 | 0.5376 | 0.5363 | 0.5309 | 0.5160 | 0.5211 | 0.5161 |
| USDT | BiN-CTABL | 0.6249 | 0.6266 | 0.5768 | 0.5792 | 0.5508 | 0.5504 | 0.5107 | 0.5110 |
| USDT | TLOB | 0.6324 | 0.6330 | 0.5817 | 0.5827 | 0.5500 | 0.5535 | 0.5256 | 0.5196 |
| USDT | OFSATNet | 0.6364 | 0.6378 | 0.5932 | 0.5944 | 0.5644 | 0.5563 | 0.5320 | 0.5318 |
| USDT | StochLOB (jump-Poisson) | 0.6283 | 0.6290 | 0.5881 | 0.5884 | 0.5710 | 0.5721 | 0.5329 | 0.5274 |
| USDT | StochLOB (alpha-stable) | 0.6475 | 0.6493 | 0.5990 | 0.6007 | 0.5635 | 0.5687 | 0.5369 | 0.5401 |
Table 10: Additional crypto held-out test Accuracy (Acc) and Macro-F1 (F1) under the same model scope as the main table. Bold marks the best value within each symbol and horizon; underlining marks the second-best value.
| Class (k = 10) | StochLOB (jump-Poisson) | StochLOB (alpha-stable) | ||||
|---|---|---|---|---|---|---|
| P | R | F1 | P | R | F1 | |
| down | 0.7023 | 0.6188 | 0.6579 | 0.7516 | 0.6052 | 0.6705 |
| stationary | 0.6685 | 0.7389 | 0.7019 | 0.6646 | 0.7655 | 0.7115 |
| up | 0.6805 | 0.6679 | 0.6741 | 0.6805 | 0.6794 | 0.6800 |
Table 11: BTC per-class precision (P), recall (R), and F1 at .
high up probability are eligible for buying, while assets with sufficiently high down probability are eligible for partial selling.
The backtest uses an initial capital of RMB 50 million. The same constraints are applied to every model: 100-share lot size, commission rate , stamp-duty rate on sells, RMB 5 minimum commission, T+1 sell lock, a cash buffer, and a minimum-holdings target of 10 names. These rules matter for Chinese A-share data. A signal that is statistically useful but unstable can create high turnover and cost drag; a signal that is too conservative can fail to trade. The portfolio experiment therefore measures whether the model output remains usable after realistic market constraints.
The daily rule has three steps. First, held assets are examined for exit. A held asset is fully sold when and the predicted class is down, subject to the T+1 sell lock and the minimum-holdings constraint. If a held asset is predicted flat and was not already fully sold, the strategy sells of the sellable shares. Second, new buys are selected from assets with and predicted class up. Third, available capital after the cash buffer is allocated equally across the selected buy candidates. Orders are rounded to 100-share lots, buy executions use the morning VWAP entry price, and sell executions use the configured close-price sell mode. The model therefore controls which assets are traded, while the portfolio engine keeps sizing and market rules common across all methods.
We also include a passive equal-weight index. On each out-of-sample day it holds all valid assets equally and applies the same one-day VWAP-entry-to-close return convention. It is not an active trading strategy and it does not pay transaction costs in this implementation. Its purpose is to show whether a learned signal adds value relative to broad market exposure.
F.3 Out-of-Sample Portfolio Metrics
The main out-of-sample portfolio metrics are reported in Table 3, and the cumulative-return comparison is shown in Figure 3. We keep the numeric table in the main text because it is the economic summary most directly connected to the experimental story. This appendix gives the construction details needed to interpret those numbers.
The most important implementation point is that the portfolio engine is shared across models. A model can improve the backtest only by changing the probability triplet used for buy, hold, and sell decisions; it cannot change position sizing, execution prices, transaction-cost assumptions, or market constraints. In the reported run, several evaluated architectures produced mostly flat predictions during the out-of-sample window and therefore did not produce meaningful active portfolios under the common thresholds. These inactive runs are omitted from Table 3 so that the main comparison focuses on strategies that actually trade.
G Posterior-Precision Interpretation of
Proposition 2 (Posterior-precision interpretation for isotropic Gaussian scale mixtures). Fix a noise index . Suppose almost surely and
Let . Then
Moreover,
Hence is the posterior expected corruption precision and is non-increasing in the residual magnitude. In particular, residual adaptation is a property of the random scale-mixture family itself: it is absent when is deterministic and is strict when the scale distribution is non-degenerate.
Proof. For fixed w, write
The component score is
Since
the condition
provides sufficient integrability to interchange differentiation and expectation in the expressions below. Therefore,
Dividing by gives
By Bayes' rule in expectation form,
for any integrable function . Taking therefore gives
Comparing this identity with
proves the first equality. Because the Gaussian components are isotropic, the posterior depends on u only through , giving
To establish monotonicity, let
and define
Since
Eq. (6) can be written as
Indeed,
The same Bayes weighting gives, for ,
Differentiating with respect to s gives
and
Hence
and
Now,
so
Since
it follows that
Finally, using ,
If is non-degenerate, the Gaussian likelihood is strictly positive for every , so posterior weighting cannot collapse the scale to a single value. The posterior variance is therefore strictly positive and for . Thus is strictly decreasing for every genuinely random scale mixture.
Proposition 2 provides an intuitive interpretation of the function and, consequently, of the score target in Eq. (7). In particular, it shows that is the posterior expected corruption precision, , given the observed residual magnitude. Gaussian scale mixtures are a classical latent-variable construction for symmetric non-Gaussian and heavy-tailed distributions [Andrews and Mallows, 1974, West, 1987]. The identity that a marginal score is obtained by posterior averaging of latent component scores is a standard latent-variable score identity [Louis, 1982]; in score-based terms, it is closely connected to the conditional-score identities underlying denoising score matching [Vincent, 2011] and modern score-based diffusion/SDE formulations [Song et al., 2021]. The posterior-precision interpretation is also related in spirit to empirical-Bayes score identities such as Tweedie's formula [Efron, 2011]; here, however, the latent quantity being inferred is the corruption precision rather than an unknown clean mean. The result is not specific to one non-Gaussian corruption law: it holds for the whole isotropic Gaussian scale-mixture family. Proposition 3 gives a complementary uncertainty interpretation of the same latent-scale posterior, after which the corollaries separate the family-level cases that are relevant to the corruptions used in StochLOB.
Proposition 3 (Posterior uncertainty of the latent component score). Under the conditions of Proposition 2, define the score of the Gaussian component associated with the latent scale as
Then the marginal score is the posterior mean of this latent component score,
and its posterior covariance is
Consequently, define the scalar posterior score uncertainty by
Then
Thus the same posterior uncertainty in corruption precision that makes residual-adaptive also measures uncertainty about the component-level restoring score.
Proof. By the component-score identity above,
Conditioning on the observed residual u and applying Proposition 2 gives
Since u is fixed under this conditional distribution,
where the last equality again follows from isotropy. Taking the trace and using
gives
Finally, Proposition 2 gives
SO
This is posterior uncertainty induced by the latent corruption scale ; it does not represent parameter uncertainty in the learned score network.
Corollary 1 (Deterministic-scale corruption). Suppose deterministically for some . Then
and
Thus deterministic-scale Gaussian corruption uses a fixed restoring precision, independent of the residual magnitude. StochLOB (Gaussian) is the particular case .
Proof. If almost surely, then almost surely. Proposition 2 therefore gives
so . Substituting into Eq. (5) gives the score expression.
Corollary 2 (Non-degenerate random-scale corruption). Suppose the scale distribution of is non-degenerate. Then, for every ,
Hence every genuinely random isotropic Gaussian scale mixture has a strictly residual-adaptive posterior precision: as the residual magnitude increases, the per-unit restoring precision decreases. The jump-Poisson and alpha-stable scale-mixture corruptions used in StochLOB are examples of this random-scale family.
Proof. By Proposition 2,
For a non-degenerate scale distribution, the posterior distribution of remains non-degenerate for every finite residual because the Gaussian likelihood is strictly positive for every . Hence the posterior variance is strictly positive, and for .
The resulting reduction in effective precision for larger residuals is consistent with the classical robustness interpretation of heavy-tailed scale-mixture models, such as Student-t error models, in which extreme residuals exert less influence than under Gaussian errors [Lange et al., 1989]. Corollary 2 strengthens this intuition for the present setting by establishing strict residual adaptation for every non-degenerate isotropic Gaussian scale mixture satisfying the proposition's regularity conditions.
Corollary 3 (Bounded random-scale corruption). Suppose the scale distribution is non-degenerate and satisfies
almost surely for some finite . Then
and, for r > 0,
Thus bounded random-scale corruption retains residual adaptation but has a positive precision floor. If the scale distribution also places positive probability at , then
Proof. Since , taking reciprocals gives
Therefore, by Proposition 2,
Strict decrease follows from Corollary 2.
For the limiting statement, assume the scale distribution places positive probability at . For any smaller scale , the Gaussian likelihood ratio relative to the maximal-scale component is
Since , this ratio tends to zero as . Consequently, increasingly large residuals are dominated by the maximal-scale component, and the posterior expected precision converges to .
Corollary 4 (Polnomially heavy-tailed radial corruption). Suppose the isotropic marginal corruption density can be written as
and, for some m > d,
for all sufficiently large r, where is differentiable and satisfies
Then
and consequently
Thus polynomially heavy-tailed radial corruptions have the stronger far-tail property that the absolute restoring score eventually decreases toward zero.
Proof. For an isotropic density,
Comparing with Eq. (5) gives
Since ,
Therefore,
and multiplying by r gives the stated score-magnitude asymptotic.
The family-level results above include the corruption choices used in StochLOB as particular examples. For StochLOB (Gaussian), deterministically, so Corollary 1 gives the fixed precision .
For StochLOB (jump-Poisson),
For a nontrivial jump step , this scale distribution is non-degenerate, so Corollary 2 gives for . In addition, almost surely, so
for every finite residual. Thus the jump-Poisson corruption is one concrete random-scale construction in which the effective posterior precision falls below the fixed Gaussian value as the residual grows.
For the ideal, unclipped isotropic -stable corruption, the connection between stable laws and Gaussian scale mixtures is classical [West, 1987], while the standard far-tail density behavior [Samorodnitsky and Taqqu, 1994] is
The corresponding smooth density asymptotics for multidimensional -stable laws [Zaigraev, 2006] give the derivative behavior required by Corollary 4, with . Hence
and
Thus the ideal alpha-stable construction is an example of the stronger polynomial-tail geometry in which both the per-unit restoring precision and the absolute restoring score weaken in the far tail.
For the clipped alpha-stable corruption implemented in StochLOB,
and
The resulting scale is non-degenerate, bounded above by , and places positive probability at the maximal scale because of clipping. Corollary 3 therefore gives
with
Thus clipping preserves residual-adaptive downweighting but imposes a positive precision floor in the extreme tail.
These statements provide a theoretical mechanism that complements the paper's empirical stress results rather than replacing them. They do not imply that every non-Gaussian corruption must improve macro-F1. Instead, they show that the proposed non-Gaussian objectives possess a family-level residual-adaptation mechanism that the Gaussian baseline cannot possess. This interpretation is complementary to recent work that replaces Gaussian perturbations by heavy-tailed or Lévy alternatives in denoising score matching and diffusion models [Deasy et al., 2021, Yoon et al., 2023, Pandey et al., 2025, Shariatian et al., 2025]: rather than proposing a new generative reverse process, the analysis here isolates the posterior-precision mechanism induced by the latent scale in the supervised StochLOB objective. Proposition 3 further shows that, when the corruption scale is random, the same latent-scale posterior also induces uncertainty about the component-level restoring score, with this posterior score uncertainty determined by the variance of the latent corruption precision. Thus the non-Gaussian scale-mixture objectives differ from the Gaussian baseline not only in how their effective restoring precision adapts to the observed residual, but also in allowing uncertainty over the latent corruption scale underlying that restoration. The stress experiments determine whether these structural properties are useful for the observed LOB prediction problem.
G.1 Mathematical Rationale for Future Work
The future directions in Section 7 follow from two related facts. First, the current score target is a posterior precision. Second, robustness transfer from a training corruption law to an unseen stress law is controlled by both the size and the direction of the shocks covered by the training law.
From scalar precision to stress coverage. At a fixed noise scale, the present model uses an isotropic scale mixture
This identifies the quantity that future work should generalize: the scalar posterior precision . The next question is whether a corruption law that is useful during training also covers a deployment stress law . Let be the loss incurred under a perturbation , and assume the perturbation is a nuisance for the label,
If , Cauchy–Schwarz gives the second-order transfer bound, familiar from importance weighting [Cortes et al., 2010]:
Thus the training objective can transfer to stress only when two quantities are controlled: a training-side second moment and the coverage constant . This is a sufficient condition, not a claim that large necessarily implies poor accuracy. The same constant governs the sample size required for importance sampling, where it is known to grow with an intrinsic dimension of the mismatch [Agapiou et al., 2017].
The fixed-scale statement matches the implementation because noise levels are sampled from a finite grid. If a scale is sampled with probability and loss weight , a weighted average objective controls the per-scale loss up to the factor . For a continuous schedule, an analogous deployed statement would require a finite average or supremum of over .
Radial–angular factorization. Write , where and . Suppose the stress law and corruption law have regularly varying tails
uniformly in , following the standard radial–angular form of multivariate regular variation [Bingham et al., 1987, Resnick, 2007, Basrak et al., 2002]. Here and are tail indices, and are slowly varying radial factors, and are angular densities with respect to the uniform probability measure on the sphere. Splitting the integral at gives
where
The angular term is the exponentiated order-2 Rényi divergence [Rényi, 1961, van Erven and Harremoës, 2014]. The radial factor is finite when and divergent when ; the critical case depends on the slowly varying term. This explains why Gaussian corruption is a weak stress proxy for heavy-tailed LOB residuals: a Gaussian decays exponentially, while a heavy-tailed decays polynomially, so is not integrable in the far tail.
The factorization also shows a limitation of the current isotropic design. Heavy tails improve radial coverage, but they do not automatically cover the directions in which market stress occurs. If the corruption allocates mass uniformly over directions while realized stress lies near a low-dimensional signed order-flow subspace, the angular term can make the bound numerically vacuous even when the radial tail index is adequate.
| CV(λ) | symmetric spectrum | skewed spectrum | exp(D2/2) (sym.) | ||
|---|---|---|---|---|---|
| D2 | exp(D2) | D2 | exp(D2) | ||
| 0.01 | 0.09 | 1.1 | 0.09 | 1.1 | 1.05 |
| 0.05 | 2.32 | 2.37 | 3.2 | ||
| 0.10 | 9.26 | 10.0 | |||
| 0.20 | 36.6 | 47.1 | |||
Table 12: Angular penalty at and . The symmetric spectrum places half the coordinates at and half at ; the skewed spectrum places the excess on of the coordinates. The angular factor multiplies the coverage constant, and its square root multiplies the transfer bound.
High-dimensional angular penalty. The scale of this effect is large for LOB windows. Let be an elliptical stress law with shape matrix , eigenvalues normalized to unit mean, and tail index [Cambanis et al., 1981, Hult and Lindskog, 2002]. Against isotropic corruption, define
The angular divergence has the exact representation
For a nearly spherical spectrum, with , the cumulant expansion gives
The coefficient is proportional to dimension. For the crypto LOB window used in this paper, , so keeping this angular exponent near order one requires approximately . A spectral dispersion can multiply by about , which inflates the square-root transfer bound by about .
Table 12 makes the design implication explicit: future corruption laws should not only be heavy-tailed; they should also estimate the spectral geometry of realized stress, for which nonparametric angular-measure estimators exist [Einmahl et al., 2001].
State-dependent and level-correlated shocks. Let denote the observed market state before corruption; queue-reactive models show that order-flow intensities depend strongly on this state [Huang et al., 2015]. Replace the scalar variance by a positive-definite random covariance . Student- and -stable diffusion kernels are special cases of this scale-mixture construction [Pandey et al., 2025, Shariatian et al., 2025]:
The score becomes
Thus is replaced by the posterior precision matrix . This extension keeps the same posterior-score principle, but lets the corruption focus probability mass on the level pairs, assets, and temporal coordinates where stress is empirically concentrated.
Signed empirical jump replay. Real order-book jumps are not only large; they are signed and structured. This can be represented by a random jump vector and covariance :
Bayes' rule gives the score target
The current model is the special case and . An empirical jump-replay extension would estimate from observed order-book shock residuals, so the auxiliary task would learn not only how much to denoise a large residual, but also which signed shock pattern made that residual plausible. In the coverage notation above, this is a way to reduce both the radial mismatch and the angular Rényi penalty.
Ablations and seed-level uncertainty. The training objective can be written as
where controls score matching. For any evaluation metric M, the marginal effect of the score loss can be measured by
Across m random seeds, the uncertainty of either effect can be reported as
This is the direct way to quantify the contribution of the score target. The same design can compare temporal readouts by treating the readout family as a controlled factor and reporting paired seed-level differences in M.
Cost-aware portfolio thresholds. Let be the portfolio generated from model probabilities using threshold vector , let be next-period asset returns, and let denote transaction costs. A validation-tuned threshold should solve
This is the single-period mean–variance objective with transaction costs studied by Gårleanu and Pedersen [2013] and Boyd et al. [2017]; the threshold vector replaces their continuous trade variable. Here is a risk estimate and controls risk aversion. This makes the Feishu extension explicit: the classifier supplies probabilities, but the final trading rule should be selected by expected net utility under market frictions, not by fixed cutoffs chosen independently of costs.