LLM-Augmented Linear Transformer-CNN for Enhanced Stock Price Prediction

被引:0
|
作者
Zhou, Lei [1 ]
Zhang, Yuqi [1 ]
Yu, Jian [1 ]
Wang, Guiling [2 ]
Liu, Zhizhong [3 ]
Yongchareon, Sira [1 ]
Wang, Nancy [1 ]
机构
[1] Auckland Univ Technol, Dept Comp Sci, Auckland 1010, New Zealand
[2] North China Univ Technol, Sch Informat Sci & Technol, Beijing 100144, Peoples R China
[3] Yantai Univ, Sch Comp & Control Engn, Yantai 254005, Peoples R China
关键词
stock price prediction; Linear Transformer; CNN; LLM; deep learning; financial forecasting;
D O I
10.3390/math13030487
中图分类号
O1 [数学];
学科分类号
0701 ; 070101 ;
摘要
Accurately predicting stock prices remains a challenging task due to the volatile and complex nature of financial markets. In this study, we propose a novel hybrid deep learning framework that integrates a large language model (LLM), a Linear Transformer (LT), and a Convolutional Neural Network (CNN) to enhance stock price prediction using solely historical market data. The framework leverages the LLM as a professional financial analyst to perform daily technical analysis. The technical indicators, including moving averages (MAs), relative strength index (RSI), and Bollinger Bands (BBs), are calculated directly from historical stock data. These indicators are then analyzed by the LLM, generating descriptive textual summaries. The textual summaries are further transformed into vector representations using FinBERT, a pre-trained financial language model, to enhance the dataset with contextual insights. The FinBERT embeddings are integrated with features from two additional branches: the Linear Transformer branch, which captures long-term dependencies in time-series stock data through a linearized self-attention mechanism, and the CNN branch, which extracts spatial features from visual representations of stock chart data. The combined features from these three modalities are then processed by a Feedforward Neural Network (FNN) for final stock price prediction. Experimental results on the S&P 500 dataset demonstrate that the proposed framework significantly improves stock prediction accuracy by effectively capturing temporal, spatial, and contextual dependencies in the data. This multimodal approach highlights the importance of integrating advanced technical analysis with deep learning architectures for enhanced financial forecasting.
引用
收藏
页数:18
相关论文
共 50 条
  • [1] CNN-Trans-SPP: A small Transformer with CNN for stock price prediction
    Li, Ying
    Wang, Xiangrong
    Guo, Yanhui
    ELECTRONIC RESEARCH ARCHIVE, 2024, 32 (12):
  • [2] An enhanced Transformer framework with incremental learning for online stock price prediction
    Qian, Yiming
    PLOS ONE, 2025, 20 (01):
  • [3] Transformer-CNN hybrid network for improving PET time of flight prediction
    Feng, Xuhui
    Muhashi, Amanjule
    Onishi, Yuya
    Ota, Ryosuke
    Liu, Huafeng
    PHYSICS IN MEDICINE AND BIOLOGY, 2024, 69 (11):
  • [4] Hybrid transformer-CNN model for accurate prediction of peptide hemolytic potential
    Almotairi, Sultan
    Badr, Elsayed
    Abdelbaky, Ibrahim
    Elhakeem, Mohamed
    Abdul Salam, Mustafa
    SCIENTIFIC REPORTS, 2024, 14 (01):
  • [5] Causal Attention Transformer Model for Stock Price Prediction
    Ren, Jiayi
    Wang, Aiyin
    Computer Engineering and Applications, 2023, 59 (13): : 325 - 334
  • [6] Stock Price Prediction Based on Temporal Fusion Transformer
    Hu, Xiaokang
    2021 3RD INTERNATIONAL CONFERENCE ON MACHINE LEARNING, BIG DATA AND BUSINESS INTELLIGENCE (MLBDBI 2021), 2021, : 60 - 66
  • [7] A CNN-BiLSTM-AM method for stock price prediction
    Wenjie Lu
    Jiazheng Li
    Jingyang Wang
    Lele Qin
    Neural Computing and Applications, 2021, 33 : 4741 - 4753
  • [8] A CNN-BiLSTM-AM method for stock price prediction
    Lu, Wenjie
    Li, Jiazheng
    Wang, Jingyang
    Qin, Lele
    NEURAL COMPUTING & APPLICATIONS, 2021, 33 (10): : 4741 - 4753
  • [9] CNN with Limit Order Book Data for Stock Price Prediction
    Nino, Jaime
    Hernandez, German
    Arevalo, Andres
    Leon, Diego
    Sandoval, Javier
    PROCEEDINGS OF THE FUTURE TECHNOLOGIES CONFERENCE (FTC) 2018, VOL 1, 2019, 880 : 444 - 457
  • [10] Stock Price Trend Prediction using MRCM-CNN
    Duan, Jufang
    Xu, Xiangyang
    2020 CHINESE AUTOMATION CONGRESS (CAC 2020), 2020, : 3455 - 3460