Abstract
Predicting price movements in high-frequency trading (HFT) is a complex challenge due to microstructure noise and the intricate cross-sectional correlations between assets. This paper introduces the Heterogeneous Continual Graph Neural Network (HCGNN), a novel framework designed to bridge the gap between financial factor theory and deep learning. By simultaneously learning short-, intermediate-, and long-term trend factors through four heterogeneous tasks—Price Forecasting, Gap Regression, Moving Average Regression, and Change-Point Detection—the model captures a comprehensive view of market dynamics. To address the challenge of catastrophic forgetting in multi-task learning, we employ a Mutual Information-based parameter importance strategy. Empirical results on the Chinese commodity futures market demonstrate that HCGNN significantly outperforms state-of-the-art baselines in both predictive accuracy and trading profitability.
Introduction
High-frequency trading (HFT) environments are characterized by rapid fluctuations and significant noise. Traditional deep learning models often struggle in this domain for three primary reasons: a lack of grounding in established financial theories, the neglect of cross-sectional correlations between different assets, and the phenomenon of "catastrophic forgetting" when models are trained on multiple objectives.
To overcome these hurdles, we propose HCGNN. This model integrates spatio-temporal graph learning to discover hidden relationships between futures contracts and uses a multi-task learning approach to incorporate diverse financial indicators.
Methodology: The HCGNN Framework
The HCGNN architecture is built upon a Spatio-Temporal Graph Neural Network (STGNN) that captures both historical price movements and the spatial dependencies between 49 different futures contracts.
Multi-Task Learning and Financial Factors
Rather than focusing solely on price prediction, HCGNN is trained on four distinct tasks that reflect different market "factors":
- Gap Regression: Targets short-term volatility.
- Moving Average (MA) Regression: Captures intermediate-term trends.
- Change-Point Detection (CPD): Identifies long-term structural shifts.
- Price Forecasting: The primary predictive objective.
Continual Learning via Mutual Information
To prevent the model from "forgetting" earlier tasks as it learns new ones, we implement a continual learning strategy. Unlike traditional methods that rely on noisy loss gradients, we use Mutual Information (MI) between input data and extracted features to determine parameter importance. This allows the model to "freeze" critical neurons for specific tasks, ensuring stable performance across all objectives.
Experimental Setup
The model was evaluated using a tick-level dataset from the Chinese futures market, spanning February 14 to February 28, 2022. The dataset includes 49 types of commodity futures, totaling over 388,000 samples. Data was preprocessed using Z-Score normalization and filtered for liquidity.
Results and Discussion
HCGNN demonstrates a substantial improvement over existing models such as StemGNN, MTGNN, and STGCN.
As shown in the results, for 1-minute price predictions, HCGNN achieved a Mean Absolute Error (MAE) of 2.52, a dramatic improvement over the next-best baseline, StemGNN (MAE 15.24). In trading simulations, the model achieved a cumulative return of 140% over the test period. Ablation studies further confirmed that removing any of the auxiliary tasks (Gap, MA, or CPD) resulted in a decline in performance, validating the multi-factor approach.
Conclusion
The HCGNN framework successfully demonstrates that integrating financial theory with advanced graph neural networks can yield superior results in high-frequency trading. By leveraging automated graph discovery and a robust continual learning mechanism, the model captures complex market interdependencies while maintaining stability across multiple predictive tasks. Future research will explore the application of this framework to other asset classes, including stocks and options.
Summary updated