Improving Financial Forecasting with a Synergistic LLM-Transformer Architecture: A Hybrid Approach to Stock Price Prediction
Article Information
Abstract
This study proposes a novel hybrid deep learning framework that integrates a Large Language Model (LLM) with a Transformer architecture for stock price forecasting. The research addresses a critical theoretical gap in existing approaches that empirically combine textual and numerical data without a formal understanding of their interaction mechanisms. We conceptualize a prompt-based LLM as a mathematically defined signal generator, capable of extracting directional market sentiment and an associated confidence score from financial news. These signals are then dynamically fused with structured historical price features through a noise-robust gating mechanism, enabling the Transformer to adaptively weigh semantic and quantitative information. Empirical evaluations demonstrate that the proposed Hybrid LLM–Transformer model demonstrates promising improvement over a Vanilla Transformer baseline, reducing the Root Mean Squared Error (RMSE) by 5.28% (p = 0.003). Moreover, ablation and robustness analyses confirm the model’s stability under noisy conditions and its capacity to maintain interpretability through confidence-weighted attention. The findings contribute to theoretical exploration of LLM–Transformer interactions, offering a step toward explainable, noise-resilient, and semantically enriched financial forecasting systems.
Graphical Abstract
Keywords
Data Availability Statement
Funding
Conflicts of Interest
AI Use Statement
Ethical Approval and Consent to Participate
References
- Chen, Q. (2025). Stock price prediction with LLM-guided market movement signals and transformer model. FinTech and Sustainable Innovation, 1, A12-A12.
[CrossRef] [Google Scholar] - Chen, Q. (2025). Sentiment-aware stock price prediction with Transformer and LLM-generated formulaic alpha. arXiv preprint arXiv:2508.04975.
[CrossRef] [Google Scholar] - Zhou, L., Zhang, Y., Yu, J., Wang, G., Liu, Z., Yongchareon, S., & Wang, N. (2025). LLM-augmented linear transformer-CNN for enhanced stock price prediction. Mathematics, 13(3), 487.
[CrossRef] [Google Scholar] - Muhammad, T., Aftab, A. B., Ibrahim, M., Ahsan, M. M., Muhu, M. M., Khan, S. I., & Alam, M. S. (2023). Transformer-based deep learning model for stock price prediction: A case study on Bangladesh stock market. International Journal of Computational Intelligence and Applications, 22(03), 2350013.
[CrossRef] [Google Scholar] - Xie, Q., Han, W., Zhang, X., Lai, Y., Peng, M., Lopez-Lira, A., & Huang, J. (2023). Pixiu: A large language model, instruction data and evaluation benchmark for finance. arXiv preprint arXiv:2306.05443.
[Google Scholar] - Wang, N., Yang, H., & Wang, C. D. (2023). FinGPT: Instruction tuning benchmark for open-source large language models in financial datasets. arXiv preprint arXiv:2310.04793.
[Google Scholar] - Chen, S., Ren, S., & Zhang, Q. (2025). Hybrid Architectures that Combine LLMs and Predictive Analytics for Next-Generation Financial Modeling. Mathematical Modeling and Algorithm Application, 6, 31-43.
[Google Scholar] - Kabir, M. R., Bhadra, D., Ridoy, M., & Milanova, M. (2025). LSTM–transformer-based robust hybrid deep learning model for financial time series forecasting. Sci, 7(1), 7.
[CrossRef] [Google Scholar] - Yu, X., Chen, Z., Ling, Y., Dong, S., Liu, Z., & Lu, Y. (2023). Temporal data meets LLM--explainable financial time series forecasting. arXiv preprint arXiv:2306.11025.
[Google Scholar] - Matsunaga, D., Suzumura, T., & Takahashi, T. (2019). Exploring graph neural networks for stock market predictions with rolling window analysis. arXiv preprint arXiv:1909.10660.
[Google Scholar] - Djagba, P., & Saley, A. Y. (2025). Exploring Large Language Models for Financial Applications: Techniques, Performance, and Challenges with FinMA. arXiv preprint arXiv:2510.05151.
[Google Scholar] - Yu, S., Xue, H., Ao, X., Pan, F., He, J., Tu, D., & He, Q. (2023, August). Generating synergistic formulaic alpha collections via reinforcement learning. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (pp. 5476-5486).
[CrossRef] [Google Scholar] - Chen, Q. (2025, July). LLMs with RL-Enhanced Post-Hoc Adjustments. In Proceedings of the 2025 4th International Conference on Bigdata Blockchain and Economy Management (ICBBEM 2025) (Vol. 195, p. 475). Springer Nature.
[Google Scholar] - Hutto, C., & Gilbert, E. (2014, May). Vader: A parsimonious rule-based model for sentiment analysis of social media text. In Proceedings of the international AAAI conference on web and social media (Vol. 8, No. 1, pp. 216-225).
[CrossRef] [Google Scholar] - Júnior, N. R., & Nievola, J. C. (2018, July). A generalized financial time series forecasting model based on automatic feature engineering using genetic algorithms and support vector machine. In 2018 International Joint Conference on Neural Networks (IJCNN) (pp. 1-8). IEEE.
[CrossRef] [Google Scholar] - jun Gu, W., hao Zhong, Y., zun Li, S., song Wei, C., ting Dong, L., yue Wang, Z., & Yan, C. (2024, August). Predicting stock prices with finbert-lstm: Integrating news sentiment analysis. In Proceedings of the 2024 8th International Conference on Cloud and Big Data Computing (pp. 67-72).
[CrossRef] [Google Scholar] - Das, N., Sadhukhan, B., Ghosh, R., & Chakrabarti, S. (2024). Developing hybrid deep learning models for stock price prediction using enhanced twitter sentiment score and technical indicators. Computational Economics, 64(6), 3407-3446.
[CrossRef] [Google Scholar] - Do Jung, H., Kim, J. H., & Jang, B. (2024). Optimizing Language Models through Dataset-Specific Post-Training: A Focus on Financial Sentiment Analysis. Journal of Internet Computing and Services, 25(1), 57-67.
[CrossRef] [Google Scholar] - Liu, X. Y., Wang, G., Yang, H., & Zha, D. (2023). Fingpt: Democratizing internet-scale data for financial large language models. arXiv preprint arXiv:2307.10485.
[Google Scholar] - Mughal, M. F., Ansari, M., & Alam, M. (2025). Revolutionizing Financial Forecasting: The Rise of Transformer Models in Long-Term Time Series Analysis. AI-Driven Finance in the VUCA World, 142.
[Google Scholar] - Manikrao, K. W., Allagi, S., Leong, W. Y., & Laddi, M. (2025). An Explainable AI for Stock Market Prediction: A Machine Learning Approach with XAI and Deep Neural Networks. Journal of Computational and Cognitive Engineering.
[CrossRef] [Google Scholar] - Bamford, T., Coletta, A., Fons, E., Gopalakrishnan, S., Vyetrenko, S., Balch, T., & Veloso, M. (2023, November). Multi-modal financial time-series retrieval through latent space projections. In Proceedings of the fourth ACM international conference on AI in finance (pp. 498-506).
[CrossRef] [Google Scholar] - Zhang, C., Sjarif, N. N. A., & Ibrahim, R. (2024). Deep learning models for price forecasting of financial time series: A review of recent advancements: 2020–2022. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 14(1), e1519.
[CrossRef] [Google Scholar]
Cited By (3)
-
Syed Amer Hussain, Sayed Akif Hussain, Syed Atif Hussain, Qiu-ling Zheng. Behavioural Project Management and Service Operations Excellence in Geographically Dispersed Solar Projects: An AI-Driven Simulation Approach.
UW Journal of Management Sciences, 2026 , 10 (1).
[CrossRef] -
Athaya Naufal Pranastya, Dita Pramesti, Hanif Fakhrurroja. .
2026 IEEE International Conference on Industry 4.0, Artificial Intelligence, and Communications Technology (IAICT), 2026 .
[CrossRef] -
Jebamalar M, Mohideen AbdulKader M, K Harish, K. Divya Dharshini, Anujaa C, Prithuloma S B. .
2026 4th International Conference on Inventive Computing and Informatics (ICICI), 2026 .
[CrossRef]
Cite This Article
TY - JOUR AU - Hussain, Sayed Akif AU - Chen, Qiu-Shi AU - Hussain, Syed Amer AU - Hussain, Syed Atif AU - Komal, Asma AU - Khalid, Muhammad Imran PY - 2026 DA - 2026/04/08 TI - Improving Financial Forecasting with a Synergistic LLM-Transformer Architecture: A Hybrid Approach to Stock Price Prediction JO - ICCK Transactions on Intelligent Systematics T2 - ICCK Transactions on Intelligent Systematics JF - ICCK Transactions on Intelligent Systematics VL - 3 IS - 2 SP - 70 EP - 80 DO - 10.62762/TIS.2025.976754 UR - https://www.icck.org/article/abs/TIS.2025.976754 KW - large language models KW - transformer KW - stock prediction KW - financial forecasting KW - time series KW - ablation study AB - This study proposes a novel hybrid deep learning framework that integrates a Large Language Model (LLM) with a Transformer architecture for stock price forecasting. The research addresses a critical theoretical gap in existing approaches that empirically combine textual and numerical data without a formal understanding of their interaction mechanisms. We conceptualize a prompt-based LLM as a mathematically defined signal generator, capable of extracting directional market sentiment and an associated confidence score from financial news. These signals are then dynamically fused with structured historical price features through a noise-robust gating mechanism, enabling the Transformer to adaptively weigh semantic and quantitative information. Empirical evaluations demonstrate that the proposed Hybrid LLM–Transformer model demonstrates promising improvement over a Vanilla Transformer baseline, reducing the Root Mean Squared Error (RMSE) by 5.28% (p = 0.003). Moreover, ablation and robustness analyses confirm the model’s stability under noisy conditions and its capacity to maintain interpretability through confidence-weighted attention. The findings contribute to theoretical exploration of LLM–Transformer interactions, offering a step toward explainable, noise-resilient, and semantically enriched financial forecasting systems. SN - 3068-5079 PB - Institute of Central Computation and Knowledge LA - English ER -
@article{Hussain2026Improving,
author = {Sayed Akif Hussain and Qiu-Shi Chen and Syed Amer Hussain and Syed Atif Hussain and Asma Komal and Muhammad Imran Khalid},
title = {Improving Financial Forecasting with a Synergistic LLM-Transformer Architecture: A Hybrid Approach to Stock Price Prediction},
journal = {ICCK Transactions on Intelligent Systematics},
year = {2026},
volume = {3},
number = {2},
pages = {70-80},
doi = {10.62762/TIS.2025.976754},
url = {https://www.icck.org/article/abs/TIS.2025.976754},
abstract = {This study proposes a novel hybrid deep learning framework that integrates a Large Language Model (LLM) with a Transformer architecture for stock price forecasting. The research addresses a critical theoretical gap in existing approaches that empirically combine textual and numerical data without a formal understanding of their interaction mechanisms. We conceptualize a prompt-based LLM as a mathematically defined signal generator, capable of extracting directional market sentiment and an associated confidence score from financial news. These signals are then dynamically fused with structured historical price features through a noise-robust gating mechanism, enabling the Transformer to adaptively weigh semantic and quantitative information. Empirical evaluations demonstrate that the proposed Hybrid LLM–Transformer model demonstrates promising improvement over a Vanilla Transformer baseline, reducing the Root Mean Squared Error (RMSE) by 5.28\% (p = 0.003). Moreover, ablation and robustness analyses confirm the model’s stability under noisy conditions and its capacity to maintain interpretability through confidence-weighted attention. The findings contribute to theoretical exploration of LLM–Transformer interactions, offering a step toward explainable, noise-resilient, and semantically enriched financial forecasting systems.},
keywords = {large language models, transformer, stock prediction, financial forecasting, time series, ablation study},
issn = {3068-5079},
publisher = {Institute of Central Computation and Knowledge}
}
Publisher's Note
ICCK stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and Permissions
Portico