TLOB: A Novel Transformer Model with Dual Attention for Price Trend Prediction with Limit Order Book Data
Leonardo Berti, Gjergji Kasneci

TL;DR
This paper introduces TLOB, a transformer model with dual attention for price trend prediction from limit order book data, demonstrating superior performance across multiple datasets and horizons, and providing insights into market efficiency.
Contribution
We propose TLOB, a novel transformer-based model with dual attention mechanisms and a new labeling method, improving trend prediction accuracy and robustness over existing methods.
Findings
TLOB outperforms state-of-the-art methods on FI-2010, NASDAQ, and Bitcoin datasets.
Stock price predictability has declined over time, indicating increased market efficiency.
Performance deteriorates when considering transaction costs, highlighting challenges in profitable trading strategies.
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,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsStock Market Forecasting Methods · Time Series Analysis and Forecasting · Complex Systems and Time Series Analysis
MethodsSoftmax · Attention Is All You Need · Focus
