A Stock Return Prediction Model Based on BERT Fine-Tuning and Cross-Attention Fusion
Abstract
Quantitative finance is advancing rapidly, making the effective use of massive financial data essential for stock return prediction. Traditional prediction methods cannot easily integrate numerical market data with unstructured textual information,which leads to lower predictive accuracy. To address these issues, this paper proposes a stock return prediction model. This model uses a fine-tuned BERT and a multimodal feature fusion method. First, we use an end-to-end fine-tuning technique. We add the BERT model as a trainable module inside a single prediction framework. With a backpropagation mechanism, the BERT parameters and the prediction model are trained together. Then the text feature extraction process is tightly bound to the final return prediction goal. In this way, we solve the goal mismatch problem from old two-stage methods.Second, we design a cross-attention mechanism for feature fusion. This mechanism fixes the separation between text features and number features. Then the two feature types can interact and fuse inside a shared space. We also use rolling window methods for dynamic training and testing. We run comparative experiments with both simulated data and real market data. The results show that our model works better than single-mode benchmark models, as key metrics like mean squared error and mean absolute error all show clear improvement.
References
- Boakes, J. (2024). An analysis of the performance and interpretability of machine learning classification algorithms to predict long-term share returns on the JSE. Master's Thesis, University of Cape Town.
- Moodi, F., Jahangard Rafsanjani, A., Zarifzadeh, S., & Zare Chahooki, M. A. (2024). Advanced Stock Price Forecasting Using a 1D-CNN-GRU-LSTM Model.Journal of AI and Data Mining, 12(3), 393-408.
- Araci, D. (2019). FinBERT: Financial Sentiment Analysis with Pre-trained Language Models.arXiv preprint, arXiv: 1908.10063.
- Yuntao Zhang, Zheng Dong, Wenrui Xu. (2025). Integrative stock price trend prediction via hierarchical LLM text processing and patch-based transformer with co-attention.Expert Systems with Applications.
- Akyildirim, E., Bariviera, A. F., Nguyen, D. K., & Sensoy, A. (2022). Forecasting high-frequency stock returns: a comparison of alternative methods.Annals of Operations Research, 313(2), 639-690.
- Shi et al. (2025). A Hybrid Long Short-Term Memory-Graph Convolutional Network Model for Enhanced Stock Return Prediction: Integrating Temporal and Spatial Dependencies.Mathematics, 13(7), 1142-1154.
- Chi-Yao Peng. (2025). Information-Processing Entropy and Heterogeneous Sentiment Reaction Windows: Evidence from S&P 500 Stocks.Entropy, 27(12), 1234.
- Bryan Lim, Sercan Ö. Arık, Nicolas Loeff, Tomas Pfister. (2025). TIC-FusionNet: A multimodal deep learning framework with temporal decomposition and attention-based fusion for time series forecasting.PLoS ONE, 20(10), e0333379.
- Chen, P., & Corizzo, R. (2024). A deep fusion model for stock market prediction with news headlines and time series data.Neural Computing and Applications, 36, 21229-21271.
- Ruan, L., & Jiang, H. (2025). Stock Price Prediction Using FinBERT-Enhanced Sentiment with SHAP Explainability and Differential Privacy.Mathematics, 13(17), 2747.
- Tu, P. L., & Chen, J. L. (2025). Mitigating market volatility impact in stock prediction: a Wasserstein GAN approach with GRU and CNN.ICASI 2025, IET Conference Proceedings.