TCGformer: A temporal causal graph enhanced transformer model for multivariate financial time series forecasting


Abstract

State-of-the-art time series forecasting models, particularly Transformers, often fail to capture the time-varying causal structures that govern interactions among financial institutions, limiting their predictive accuracy in complex environments. This paper introduces the Temporal Causal Graph-Enhanced Transformer (TCGformer), a novel causal knowledge-based intelligent system that integrates causal inference into deep learning for time series prediction. Our framework employs a three-stage pipeline: we first utilize Functional Data Analysis for robust preprocessing of noisy and irregular financial data; we then construct temporal causal graph using Variable-lag Granger Causality, a state-of-the-art causal inference method for observational causal discovery in time series, to model the evolving network of inter-institutional influence; finally, we seamlessly inject this externally grounded causal knowledge into a hierarchical Transformer architecture via our proposed GNN-empowered hybrid routing mechanism. We conduct extensive experiments on a real-world dataset. The results demonstrate that TCGformer consistently outperforms strong baselines, including Crossformer and Transformer, across multiple evaluation metrics. Ablation and robustness analysis reveals a key insight into the model's operational strengths: its performance advantage is particularly pronounced in the medium-to-long-term forecasting horizons. This suggests that our knowledge-driven approach is effective at capturing the fundamental, structural market dynamics that are crucial for longer-range prediction. Furthermore, the more explainable temporal causal graphs provide valuable and interpretable insights into the shifting patterns of systemic risk. To our knowledge, TCGformer is the first framework to synergistically fuse the temporal causal knowledge into a Transformer-based forecasting architecture, bridging the gap between causal discovery and deep learning for intelligent decision-making in finance.
Ask to review this manuscript

Notes for potential reviewers

  • Volunteering is not a guarantee that you will be asked to review. There are many reasons: reviewers must be qualified, there should be no conflicts of interest, a minimum of two reviewers have already accepted an invitation, etc.
  • This is NOT OPEN peer review. The review is single-blind, and all recommendations are sent privately to the Academic Editor handling the manuscript. All reviews are published and reviewers can choose to sign their reviews.
  • What happens after volunteering? It may be a few days before you receive an invitation to review with further instructions. You will need to accept the invitation to then become an official referee for the manuscript. If you do not receive an invitation it is for one of many possible reasons as noted above.

  • PeerJ Computer Science does not judge submissions based on subjective measures such as novelty, impact or degree of advance. Effectively, reviewers are asked to comment on whether or not the submission is scientifically and technically sound and therefore deserves to join the scientific literature. Our Peer Review criteria can be found on the "Editorial Criteria" page - reviewers are specifically asked to comment on 3 broad areas: "Basic Reporting", "Experimental Design" and "Validity of the Findings".
  • Reviewers are expected to comment in a timely, professional, and constructive manner.
  • Until the article is published, reviewers must regard all information relating to the submission as strictly confidential.
  • When submitting a review, reviewers are given the option to "sign" their review (i.e. to associate their name with their comments). Otherwise, all review comments remain anonymous.
  • All reviews of published articles are published. This includes manuscript files, peer review comments, author rebuttals and revised materials.
  • Each time a decision is made by the Academic Editor, each reviewer will receive a copy of the Decision Letter (which will include the comments of all reviewers).

If you have any questions about submitting your review, please email us at [email protected].