用图神经网络和情绪分析预测股市,误差比传统方法低10%以上。
Stock Market Prediction Using Node Transformer Architecture Integrated with BERT Sentiment Analysis
- 构建股票图谱,融合情绪与行情数据,捕捉跨股票关联。
- 一日前预测平均误差仅0.80%,优于ARIMA的1.20%和LSTM的1.00%。
- 在财报发布期情绪信息可降低25%误差,适合量化交易与风控研究者。
股票市场预测在噪声大、非平稳且具行为动态的复杂环境中面临巨大挑战。传统方法如基本面分析和技术指标难以捕捉金融市场的深层模式与跨资产依赖关系。本文提出一种融合节点注意力机制与BERT情感分析的集成框架。将股票市场建模为图结构,个股为节点,行业归属、价格联动及供应链关系作为边。通过微调BERT从社交媒体提取情绪信息,并与量化特征通过注意力机制融合。节点变换器处理历史行情,同时捕捉时间演化与跨股票依赖。在1982年1月至2025年3月期间的20只标普500成分股上测试,模型实现一日前预测均方百分比误差(MAPE)为0.80%,显著低于ARIMA的1.20%和LSTM的1.00%。引入情绪分析使整体误差降低10%,财报公告期降低25%;图结构设计带来额外15%性能提升。方向准确率达65%。配对t检验验证改进具有统计显著性(p < 0.05)。高波动期表现更优,该模型MAPE为1.50%,而基线模型为1.60%至2.10%。
原文摘要 · Abstract (English)
Stock market prediction presents considerable challenges for investors, financial institutions, and policymakers operating in complex market environments characterized by noise, non-stationarity, and behavioral dynamics. Traditional forecasting methods, including fundamental analysis and technical indicators, often fail to capture the intricate patterns and cross-sectional dependencies inherent in financial markets. This paper presents an integrated framework combining a node transformer architecture with BERT-based sentiment analysis for stock price forecasting. The proposed model represents the stock market as a graph structure where individual stocks form nodes and edges capture relationships including sectoral affiliations, correlated price movements, and supply chain connections. A fine-tuned BERT model extracts sentiment information from social media posts and combines it with quantitative market features through attention-based fusion mechanisms. The node transformer processes historical market data while capturing both temporal evolution and cross-sectional dependencies among stocks. Experiments conducted on 20 S&P 500 stocks spanning January 1982 to March 2025 demonstrate that the integrated model achieves a mean absolute percentage error (MAPE) of 0.80% for one-day-ahead predictions, compared to 1.20% for ARIMA and 1.00% for LSTM. The inclusion of sentiment analysis reduces prediction error by 10% overall and 25% during earnings announcements, while the graph-based architecture contributes an additional 15% improvement by capturing inter-stock dependencies. Directional accuracy reaches 65% for one-day forecasts. Statistical validation through paired t-tests confirms the significance of these improvements (p < 0.05 for all comparisons). The model maintains lower error during high-volatility periods, achieving MAPE of 1.50% while baseline models range from 1.60% to 2.10%.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。