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.
GrifFinNet: A Graph-Relation Integrated Transformer for Financial Predictions
College of Computer Science and Technology, Jilin University(吉林大学计算机科学与技术学院);School of Economics, Jilin University(吉林大学经济学院);Key Laboratory of Symbolic Computation and Knowledge Engineering of Ministry of Education, Jilin University(教育部符号计算与知识工程重点实验室)
HRFT: Mining High-Frequency Risk Factor Collections End-to-End via Transformer
School of Statistics and Mathematics, Central University of Finance and Economics(中央财经大学统计与数学学院);TiMi Studio, Tencent(腾讯TiMi工作室);Computer Network Information Center, Chinese Academy of Sciences(中国科学院计算机网络信息中心)
SPH-Net: A Co-Attention Hybrid Model for Accurate Stock Price Prediction
WuXpress Warehousing LLC(WuXpress仓储有限责任公司);Walnut Grove High School(核桃林高中);Southern Methodist University(南方卫理公会大学);Washington State University(华盛顿州立大学);Nanyang Technological University(南洋理工大学);University of Nebraska-Lincoln(内布拉斯加大学林肯分校)
Multi-Task Temporal Fusion Transformer for Joint Sales and Inventory Forecasting in Amazon E-Commerce Supply Chain
University of Electronic Science and Technology of China(电子科技大学);Heinz College, Carnegie Mellon University(卡内基梅隆大学海因茨学院);Amazon.com Services LLC(亚马逊服务有限责任公司)