Paper: arXiv 2502.15757
Abstract
Price Trend Prediction (PTP) based on Limit Order Book (LOB) data is a fundamental challenge in financial markets. Despite advances in deep learning, existing models fail to generalize across different market conditions and assets. Surprisingly, by adapting a simple MLP-based architecture to LOB, we show that we surpass SoTA performance; thus, challenging the necessity of complex architectures. Unlike past work that shows robustness issues, we propose TLOB, a transformer-based model that uses a dual attention mechanism to capture spatial and temporal dependencies in LOB data. This allows it to adaptively focus on the market microstructure, making it particularly effective for longer-horizon predictions and volatile market conditions. We also introduce a new labeling method that improves on previous ones, removing the horizon bias. We evaluate TLOB’s effectiveness across four horizons, using the established FI-2010 benchmark, a NASDAQ and a Bitcoin dataset. TLOB outperforms SoTA methods in every dataset and horizon. Additionally, we empirically show how stock price predictability has declined over time, -6.68 in F1-score, highlighting the growing market efficiency. Predictability must be considered in relation to transaction costs, so we experimented with defining trends using an average spread, reflecting the primary transaction cost. The resulting performance deterioration underscores the complexity of translating trend classification into profitable trading strategies. We argue that our work provides new insights into the evolving landscape of stock price trend prediction and sets a strong foundation for future advancements in financial AI. We release the code at https://github.com/LeonardoBerti00/TLOB.
Complexity vs Empirical Score
- Math Complexity: 6.0/10
- Empirical Rigor: 7.5/10
- Quadrant: Holy Grail — high math complexity, high empirical rigor
Why this score: The paper introduces a novel transformer architecture with dual attention mechanisms, indicating moderate-to-high mathematical sophistication. It demonstrates strong empirical rigor by evaluating on multiple real-world datasets (FI-2010, NASDAQ, Bitcoin), providing specific performance metrics (F1-score improvements), and conducting ablation studies, with code released for reproducibility.
Research Flowchart
flowchart TD A["Research Goal: Price Trend Prediction<br>from Limit Order Book Data"] --> B["Methodology: TLOB Model<br>Dual Attention Mechanism"] B --> C["Input Data: FI-2010, NASDAQ, Bitcoin<br>LOB Data with New Labeling"] C --> D["Computational Process:<br>Spatial & Temporal Attention"] D --> E["Key Findings: SoTA Performance<br>Across All Horizons & Datasets"] E --> F["Additional Insight:<br>Declining Predictability<br>vs Transaction Costs"]
Cited References (194)
- A tutorial on energy-based learning (2006)
- Wasserstein generative adversarial networks (2017)
- The double auction market institution: A survey (2018)
- Transformers in time series: A survey (2022) — link
- Generative adversarial nets (2014)
- Deep generative models: Survey (2018)
- Denoising diffusion probabilistic models (2020)
- Deep unsupervised learning using nonequilibrium thermodynamics (2015)
and 186 more
- Deep AutoRegressive Networks (2014) — link
- TRADES: Generating Realistic Market Simulations with Diffusion Models — → 2502.07071
- Axial-LOB: High-Frequency Trading with Axial Attention (2022) — link
- Wavenet: A generative model for raw audio (2016) — link
- Nice: Non-linear independent components estimation (2014) — link
- Variational Inference with Normalizing Flows (2015) — link
- Scalable diffusion models with transformers (2023)
- PyTorch: An Imperative Style, High-Performance Deep Learning Library (2019) — link
- Machine learning in asset pricing (2021)
- Notes from the AI frontier: Tackling bias in AI (and in humans) (2019)
- Benefits and risks of using AI in trading (2023)
- Handbook of Price Impact Modeling (2023)
- Adam: A method for stochastic optimization (2014) — link
- Symbolic discovery of optimization algorithms (2023) — link
- Csdi: Conditional score-based diffusion models for probabilistic time series imputation (2021)
- Modeling temporal data as continuous functions with stochastic process diffusion (2023)
- Auto-encoding variational bayes (2013) — link
- Simplified State Space Layers for Sequence Modeling (2023) — link
- Generating realistic stock market order streams (2020)
- Generative time series forecasting with diffusion, denoise, and disentanglement (2022)
- Diffusion Models for Time Series Applications: A Survey (2023) — link
- Generating realistic neurophysiological time series with denoising diffusion probabilistic models (2023) — link
- Modeling Time Series Data with Deep Learning: A Review, Analysis, Evaluation and Future Trend (2020) — link
- Agent-based simulation of a financial market (2001) — link
- Financial market simulation (2004)
- Deep reinforcement learning in agent based financial market simulation (2020)
- A brief review of recent artificial market simulation (agent-based model) studies for financial market regulations and/or rules (2016)
- Microscopic simulation of financial markets: from investor behavior to market phenomena (2000)
- Generative modeling by estimating gradients of the data distribution (2019)
- Limit Order Book Simulation with Generative Adversarial Networks (2023)
- Forecasting stock prices from the limit order book using convolutional neural networks (2017)
- Using deep learning to detect price change indications in financial markets (2017)
- The information content of an open limit-order book (2009)
- Deep reinforcement learning for trading (2020)
- Deeplob: Deep convolutional neural networks for limit order books (2019)
- Benchmark Dataset for Mid-Price Forecasting of Limit Order Book Data with Machine Learning Methods
- The Price Impact of Order Book Events (2013) — link
- A survey on long short-term memory networks for time series prediction (2021)
- Limit Order Book Simulations: A Review — → 2402.17359
- Recurrent neural networks: design and applications (1999)
- Long short-term memory (1997)
- State dependent parallel neural hawkes process for limit order book event stream prediction and simulation (2022)
- Trades, Quotes and Prices: Financial Markets Under the Microscope (2018) — link
- Attention is all you need (2017)
- Advances in financial machine learning (2018)
- Temporal attention-augmented bilinear network for financial time-series data analysis (2018)
- Forecasting the mid-price movements with high-frequency lob: a dual-stage temporal attention-based deep learning architecture (2023)
- Multi-Horizon Forecasting for Limit Order Books: Novel Deep Learning Approaches and Hardware Acceleration using Intelligent Processing Units (2021) — link
- Axial-lob: High-frequency trading with axial attention (2022)
- Attention-based neural bag-of-features learning for sequence data (2022)
- Transformers for limit order books (2020) — link
- Data normalization for bilinear structures in high-frequency financial time-series (2021)
- Using deep learning for price prediction by exploiting stationary limit order book features (2020)
- Temporal logistic neural bag-of-features for financial time series forecasting leveraging limit order book data (2020)
- Deep adaptive input normalization for time series forecasting (2019)
- How markets slowly digest changes in supply and demand (2009)
- The price impact of order book events (2014)
- Scaling laws for neural language models (2020) — link
- On Correlated Stock Market Time Series Generation (2023)
- Neural Stochastic Agent-Based Limit Order Book Simulation: A Hybrid Methodology (2023) — link
- Diffusion models beat gans on image synthesis (2021)
- Market-GAN: Adding Control to Financial Market Data Generation with Semantic Context (2024) — link
- A generative model of a limit order book using recurrent neural networks (2023)
- Learning to simulate realistic limit order book markets from data as a World Agent (2022)
- Experiment Tracking with Weights and Biases (2020) — link
- Conditional generators for limit order book environments: Explainability, challenges, and robustness (2023)
- Get real: Realism metrics for robust limit order book market simulations (2020)
- Modeling and simulation of a double auction artificial financial market (2005)
- 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 — → 2309.00638
- Towards realistic market simulations: a generative adversarial networks approach (2021)
- Lob-based deep learning models for stock price trend prediction: a benchmark study (2024)
- High frequency trading (2015)
- Machine learning for forecasting mid-price movements using limit order book data (2019)
- Learning phrase representations using RNN encoder-decoder for statistical machine translation (2014) — link
- Deep residual learning for image recognition (2016)
- Language models are few-shot learners (2020) — link
- Classifier-free diffusion guidance (2022) — link
- A tutorial on principal component analysis (2014) — link
- Denoising diffusion implicit models (2020) — link
- Sequence to Sequence Learning with Neural Networks (2014) — link
- Effective approaches to attention-based neural machine translation (2015) — link
- Time-series classification using neural bag-of-features (2017)
- Axial attention in multidimensional transformers (2019) — link
- Reducing the market impact of large shares of intermittent energy in Denmark (2010)
- Optimal execution of portfolio transactions (2001)
- Reinforcement learning for quantitative trading (2023)
- Large tick assets: implicit spread and optimal tick size (2015)
- The high-frequency trading arms race: Frequent batch auctions as a market design response (2015)
- Effects of price regulations and dark pools on financial market stability: an investigation by multiagent simulations (2016)
- The compelling case for stronger and more effective leverage regulation in banking (2014)
- Benefits and limits of circuit breaker: Institutional design using artificial futures market (2011)
- Algorithmic trading (2011)
- A review of backtesting and backtesting procedures (2005)
- Does the stock market overreact? (1985)
- Noise (1986)
- Noise trader risk in financial markets (1990)
- Implementing statistical criteria to select return forecasting models: what do we learn? (1999)
- Model uncertainty, thick modelling and the predictability of stock returns (2005)
- Data-snooping, technical trading rule performance, and the bootstrap (1999)
- Murphy’s law and market anomalies (1999)
- Price impact (2009) — link
- Securities transaction taxes: an overview of costs, benefits and unresolved questions (1993)
- Price limit performance: evidence from the Tokyo Stock Exchange (1997)
- Visualizing data using t-SNE. (2008)
- Mlp-mixer: An all-mlp architecture for vision (2021)
- Gaussian error linear units (gelus) (2016) — link
- Transformers in vision: A survey (2022)
- Algorithmic trading methods: Applications using advanced statistics, optimization, and machine learning techniques (2020)
- Are transformers effective for time series forecasting? (2023)
- Score-based generative modeling through stochastic differential equations (2020) — link
- Maximum likelihood training of score-based diffusion models (2021)
- Universal features of price formation in financial markets: perspectives from deep learning (2021)
- Deep learning in finance and banking: A literature review and classification (2020)
- Financial time series forecasting with deep learning: A systematic literature review: 2005–2019 (2020)
- Deep learning for financial applications: A survey (2020)
- How informative is the order book beyond the best levels? Machine learning perspective (2022) — link
- Deep learning for limit order books (2019)
- Measuring the information content of stock trades (1991)
- Order placement strategies in a pure limit order book market (2008)
- What pieces of limit order book information do are informative? an empirical analysis of a pure order-driven market (2003)
- Market microstructure and stock return predictions (1994)
- Stock price forecasting with deep learning: A comparative study (2020)
- ABIDES: Towards high-fidelity multi-agent market simulation (2020)
- Backtesting (2015)
- Reliable fidelity and diversity metrics for generative models (2020)
- Deep learning for financial time series forecasting in a-trader system (2017)
- A stochastic model for order book dynamics (2010)
- Bert: Pre-training of deep bidirectional transformers for language understanding (2018) — link
- Simplified state space layers for sequence modeling (2022) — link
- Autoregressive denoising diffusion models for multivariate probabilistic time series forecasting (2021)
- Smoothness and stability in gans (2020) — link
- Tackling the generative learning trilemma with denoising diffusion gans (2021) — link
- Regular time-series generation using sgm (2023) — link
- Time-series generative adversarial networks (2019)
- An agent based model of the E-Mini S&P 500 applied to Flash Crash analysis (2012)
- The construction of the canonical history of financial economics (2008)
- Proof that properly discounted present values of assets vibrate randomly (1973)
- Efficient capital markets (1970)
- A Non-Random Walk Down Wall Street (2002) — link
- Global Hedge Fund Report. — link
- Man versus machine: on artificial intelligence and hedge funds performance (2022) — link
- Do day traders rationally learn about their ability (2010)
- Day trading for a living? (2020)
- Media-aware quantitative trading based on public Web information (2014) — link
- The man who solved the market: How Jim Simons launched the quant revolution (2019)
- Simulating and analyzing order book data: The queue-reactive model (2015)
- Statistical modeling of high-frequency financial data (2011)
- Limit order books (2013)
- Empirical properties of asset returns: stylized facts and statistical issues (2001)
- Statistical properties of stock order books: empirical results and models (2002)
- The random character of stock market prices (1964)
- The adaptive markets hypothesis: Market efficiency from an evolutionary perspective (2004)
- Calcul des chances et philosophie de la bourse (1863)
- Th 'e orie de la sp 'e culation (1900)
- Structured denoising diffusion models in discrete state-spaces (2021)
- Elucidating the design space of diffusion-based generative models (2022)
- Improved denoising diffusion probabilistic models (2021)
- D2c: Diffusion-decoding models for few-shot conditional generation (2021)
- Conditional text image generation with diffusion models (2023)
- Ar-diffusion: Auto-regressive diffusion model for text generation (2024)
- Vidm: Video implicit diffusion models (2023)
- Video diffusion models (2022)
- Catastrophic forgetting and mode collapse in GANs (2020)
- Efficient estimation of word representations in vector space (2013) — link
- Distributed representations of words and phrases and their compositionality (2013)
- Linguistic regularities in continuous space word representations (2013)
- The Power of Depth for Feedforward Neural Networks (2016) — link
- High-resolution image synthesis with latent diffusion models (2022)
- The microgeographies of global finance: High-frequency trading and the construction of information inequality (2017)
- Improving language understanding by generative pre-training (2018)
- On Lewis’ simulation method for point processes (1981)
- Volatility clustering in financial markets: empirical facts and agent-based models (2007)
- Analysis and modeling of client order flow in limit order markets (2023)
- Fast agent-based simulation framework of limit order books with applications to pro-rata markets and the study of latency effects (2020) — link
- JAX-LOB: A GPU-Accelerated limit order book simulator to unlock large scale reinforcement learning for trading (2023)
- Double deep q-learning for optimal execution (2021)
- Deep execution-value and policy based reinforcement learning for trading and beating market benchmarks (2019)
- Deep reinforcement learning for trading—A critical survey (2021)
- The flash crash: High-frequency trading in an electronic market (2017)
- The predictive power of zero intelligence in financial markets (2005)
- Statistical analysis of financial returns for a multiagent order book model of asset trading (2007)
- $\ $TensorFlow$\ $: a system for $\ $Large-Scale$\ $ machine learning (2016)
- Symbolic discovery of optimization algorithms (2024)
- Adam: A method for stochastic optimization (2014)
- The tabular foundation model TabPFN outperforms specialized time series forecasting models based on simple features (2025) — link
- Tabpfn: A transformer that solves small tabular classification problems in a second (2022) — link
3 of 194 cited works are in the corpus; resolved via arXiv source bundles, Semantic Scholar and OpenAlex. Corpus-wide: 2518 linked papers.