Futures Quantitative Investment with Heterogeneous Continual Graph Neural Network

Zhizhong Tan, Min Hu, Yixuan Wang, Lu Wei, Bin Liu · DOI

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.

The HCGNN architecture, featuring (a) the multi-task learning flow with spatio-temporal blocks and (b) the self-attention mechanism for automated graph discovery.

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.

Comparison of HCGNN against baseline models, showing significant reductions in MAE, RMSE, and MAPE for both 1-minute and 15-minute prediction intervals.

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

Abstract

This study aims to address the challenges of futures price prediction in high-frequency trading (HFT) by proposing a continuous learning factor predictor based on graph neural networks. The model integrates multi-factor pricing theories with real-time market dynamics, effectively bypassing the limitations of existing methods that lack financial theory guidance and ignore various trend signals and their interactions. We propose three heterogeneous tasks, including price moving average regression, price gap regression and change-point detection to trace the short-, intermediate-, and long-term trend factors present in the data. In addition, this study also considers the cross-sectional correlation characteristics of future contracts, where prices of different futures often show strong dynamic correlations. Each variable (future contract) depends not only on its historical values (temporal) but also on the observation of other variables (cross-sectional). To capture these dynamic relationships more accurately, we resort to the spatio-temporal graph neural network (STGNN) to enhance the predictive power of the model. The model employs a continuous learning strategy to simultaneously consider these tasks (factors). Additionally, due to the heterogeneity of the tasks, we propose to calculate parameter importance with mutual information between original observations and the extracted features to mitigate the catastrophic forgetting (CF) problem. Empirical tests on 49 commodity futures in China's futures market demonstrate that the proposed model outperforms other state-of-the-art models in terms of prediction accuracy. Not only does this research promote the integration of financial theory and deep learning, but it also provides a scientific basis for actual trading decisions.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Chinese high-frequency futures close-price regressionHCGNNMAE2.52-12.72 vs baselineTime Series Forecasting · split: test · test-period=2022-02-25 to 2022-02-28 · forecasting-interval=1-minute
Source quote
L411: HCGNN │ {\bf 2.52} │ {\bf 7.93} │ {\bf 0.01} │ {\bf 7.54} │ {\bf 19.75} │ {\bf 0.04}\cr
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
Chinese high-frequency futures close-price regressionStemGNN baselineMAE15.24Time Series Forecasting · split: test · test-period=2022-02-25 to 2022-02-28 · forecasting-interval=1-minute
Source quote
L407: StemGNN │ 15.24 │ 52.35 │ 0.08 │ 21.63 │ 73.69 │ 0.16 \cr
Chinese high-frequency futures close-price regressionSTGCN baselineMAE16.94Time Series Forecasting · split: test · test-period=2022-02-25 to 2022-02-28 · forecasting-interval=15-minute
Source quote
L409: STGCN │ 16.79 │ 36.88 │ 0.19 │ 16.94 │ 37.23 │ 0.23 \cr
BibTeX
@inproceedings{tan2024futures,
  author = {Zhizhong Tan and Min Hu and Yixuan Wang and Lu Wei and Bin Liu},
  title = {{Futures Quantitative Investment with Heterogeneous Continual Graph Neural Network}},
  booktitle = {ICDM},
  year = {2024},
  doi = {10.1109/icdm59182.2024.00104},
}
Figure