TL;DR
DishFT-GNN is a novel distillation-based framework that improves stock trend prediction by training a "future-aware" teacher model to capture distribution shifts between historical and future data. This teacher model then guides a student model to predict future trends using only historical data at inference time, achieving significant performance boosts across multiple standard Graph Neural Network (GNN) baselines.
What Problem Does This Paper Address?
Most deep learning and Graph Neural Network (GNN) models for stock prediction operate on a fundamental assumption: a stock's future behavior can be entirely inferred from its historical patterns. However, financial markets are notoriously non-stationary. Sudden real-world events—such as a company releasing an earnings report that blows past expectations—can cause immediate structural distribution shifts between historical and future data.
Because traditional models look exclusively backward, they fail to anticipate these shifts, leading to sub-optimal predictions. The authors tackle this gap by finding a way to let the model learn the correlation between historical and future distribution shifts during training, without leaking future data during actual deployment.
Methods
The authors propose DishFT-GNN (Distillation-based FuTure-aware GNN), a framework consisting of two main components trained iteratively: a Teacher Model and a Student Model.
- The Future-Aware Teacher Model: During training, the teacher has access to both the past and the future. It uses a standard spatiotemporal GNN to encode historical stock graphs and a feed-forward network (Future Trend Encoder) to encode actual future price trends.
- Attention-Based Multi-Channel Fusion: To combine these past and future embeddings, the teacher uses a novel multi-channel fusion mechanism. It performs vector-matrix-vector multiplications to model potential correlations between historical and future distributions across multiple channels, using an attention mechanism to weigh their importance.
- The Student Model & Non-Linear Distillation: The student model only receives historical stock data. To teach the student how to anticipate future patterns, the framework minimizes the distillation loss between the student's representations and the teacher's future-aware representations. Instead of standard linear matching (like MSE), the authors use the Hilbert-Schmidt Independence Criterion (HSIC) as the distillation loss to better capture highly non-linear dependencies.
During testing and deployment, the teacher model is discarded, ensuring zero future data leakage.
Datasets
The framework was evaluated on two real-world datasets from the American stock market:
- S&P 100 (96 stocks selected after filtering for missing data)
- NASDAQ 100 (94 stocks selected after filtering)
Both datasets spanned from January 1, 2019, to September 30, 2023, split into 85% for training, 7.5% for validation, and 7.5% for testing. Official industry classification data was used to construct the explicit relational edges between stocks in the GNN graphs.
Key Insights and Ideas
- Privileged Information via Knowledge Distillation: Instead of using knowledge distillation simply to compress a large model into a smaller one, this paper uses it to pass down "privileged" future information from a teacher to a student during training.
- Linear Loss Isn't Enough for Stocks: Financial data relations are deeply complex and non-linear. Switching the distillation loss from Mean Squared Error (MSE) to HSIC allowed the student to learn a much broader range of non-linear features from the teacher.
- Plug-and-Play Framework: DishFT-GNN isn't a standalone GNN architecture; it is a training framework that can be wrapped around any existing spatiotemporal GNN stock predictor to boost its accuracy.
Key Results
The authors integrated DishFT-GNN with seven different baseline GNN models (including GCN, GAT, and state-of-the-art models like VGNN and MDGNN).
- Accuracy (ACC) Boost: The framework consistently improved the prediction accuracy of all baseline models by over 2% in most cases, and up to 5.41% when integrated with the MGAR baseline.
- Matthews Correlation Coefficient (MCC) Improvement: The relative improvements in MCC—a metric that evaluates binary classification quality on imbalanced data—were massive, ranging from 82.3% to 218% across the datasets.
- Profitability in Back-Testing: When simulating trading strategies using GCN as a backbone, the model trained with DishFT-GNN generated a steadily widening profit gap over the vanilla GCN model over time.
Limitations and Future Work
Not discussed in the paper.
Summary updated