arXiv:2502.15757q-fin.STcs.AI2025-02被引 9

用双注意力Transformer提升订单簿数据的价格趋势预测能力

TLOB: A Novel Transformer Model with Dual Attention for Price Trend Prediction with Limit Order Book Data

  • 设计双注意力机制捕捉订单簿的时空特征
  • 在四个预测时长上超越现有最佳方法,最高提升12.3%
  • 适合关注金融时序建模与市场微观结构的研究者

基于限价订单簿(LOB)的数据进行价格趋势预测(PTP)是金融市场中的基础挑战。尽管深度学习取得进展,现有模型在不同市场条件和资产间泛化能力差。令人惊讶的是,将简单的MLP架构适配到LOB数据,性能已超越当前最优方法,质疑了复杂架构的必要性。为此,本文提出TLOB——一种基于Transformer的模型,采用双注意力机制,有效捕捉订单簿数据中的空间与时间依赖关系,可自适应聚焦市场微观结构,在长周期预测和波动市场中表现优异。同时引入新标签方法,消除预测时长偏差。在FI-2010、纳斯达克及比特币三个数据集上,四个预测时长下,TLOB均优于现有最佳方法。实证显示股票价格可预测性随时间下降,F1分数降低6.68点,反映市场效率持续提升。考虑交易成本(以平均买卖价差定义),趋势预测性能显著下降,表明将分类结果转化为盈利策略极为复杂。本研究为金融人工智能的发展提供新视角。

原文摘要 · Abstract (English)

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.

价格预测订单簿Transformer金融AI

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。