Submitted:
22 April 2025
Posted:
23 April 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Literature Review
2.1. Traditional Machine Learning Approaches
2.2. Deep Learning-Based Stock Prediction
2.3. Retrieval-Augmented Approaches for Financial Analysis
3. Data Introduction
3.1. Corporate Financial Report Data
3.2. Stock Data
3.3. Visualization of Stock Trends
4. TCNAttention-RAG Model
4.1. Time Convolutional Network (TCN)
4.2. Attention Mechanism
4.3. RAG Enhanced Processing and Querying of Financial Report Text
5. Model Results Analysis
5.1. Analysis of Model Comparison Results
5.2. Model Prediction Results
6. Conclusions
- Dynamic Knowledge Base Optimization: Enhancing RAG retrieval with reinforcement learning for real-time integration of financial reports and market sentiment.
- Cross-Modal Enhancement: Incorporating social media sentiment analysis to capture real-time investor sentiment impacts.
- Interpretability Advancement: Developing attention-based attribution visualization tools to improve transparency and decision-making support.
Acknowledgments
References
- Mintarya, L. N., Halim, J. N., Angie, C., Achmad, S., & Kurniawan, A. (2023). Machine learning approaches in stock market prediction: A systematic literature review. Procedia Computer Science, 216, 96-102.
- Lu, W., Li, J., Wang, J., & Qin, L. (2021). A CNN-BiLSTM-AM method for stock price prediction. Neural Computing and Applications, 33(10), 4741-4753.
- Gao, Y., Wang, R., & Zhou, E. (2021). Stock prediction based on optimized LSTM and GRU models. Scientific Programming, 2021(1), 4055281.
- Wan R, Mei S, Wang J, et al. Multivariate temporal convolutional network: A deep neural networks approach for multivariate time series forecasting[J]. Electronics, 2019, 8(8): 876.
- Dudukcu H V, Taskiran M, Taskiran Z G C, et al. Temporal Convolutional Networks with RNN approach for chaotic time series prediction[J]. Applied soft computing, 2023, 133: 109945.
- Yun, K. K., Yoon, S. W., & Won, D. (2021). Prediction of stock price direction using a hybrid GA-XGBoost algorithm with a three-stage feature engineering process. Expert Systems with Applications, 186, 115716.
- Hu, Z., Zhao, Y., & Khushi, M. (2021). A survey of forex and stock price prediction using deep learning. Applied System Innovation, 4(1), 9.
- Zhang, Q., Zhang, Y., Bao, F., Liu, Y., Zhang, C., & Liu, P. (2024). Incorporating stock prices and text for stock movement prediction based on information fusion. Engineering Applications of Artificial Intelligence, 127, 107377.
- Cuconasu, F., Trappolini, G., Siciliano, F., Filice, S., Campagnano, C., Maarek, Y., ... & Silvestri, F. (2024, July). The power of noise: Redefining retrieval for rag systems. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval (pp. 719-729).
- Fan, J., Zhang, K., Huang, Y., Zhu, Y., & Chen, B. (2023). Parallel spatio-temporal attention-based TCN for multivariate time series prediction. Neural Computing and Applications, 35(18), 13109-13118.
- Fan, W., Ding, Y., Ning, L., Wang, S., Li, H., Yin, D., ... & Li, Q. (2024, August). A survey on rag meeting llms: Towards retrieval-augmented large language models. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (pp. 6491-6501).






| Model | Accuracy Rate | Recall |
|---|---|---|
| gpt-3.5-turbo | 50.7% | 73.3% |
| gpt-3.5-turbo+RAG | 65.8% | 89.2% |
| gpt-3.5-turbo-1106 | 60.4% | 82.3% |
| gpt-3.5-turbo-1106+RAG | 79.5% | 90.1% |
| gpt-4.0 | 80.2% | 92.7% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 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 (http://creativecommons.org/licenses/by/4.0/).