arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.16746cs.CE
收藏

使用股票数据定制预训练时间序列模型

Pre-training Time Series Models with Stock Data Customization

Mengyu Wang, Tiejun Ma, Shay B. Cohen

AI总结:

本文提出针对股票数据特征的三种预训练任务(股票代码分类、板块分类、移动平均预测),基于两层Transformer构建SSPT模型,在五个数据集上显著优于现有方法,提升投资回报率与夏普比率。

摘要:

股票选择旨在预测股票价格并识别最有利可图的股票,是金融领域的一项关键任务。现有方法主要侧重于开发模型结构和构建图以改进选择,但预训练策略在该领域仍未得到充分探索。当前的股票序列预训练遵循其他领域的方法,未针对金融数据的独特特征进行调整,尤其忽略了股票特定的上下文信息和股票价格的非平稳性。因此,股票数据中固有的潜在统计特征未得到充分利用。在本文中,我们提出了三种针对股票数据特征的新颖预训练任务:股票代码分类、股票板块分类和移动平均预测。我们基于两层Transformer架构开发了股票专用预训练Transformer(SSPT)。大量实验结果验证了我们预训练方法的有效性,并为其应用提供了详细指导。在包括四个市场和两个时间段的五个股票数据集上的评估表明,SSPT在累计投资回报率和夏普比率方面均持续优于市场和现有方法。此外,我们在模拟数据上的实验探究了我们方法的潜在机制,为理解价格序列提供了见解。我们的代码公开于:https://github.com/astudentuser/Pre-training-Time-Series-Models-with-Stock-Data-Customization。

英文摘要:

Stock selection, which aims to predict stock prices and identify the most profitable ones, is a crucial task in finance. While existing methods primarily focus on developing model structures and building graphs for improved selection, pre-training strategies remain underexplored in this domain. Current stock series pre-training follows methods from other areas without adapting to the unique characteristics of financial data, particularly overlooking stock-specific contextual information and the non-stationary nature of stock prices. Consequently, the latent statistical features inherent in stock data are underutilized. In this paper, we propose three novel pre-training tasks tailored to stock data characteristics: stock code classification, stock sector classification, and moving average prediction. We develop the Stock Specialized Pre-trained Transformer (SSPT) based on a two-layer transformer architecture. Extensive experimental results validate the effectiveness of our pre-training methods and provide detailed guidance on their application. Evaluations on five stock datasets, including four markets and two time periods, demonstrate that SSPT consistently outperforms the market and existing methods in terms of both cumulative investment return ratio and Sharpe ratio. Additionally, our experiments on simulated data investigate the underlying mechanisms of our methods, providing insights into understanding price series. Our code is publicly available at: https://github.com/astudentuser/Pre-training-Time-Series-Models-with-Stock-Data-Customization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑