中国物理B ›› 2026, Vol. 35 ›› Issue (6): 68902-068902.doi: 10.1088/1674-1056/ae6635

• • 上一篇    

MGTTP: A multi-graph transformer model for traffic flow forecasting via bidirectional spatio-temporal interaction

Xiaolong Fan(范小龙)1 and Jialin He(何嘉林)1,2,3,†   

  1. 1 School of Computer Science, China West Normal University, Nanchong 637001, China;
    2 The Internet of Things Perception and Big Data Analysis Key Laboratory of Nanchong City, Nanchong 637000, China;
    3 Artificial Intelligence Key Laboratory of Nanchong, China West Normal University, Nanchong 637000, China
  • 收稿日期:2025-12-21 修回日期:2026-04-25 接受日期:2026-04-29 发布日期:2026-06-15
  • 通讯作者: Jialin He E-mail:hejialin32@126.com
  • 基金资助:
    This work was supported by the National Natural Science Foundation of China (Grant No. 62176217), the Sichuan Provincial Science and Technology Program, China (Grant No. 2018RZ0081), and the Fundamental Research Funds of China West Normal University (Grant No. 17E063).

MGTTP: A multi-graph transformer model for traffic flow forecasting via bidirectional spatio-temporal interaction

Xiaolong Fan(范小龙)1 and Jialin He(何嘉林)1,2,3,†   

  1. 1 School of Computer Science, China West Normal University, Nanchong 637001, China;
    2 The Internet of Things Perception and Big Data Analysis Key Laboratory of Nanchong City, Nanchong 637000, China;
    3 Artificial Intelligence Key Laboratory of Nanchong, China West Normal University, Nanchong 637000, China
  • Received:2025-12-21 Revised:2026-04-25 Accepted:2026-04-29 Published:2026-06-15
  • Contact: Jialin He E-mail:hejialin32@126.com
  • Supported by:
    This work was supported by the National Natural Science Foundation of China (Grant No. 62176217), the Sichuan Provincial Science and Technology Program, China (Grant No. 2018RZ0081), and the Fundamental Research Funds of China West Normal University (Grant No. 17E063).

摘要: Accurate traffic flow forecasting hinges on modeling coupled spatio-temporal dependencies rather than treating space and time in isolation. Many prior methods process spatial and temporal features separately—either in series or in parallel—and then fuse them with simple operators, which weakens their ability to capture intrinsic space-time interactions. We propose multi-graph transformer for traffic flow forecasting (MGTTP), a framework with an innovatively designed bidirectional spatio-temporal interaction mechanism: temporal signals guide multi-graph spatial fusion, while spatial context guides attention-based temporal aggregation. It addresses the limitations of static spatial fusion in existing multi-graph models and the serial spatio-temporal modeling paradigm in vanilla transformer baselines, achieving deep coupled modeling of spatio-temporal features. First, MGTTP builds three complementary graphs—adjacency, reachability, and similarity—and applies temporal feature-guided attention to dynamically fuse their multi-dimensional spatial representations. Subsequently, a transformer encoder captures long-term temporal dependencies, with spatial feature-guided attention to aggregate the time series. Finally, a gated fusion module realizes the ultimate fusion of spatio-temporal features for prediction. Extensive experiments on four public real-world traffic datasets demonstrate that MGTTP outperforms all compared mainstream baseline models across all evaluation metrics, with statistically significant performance gaps, validating the effectiveness of the proposed bidirectional spatio-temporal interaction mechanism.

关键词: traffic flow forecasting, graph neural networks, spatio-temporal modeling, attention mechanisms, transformer

Abstract: Accurate traffic flow forecasting hinges on modeling coupled spatio-temporal dependencies rather than treating space and time in isolation. Many prior methods process spatial and temporal features separately—either in series or in parallel—and then fuse them with simple operators, which weakens their ability to capture intrinsic space-time interactions. We propose multi-graph transformer for traffic flow forecasting (MGTTP), a framework with an innovatively designed bidirectional spatio-temporal interaction mechanism: temporal signals guide multi-graph spatial fusion, while spatial context guides attention-based temporal aggregation. It addresses the limitations of static spatial fusion in existing multi-graph models and the serial spatio-temporal modeling paradigm in vanilla transformer baselines, achieving deep coupled modeling of spatio-temporal features. First, MGTTP builds three complementary graphs—adjacency, reachability, and similarity—and applies temporal feature-guided attention to dynamically fuse their multi-dimensional spatial representations. Subsequently, a transformer encoder captures long-term temporal dependencies, with spatial feature-guided attention to aggregate the time series. Finally, a gated fusion module realizes the ultimate fusion of spatio-temporal features for prediction. Extensive experiments on four public real-world traffic datasets demonstrate that MGTTP outperforms all compared mainstream baseline models across all evaluation metrics, with statistically significant performance gaps, validating the effectiveness of the proposed bidirectional spatio-temporal interaction mechanism.

Key words: traffic flow forecasting, graph neural networks, spatio-temporal modeling, attention mechanisms, transformer

中图分类号:  (Land transportation)

  • 89.40.Bb
05.60.Gg (Quantum transport) 05.45.Tp (Time series analysis) 07.05.Mh (Neural networks, fuzzy logic, artificial intelligence) 02.70.Hm (Spectral methods)