A Study of Dynamic Stock Relationship Modeling and S&P500 Price Forecasting Based on Differential Graph Transformer
Linyue Hu, Qi Wang

TL;DR
This paper introduces a Differential Graph Transformer framework that models dynamic stock relationships and improves S&P 500 price forecasting by integrating evolving graph structures with attention mechanisms, outperforming traditional methods.
Contribution
It presents a novel DGT model combining differential graph structures with Transformers for dynamic relationship modeling and stock price prediction, validated on 10 years of data.
Findings
DGT outperforms GRU baselines in RMSE (0.24 vs. 0.87).
Kendall's Tau global matrices yield the best MAE (0.11).
Clustering reveals stable 'defensive blue-chip' stocks with lower prediction errors.
Abstract
Stock price prediction is vital for investment decisions and risk management, yet remains challenging due to markets' nonlinear dynamics and time-varying inter-stock correlations. Traditional static-correlation models fail to capture evolving stock relationships. To address this, we propose a Differential Graph Transformer (DGT) framework for dynamic relationship modeling and price prediction. Our DGT integrates sequential graph structure changes into multi-head self-attention via a differential graph mechanism, adaptively preserving high-value connections while suppressing noise. Causal temporal attention captures global/local dependencies in price sequences. We further evaluate correlation metrics (Pearson, Mutual Information, Spearman, Kendall's Tau) across global/local/dual scopes as spatial-attention priors. Using 10 years of S&P 500 closing prices (z-score normalized; 64-day…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsDropout · Dense Connections · k-Means Clustering · Absolute Position Encodings · Layer Normalization · Gated Recurrent Unit · Byte Pair Encoding · Label Smoothing · Softmax · Transformer
