Repository logo

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

Loading...
Thumbnail Image

Files

Size: 390.4 KB, File format: Adobe PDF

Authors

Zhou, Lei

Zhang, Yuqi

Yu, Jian

Wang, Guiling

Liu, Zhizhong

Yongchareon, Sira

Wang, Nancy

Supervisor

Degree name

Journal Title

Journal ISSN

Volume Title

Publisher

MDPI AG

Abstract

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.

Description

Keywords

49 Mathematical sciences

Source

Mathematics, ISSN: 2227-7390 (Print); 2227-7390 (Online), MDPI AG, 13(3), 487-487. doi: 10.3390/math13030487

Rights statement

© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).

Endorsement

Review

Supplemented By

Referenced By