TL;DR
This paper introduces DGRCL, a novel framework for financial market prediction that effectively combines the dynamic evolution of stock relationships over time with their static, underlying connections. By leveraging contrastive learning and an innovative embedding enhancement technique, DGRCL significantly improves stock trend prediction accuracy compared to existing methods.
What Problem Does This Paper Address?
Predicting stock market movements is a highly sought-after but challenging task. Traditional approaches often rely solely on historical price data (OHLCV) or incorporate technical indicators. While some recent methods utilize graph neural networks (GNNs) to capture relationships between stocks, they often struggle to simultaneously model both the dynamic temporal evolution of these relationships and their static, underlying structures. Furthermore, constructing these stock market graphs can be difficult and heavily dependent on prior knowledge, and existing knowledge bases are not always effectively integrated. This paper aims to bridge this gap by proposing a framework that explicitly models both dynamic temporal changes and static relational structures between stocks for more accurate predictions.
Methods
The proposed Dynamic Graph Representation with Contrastive Learning (DGRCL) framework consists of three main components:
- Embedding Enhancement (EE) Module: This module dynamically constructs stock graphs by adaptively creating edges that follow a power-law distribution, mimicking real-world market structures. It also enhances stock features by using Fast Fourier Transformation (FFT) to capture temporal distribution characteristics and identify dissimilar periods within time series data. This helps in better representing the intricate and dynamic relationships between stocks.
- Contrastive Constrained Training (CCT) Module: This module integrates company relationships as constraints within a contrastive learning framework. It uses an adaptive constrained augmentation scheme to generate two views of the graph, aiming to maximize the consistency between their latent representations. This ensures robust feature representation by enforcing that similar stock relationships are pulled closer in the latent space, while dissimilar ones are pushed apart.
- Dynamic Graph Evolution: The framework employs a time-series forecasting architecture, such as GRU or LSTM, to capture dynamic changes in the graph over time, leading to temporally-aware predictions.
Datasets
The experiments were conducted on two major U.S. stock market datasets: NASDAQ and NYSE. These datasets span four years and include over a thousand traded stocks. The paper follows the setup of previous research (Feng et al., 2019) and divides the data into training, validation, and testing sets. The data includes OHLCV (Open, High, Low, Close, Volume) for each stock, and sector-industry relationships are used as relation types to define the graph structure.
Key Insights and Ideas
- Dual-Relation Modeling is Crucial: The paper highlights that effectively predicting stock movements requires simultaneously modeling both the dynamic temporal evolution of stock relationships and their static, underlying structures. Ignoring either aspect leads to suboptimal performance.
- Adaptive Graph Construction: Dynamically constructing graph edges based on power-law distributions and company relations, rather than relying solely on static or predefined structures, leads to a more realistic representation of market interdependencies.
- Contrastive Learning for Robustness: Using contrastive learning to enforce consistency between augmented views of the graph, constrained by company relations, significantly improves the robustness of learned stock representations.
- FFT for Feature Enhancement: Applying Fast Fourier Transform to stock time series data effectively captures distributional shifts and enhances features, leading to better predictive performance.
- Importance of Both Modules: Ablation studies reveal that while the Embedding Enhancement module significantly boosts performance (especially MCC), the Contrastive Constrained Training module, when combined with EE, yields the optimal results, suggesting a synergistic effect.
Key Results
DGRCL significantly outperforms state-of-the-art baselines on both NASDAQ and NYSE datasets for next trading day stock trend classification.
- NASDAQ Dataset: DGRCL achieved an accuracy of 53.06% (outperforming the second-best by 1.65%), an F1 score of 66.53%, and a MCC of 9.32.
- NYSE Dataset: DGRCL achieved an accuracy of 54.07%, an F1 score of 67.53%, and a MCC of 27.51, marking the highest recorded metrics across all models.
- Ablation studies showed that removing either the EE or CCT module led to a substantial performance drop, with the combined model achieving the best results.
- The paper notes that baseline models' performance in their experiments was lower than reported in their original papers, potentially due to the larger and more complex datasets used in this study.
Limitations and Future Work
- Computational Complexity: The paper acknowledges that the DGRCL framework, particularly the Contrastive Constrained Training (CCT) module, incurs significant computational overhead, leading to longer training times. This suggests a need for further optimization to balance performance and efficiency, especially for large-scale applications.
- Refining Static vs. Dynamic Features: Future work aims to further refine the CCT module to better distinguish between static and dynamic graph features.
- Cross-Country Financial Markets: The authors plan to conduct comparisons with additional baselines on financial market datasets from various countries (e.g., China) to demonstrate the framework's broader applicability.
- Optimization of Contrastive Learning: Future research will focus on optimizing the graph contrastive learning part to reduce computational overhead and enhance overall performance.
Summary updated