Forecasting Dynamics of Stock Based on Sparse Neural Networks and Large Language Models
Abstract
In the context of modern economic challenges, the effective functioning of the stock market becomes crucial for the sustainable development of the Russian economy. Attracting investments to the real sector requires creating effective tools for market information analysis, which involves processing large volumes of heterogeneous data under conditions of high volatility and geopolitical instability. The aim of the research is to develop an algorithm for building a sparse neural network. This model automatically eliminates insignificant connections between neurons for predicting stock market dynamics. The proposed approach
is based on the method of solving a single-point inverse problem with a minimization of the sum of absolute parameter values, which allows reducing the model’s dimensionality. The scientific novelty of the research comprises two aspects. First, the work explores the possibility of using new factors generated by a large language model (an artificial intelligence system for text processing) for predicting stock market dynamics. Second, an original algorithm for constructing a sparse neural network has been developed. The research tested two main hypotheses. The first hypothesis aimed to verify the advantages of sparse neural networks over fully connected architectures in prediction accuracy. The second hypothesis investigated the effectiveness of using features extracted by large language models from unstructured text sources for financial forecasting.
Experimental verification on three tasks of stock price and dividend forecasting confirmed both hypotheses. The sparse architecture demonstrated an advantage over fully connected models in prediction accuracy and computational efficiency. Automatic feature selection revealed the relevance of macroeconomic characteristics extracted by the large language model, confirming the promise of integrating modern natural language processing technologies into financial forecasting. The obtained results can be used to form effective strategies of stock market behavior and create intelligent decision support systems. In addition, sparse models can be used in solving other economic problems, including portfolio optimization and
financial performance management.
Downloads
References
Chang P.C., Liu C.H., Lin J.L., et al. A neural network with a case based dynamic window for stock trading prediction. Expert Systems with Applications. 2009;36(3):6889–6898. https://doi.org/10.1016/j.eswa.2008.08.077
Harvey C.R., Liu Y., Zhu H. ... and the Cross-Section of Expected Returns. The Review of Financial Studies. 2016;29(1):5-68. https://doi.org/10.1093/rfs/hhv059
Rouf N., Malik M.B., Arif T., et al. Stock Market Prediction Using Machine Learning Techniques: A Decade Survey on Methodologies, Recent Developments, and Future Directions. Electronics. 2021;10(21):2717. https://doi.org/10.3390/electronics10212717
Makrushina I.S. Fundamental analysis of the financial market: essence, technology, negative and positive aspects. Ehkonomika i predprinimatel'stvo. 2022;(3):57-60. (In Russ.) https://doi.org/10.34925/EIP.2022.140.03.007
Mirzoyan A., Schukina P., Galich A. Dividend Policy of Russian Companies: Impact of Board of Directors. Journal of Corporate Finance Research. 2025;19(1):98–114. https://doi.org/10.17323/j.jcfr.2073-0438.19.1.2025.98-114
Bekareva S.V., Fomina V.M. Influence of macroeconomic factors on the large russian companies’ stock return in crises. Kazanskii ehkonomicheskii vestnik. 2022;(3):56-62. (In Russ.)
Fatouros G., Soldatos J., Kouroumali K., et al. Transforming Sentiment Analysis in the Financial Domain with ChatGPT. Machine Learning with Applications. 2023;14:100508. https://doi.org/10.1016/j.mlwa.2023.100508
Kopyrin M., Naidenova I. The Impact of Disclosure Sentiment on the Share Prices of Russian Companies. Journal of Corporate Finance Research. 2021;15(2):5-15. https://doi.org/10.17323/j.jcfr.2073-0438.15.2.2021.5-15
Zhang Z., Jiang C., Lu M. Fusion of Sentiment and Market Signals for Bitcoin Forecasting: A SentiStack Network Based on a Stacking LSTM Architecture. Big Data Cogn. Comput. 2025;9(6):161. https://doi.org/10.3390/bdcc9060161
Pelster M., Val J. Can ChatGPT assist in picking stocks? Finance Research Letters. 2023;59:104786. https://doi.org/10.1016/j.frl.2023.104786
Jang H.K. What if ChatGPT were a quant asset manager. Finance Research Letters. 20231;58(Part D):104580. https://doi.org/10.1016/j.frl.2023.104580
Ko H., Lee J. Can ChatGPT improve investment decisions? From a portfolio management perspective. Finance Research Letters. 2024;64:105433. https://doi.org/10.1016/j.frl.2024.105433
Singh J., Khushi M. Feature Learning for Stock Price Prediction Shows a Significant Role of Analyst Rating. Applied System Innovation. 2021;4(1):17. https://doi.org/10.3390/asi4010017
Lv P., Wu Q., Xu J., et al. Stock Index Prediction Based on Time Series Decomposition and Hybrid Model. Entropy. 2022;24(2):146. https://doi.org/10.3390/e24020146
Lin C.Y., Lobo Marques J.A. Stock market prediction using artificial intelligence: A systematic review of systematic reviews. Social Sciences & Humanities Open. 2024;9:100864. https://doi.org/10.1016/j.ssaho.2024.100864
Zhao C., Hu P., Liu X., et al. Stock Market Analysis Using Time Series Relational Models for Stock Price Prediction. Mathematics. 2023;11(5):1130. https://doi.org/10.3390/math11051130
Liu Q., Tao Z., Tse Y., et al. Stock market prediction with deep learning: The case of China. Finance Research Letters. 2021;46(Part A):102209. https://doi.org/10.1016/j.frl.2021.102209
Humpe A., Macmillan P. Can macroeconomic variables explain long-term stock market movements? A comparison of the US and Japan. Applied Financial Economics. 2009;19(2):111–119. https://doi.org/10.1080/09603100701748956
Huy D.T.N., Nhan V.K., Bich N.T.N., et al. Impacts of Internal and External Macroeconomic Factors on Firm Stock Price in an Expansion Econometric model—A Case in Vietnam Real Estate Industry. Data Science for Financial Econometrics. 2020;898:189–205. https://doi.org/10.1007/978-3-030-48853-6_14
Ma F., Guo Y., Chevallier J., et al. Macroeconomic attention, economic policy uncertainty, and stock volatility predictability. International Review of Financial Analysis. 2022;84:102339. https://doi.org/10.1016/j.irfa.2022.102339
Ma F., Lu X., Liu J., et al. Macroeconomic attention and stock market return predictability. Journal of International Financial Markets, Institutions and Money. 2022;79:101603. https://doi.org/10.1016/j.intfin.2022.101603
Smales L.A. Geopolitical risk and volatility spillovers in oil and stock markets. The Quarterly Review of Economics and Finance. 2021;80:358-366. https://doi.org/10.1016/j.qref.2021.03.008
Zhang Y., He J., He M., et al. Geopolitical risk and stock market volatility: A global perspective. Finance Research Letters. 2023;53:103620. https://doi.org/10.1016/j.frl.2022.103620
Qayyum A., Rehman I.U., Shahzad F., et al. Board gender diversity and stock price crash risk: Going beyond tokenism. Borsa Istanbul Review. 2021;21(3):269-280. https://doi.org/10.1016/j.bir.2020.10.010
Rajesh N., Gandy L. CashTagNN: Using sentiment of tweets with CashTags to predict stock market prices. 2016 11th International Conference on Intelligent Systems: Theories and Applications (SITA). Mohammedia, Morocco; 2016:1–4. https://doi.org/10.1109/SITA.2016.7772262
Shah P., Desai K., Hada M., et al. A comprehensive review on sentiment analysis of social/web media big data for stock market prediction. International journal of system assurance engineering and management. 2024;15:2011-2018. https://doi.org/10.1007/s13198-023-02214-6
Lee H., Kim J.H., Jung H.S. Deep-learning-based stock market prediction incorporating ESG sentiment and technical indicators. Scientific Reports. 2024;14:10262. https://doi.org/10.1038/s41598-024-61106-2
Njoroge P., Michaela, Baumann M.H., Shevchenko D. Stock Price Reactions to Publications of Financial Statements: Evidence from the Moscow Stock Exchange. Journal of Corporate Finance Research. 2021;15(1):19-36. https://doi.org/10.17323/j.jcfr.2073-0438.15.1.2021.19-36
Ataman G., Kahraman S. Stock market prediction in brics countries using linear regression and artificial neural network hybrid models. The Singapore Economic Review. 2021;67(2):635–653. https://doi.org/10.1142/S0217590821500521
Soujanya R., Goud P.A., Bhandwalkar A., et al. Evaluating future stock value asset using machine learning. Materials Today: Proceedings. 2020;33(7):4808–4813. https://doi.org/10.1016/j.matpr.2020.08.385
Vukovic D., Spitsyna L.Yu., Gribanova E., et al. Predicting the Performance of Retail Market Firms: Regression and Machine Learning Methods. Mathematics. 2023;11(8):1916. https://doi.org/10.3390/math11081916
Sarve Y.A., Phadke A.C. A Survey on Data-Driven Techniques of Remaining Useful Life Assessment for Predictive Maintenance of the System. Journal of Sustainable Innovations. 2025;2(2):58–71. https://doi.org/10.61552/JSI.2025.02.002
Oyewole A.T., Adeoye O.B., Addy W.A., et al. Predicting stock market movements using neural networks: a review and application study. Computer Science & IT Research Journal. 2024;5(3):651–670. https://doi.org/10.51594/csitrj.v5i3.912
Htun H.H., Biehl M., Petkov N. Survey of feature selection and extraction techniques for stock market prediction. Financial Innovation. 2023;9:26. https://doi.org/10.1186/s40854-022-00441-7
Huang Y., Capretz L.F., Ho D. Machine Learning for Stock Prediction Based on Fundamental Analysis. 2021 IEEE Symposium Series on Computational Intelligence (SSCI). Orlando, FL, USA. 2021: 1-10. https://doi.org/10.1109/SSCI50451.2021.9660134
Wolff D., Echterling F. Stock picking with machine learning. Journal of Forecasting. 2023;43(1):81–102. https://doi.org/10.1002/for.3021
Nakagawa K., Yoshida K. Time-series gradient boosting tree for stock price prediction. International Journal of Data Mining, Modelling and Management. 2022;14(2):110-125. https://doi.org/10.1504/IJDMMM.2022.123357
Zaheer S., Anjum N., Hussain S., et al. A Multi Parameter Forecasting for Stock Time Series Data Using LSTM and Deep Learning Model. Mathematics. 2023;11(3):590. https://doi.org/10.3390/math11030590
Gribanova E. Algorithm for solving the inverse problems of economic analysis in the presence of limitations. EUREKA Physics and Engineering. 2020;(1):70–78. https://doi.org/10.21303/2461-4262.2020.001102
Gribanova E. Elaboration of an Algorithm for Solving Hierarchical Inverse Problems in Applied Economics. Mathematics. 2022;10(15):2779. https://doi.org/10.3390/math10152779
Farrell H., O'Connor F. The CNN Fear and Greed Index as a Predictor of US Equity Index Returns: Static and Time-Varying Granger Causality. Finance research letters. 2025;72:106492. https://doi.org/10.1016/j.frl.2024.106492
Gomes G.S., Ludermir T.B., Lima L.M.M.R. Comparison of new activation functions in neural network for forecasting financial time series. Neural Computing and Applications. 2010;20(3):417–439. https://doi.org/10.1007/s00521-010-0407-3
Copyright (c) 2026 National Research University Higher School of Economics

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.