Manuscript Offprint

arXiv:2611.02866

TensorLOB: Structure-Preserving Tensor Learning for Limit Order Book Forecasting

Yuxuan Gu, Danilo Mandic

ABSTRACT

The limit order book (LOB) records outstanding buy and sell orders across multiple price levels. Its state evolves over time across market side, price level, and order attribute, naturally forming a multi-way structure. However, existing LOB models typically flatten these dimensions into a matrix model, thus obscuring the existing structural relationships. Starting from first principles and the market-microstructure intuition of the LOB, we design TensorLOB to operate entirely in the tensor domain. TensorLOB uses mode-wise tensor contractions for feature extraction and directly contracts the learned representation with low-rank class-weight tensors for prediction, retaining the distinct roles of time, side, level, and attribute modes. Experiments on the FI-2010 benchmark show that TensorLOB achieves the highest accuracy, recall, and F1 score across all four evaluated horizons. This proof of concept highlights the potential of high-dimensional modelling of multi-way latent information intrinsic to financial markets, which has so far been largely overlooked.

Index Terms— Limit Order Book, Mid-Price Prediction, Tensor Classification, CP Decomposition, Deep Learning

1. INTRODUCTION

The limit order book (LOB) records outstanding buy and sell orders of a traded asset at multiple price levels. Its state evolves whenever orders are submitted, cancelled, or executed, potentially affecting the best bid and ask prices. Predicting short-term movements of the mid-price, which is the average of the best ask and bid prices, is therefore important for market making, execution, and high-frequency risk management. Yet this remains a challenging prediction problem since LOB data are noisy and non-stationary, while the resulting movement classes are often highly imbalanced [1].

At each event, the LOB comprises two sides: ask and bid. Each side is arranged over an ordered sequence of price levels, with price and volume providing different attributes. Across successive events, those changes capture how orders on both sides evolve over time. Hence, a LOB history is naturally a higher-order tensor, with time, market side, price level and attribute as tensor modes.

Despite the naturally multiway structure of LOB, most existing deep LOB prediction methods do not consider the full higher-order structure of the book throughout representation learning. Convolutional, recurrent, attention-based, and bilinear architectures have achieved strong predictive performance [2, 3, 4, 5], but operate on vectorized or matricized representations that collapse several economically meaningful LOB dimensions into a single feature axis. Consequently, market side, price level, and order attribute are not retained as distinct modes, and their structural relationships must instead be learned implicitly from data, yielding a weaker inductive bias for LOB modelling. This motivates a prediction framework

Figure

Fig. 1. A snapshot of a limit order book snapshot at a single event.

that preserves and exploits the native multiway structure of the LOB throughout representation learning, as the subject of this work.

To this end, we propose TensorLOB, a structure-preserving neural model that operates directly on the tensor representation of LOB data. TensorLOB uses the native LOB modes to guide representation learning throughout the network. Mode-aware normalization captures temporal and cross-sectional variation, while multi-head Kronecker-factorized tensor projections learn mode-specific interactions without collapsing the side and level axes. Finally, the tensor classifier combines information across time, side, level and learned features for mid-price movement prediction.

The proposed structure-preserving design is evaluated over comprehensive experiments against the state-of-the-art (SOTA) on the FI-2010 benchmark [1]. Our proposed TensorLOB achieves the highest mean accuracy, weighted recall, and weighted F1 across a range of prediction horizons. Such consistent performance gains indicate that explicitly preserving the native LOB structure provides an effective inductive bias for mid-price movement prediction.

In summary, our main contributions are threefold:

  • We derive TensorLOB from first-principles market-microstructure intuition, representing the LOB through its native time, side, level, and attribute modes and performing the prediction pipeline entirely in the tensor domain.

  • We develop a structure-preserving architecture based on mode-wise tensor contractions for feature extraction and low-rank class-weight tensors for prediction, enabling mode-specific interactions while retaining the native multiway structure of the LOB.

  • We conduct extensive experiments on the FI-2010 benchmark, demonstrating consistent improvements in accuracy and weighted F1 across multiple prediction horizons over vectorized, bilinear, recurrent, and conventional baselines.

Figure

Fig. 2. An overview of the TensorLOB architecture with multi-head tensor projection layers and a tensor classifier.

References (20)