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

比较不同Transformer模型结构用于股票预测

Comparing Different Transformer Model Structures for Stock Prediction

Qizhao Chen

AI总结:

本文比较五种Transformer结构在股票指数预测中的性能,发现仅解码器结构表现最佳,ProbSparse注意力结构表现最差,且基于Transformer的模型整体优于传统方法。

摘要:

本文比较了不同的Transformer模型架构在股票指数预测中的表现。尽管许多研究表明Transformer在股票价格预测中表现良好,但很少有研究探讨不同的结构设计如何影响性能。大多数现有工作将Transformer视为黑箱,忽略了特定的架构选择可能对预测准确性产生的影响。然而,理解这些差异对于开发更有效的预测模型至关重要。本研究旨在确定哪种Transformer变体最适合股票预测。本研究评估了五种Transformer结构:(1)仅编码器Transformer,(2)仅解码器Transformer,(3)标准Transformer(编码器+解码器),(4)无嵌入层的标准Transformer,以及(5)采用ProbSparse注意力的标准Transformer。结果表明,基于Transformer的模型通常优于传统方法。仅解码器结构的Transformer在所有场景中均优于其他所有模型。采用ProbSparse注意力的Transformer在几乎所有情况下表现最差。

英文摘要:

This paper compares different Transformer model architectures for stock index prediction. While many studies have shown that Transformers perform well in stock price forecasting, few have explored how different structural designs impact performance. Most existing works treat the Transformer as a black box, overlooking how specific architectural choices may affect predictive accuracy. However, understanding these differences is critical for developing more effective forecasting models. This study aims to identify which Transformer variant is most suitable for stock forecasting. This study evaluates five Transformer structures: (1) encoder-only Transformer, (2) decoder-only Transformer, (3) Vanilla Transformer (encoder + decoder), (4) Vanilla Transformer without embedding layers, and (5) Vanilla Transformer with ProbSparse attention. Results show that Transformer-based models generally outperform traditional approaches. Transformer with decoder only structure outperforms all other models in all scenarios. Transformer with ProbSparse attention has the worst performance in almost all cases.

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

↑