Structure-Guided Spatiotemporal Attention Graph Neural Network for Traffic Flow Prediction
Summary
This paper proposes the Structure-Guided Spatiotemporal Attention Graph Neural Network (SGSAN) to improve traffic flow prediction by explicitly modeling structural dependencies for better interpretability and state-of-the-art accuracy.
View Cached Full Text
Cached at: 08/17/26, 10:21 AM
# Structure-Guided Spatiotemporal Attention Graph Neural Network for Traffic Flow Prediction Source: [https://arxiv.org/html/2608.14177](https://arxiv.org/html/2608.14177) Can LiWanjing MaThanks:This research is supported by \[52402407, the National Natural Science Foundation of China\]\.\(Corresponding author: Can Li\.\)Thanks:Xuanmian He is with the Department of Civil and Environmental Engineering, University of California, Berkeley, United States\. Can Li is with the Key Laboratory of Road and Traffic Engineering of the Ministry of Education, Tongji University, Shanghai 201804, China \(e\-mail:[xuanmianh@berkeley\.edu](mailto:[email protected]),[lican@tongji\.edu\.cn](mailto:[email protected]),[mawanjing@tongji\.edu\.cn](mailto:[email protected]) ###### Abstract Deep spatiotemporal models integrating graph convolutions and attention mechanisms have demonstrated excellent performance in network\-level traffic flow prediction, owing to their exceptional ability to capture complex spatiotemporal dependencies\. Despite their predictive success, deployment of such models in safety\-critical urban systems remains constrained by their inherent lack of transparency\. Existing post\-hoc diagnostic methods often struggle with spurious correlations and fail to unveil the intrinsic decision\-making mechanisms governing traffic dynamics, resulting in suboptimal interpretability and limited operational trustworthiness\. To address these challenges, this paper proposes the Structure\-Guided Spatiotemporal Attention Graph Neural Network \(SGSAN\)\. Departing from traditional architectures that rely on unconstrained adaptive graphs, SGSAN explicitly learns a static Directed Dependency Graph \(DDG\) to identify the invariant macroscopic propagation paths of traffic states\. We further introduce an InfoNCE\-based soft\-coupling mechanism that anchors the model’s dynamic spatiotemporal attention to this structural prior, offering a mechanistic account of the model’s decision\-making process while ensuring robust forecasting by aligning attention\-based reasoning with identified macroscopic dependencies and preventing over\-reliance on ephemeral local noise\. Furthermore, a decoupled two\-stage optimization framework is developed to resolve the fundamental conflict between structural discovery and predictive error minimization\. Extensive experiments on multiple real\-world datasets demonstrate that SGSAN achieves state\-of\-the\-art predictive accuracy while providing built\-in interpretability that organically aligns with the physical logic of traffic networks\. Our findings highlight that explicitly modeling directed structural dependencies can transform opaque spatiotemporal correlations into transparent, mechanistic insights without sacrificing predictive performance\. ###### Index Terms: System state estimation, Data\-based approaches, Traffic networks, Traffic Flow Prediction, Interpretability ## IIntroduction Accurate and reliable spatiotemporal traffic flow prediction plays a vital role in Intelligent Transportation Systems \(ITS\), providing the analytical foundation for proactive traffic control, efficient congestion mitigation, and optimal route planning\[[29](https://arxiv.org/html/2608.14177#bib.bib21)\]\. With the pervasive deployment of road network sensors, deep learning models have achieved high prediction accuracy by capturing complex features across large\-scale networks\[[33](https://arxiv.org/html/2608.14177#bib.bib30),[20](https://arxiv.org/html/2608.14177#bib.bib22),[25](https://arxiv.org/html/2608.14177#bib.bib24)\]\. However, the transition of these models from laboratory benchmarks to safety\-critical urban systems is hindered by their "black\-box" nature\[[30](https://arxiv.org/html/2608.14177#bib.bib4)\]\. In practical traffic engineering, achieving reliable results requires anchored predictions that supplement high accuracy with structural interpretability\. The opacity of complex architectures often leads to the capture of spurious relations, where models may achieve low training error by over\-fitting to ephemeral local noise rather than modeling the stable, underlying network structure\[[40](https://arxiv.org/html/2608.14177#bib.bib6)\]\. To address this lack of transparency, an increasing number of studies have focused on developing interpretable frameworks\. Existing efforts primarily fall into three categories: post\-hoc diagnostics \(such as LIME and SHAP\[[24](https://arxiv.org/html/2608.14177#bib.bib15),[19](https://arxiv.org/html/2608.14177#bib.bib37)\]\) , gradient\-based attribution methods\[[3](https://arxiv.org/html/2608.14177#bib.bib38)\], and attention\-based mechanisms\. While post\-hoc methods can generate plausible rationalizations for predictions, they operate as external estimators that merely approximate model behavior without reflecting the actual internal decision\-making mechanisms\. Alternatively, although attention mechanisms provide a degree of transparency by highlighting important features\[[9](https://arxiv.org/html/2608.14177#bib.bib2)\], they are fundamentally correlation\-driven\[[31](https://arxiv.org/html/2608.14177#bib.bib36)\]\. In complex traffic environments, these unconstrained attention weights greedily aggregate a broad range of statistical signals to minimize immediate prediction error\. This often includes spurious correlations, e\.g\., a sudden localized rainstorm might cause simultaneous congestion in two geographically disconnected zones\. A purely data\-driven predictive attention module will heavily rely on the strong statistical correlation despite the absence of a direct physical influence between zones\. Consequently, the reasoning process remains loosely constrained and highly susceptible to noise, failing to provide the structural consistency required for engineering trust\. While true interventionist causal inference is unachievable purely from observational traffic data without accounting for hidden confounders, the discovery techniques can be repurposed to learn a macroscopic structural prior\[[13](https://arxiv.org/html/2608.14177#bib.bib23)\]\. In the context of traffic networks, dominant propagation paths are fundamentally dictated by the time\-invariant macroscopic spatial topology\. Incorporating such structural discovery into spatiotemporal learning enables the model to distinguish a stable global backbone from incidental local fluctuations or spurious correlations\[[21](https://arxiv.org/html/2608.14177#bib.bib40)\]\. By anchoring dynamic reasoning to this learned backbone, the model moves beyond simple curve\-fitting, ensuring that its predictive logic remains consistent with the long\-term dependency patterns of the road topology\. Despite its potential, integrating structural priors with dynamic attention mechanisms faces a primary challenge: distilling a stable structural backbone from highly volatile traffic patterns without sacrificing the model’s sensitivity to real\-time variations\. This fundamental conflict stems from two main issues\. First, directly optimizing a graph structure alongside a deep predictive model often leads to gradient interference, where short\-term prediction errors can distort the long\-term dependency graph, resulting in an unstable topology\[[10](https://arxiv.org/html/2608.14177#bib.bib41)\]\. Second, imposing rigid structural constraints can over\-regularize the model, hindering its ability to respond to localized, non\-topological events \(e\.g\., accidents\)\[[14](https://arxiv.org/html/2608.14177#bib.bib42)\]\. To address this, we propose learning a static Directed Dependency Graph \(DDG\) to capture time\-invariant global spatial dependencies, while retaining a spatiotemporal attention mechanism to adapt to dynamic local inputs\. We adopt a two\-stage training framework that explicitly decouples structure learning \(Stage I\) from spatiotemporal correlation extraction \(Stage II\)\. This separation stabilizes the graph generation process and prevents disruption from local, short\-term noise\[[15](https://arxiv.org/html/2608.14177#bib.bib43)\]\. Furthermore, instead of imposing overly rigid constraints, we utilize InfoNCE contrastive learning as a form of soft regularization\[[27](https://arxiv.org/html/2608.14177#bib.bib8),[38](https://arxiv.org/html/2608.14177#bib.bib44)\]\. By maximizing the mutual information between the multi\-scale representations and the structural prior, this soft\-coupling guides the attention mechanism to anchor onto the stable DDG while preserving the flexibility necessary to capture real\-time, non\-topological local variations\. The main contributions of this study are summarized as follows: - •We propose a structure\-guided spatiotemporal architecture to overcome the reliance on unconstrained observational correlations and achieve a paradigm shift towards discovering time\-invariant structural priors\. Specifically, by learning a Directed Dependency Graph \(DDG\), our approach explicitly guides the attention\-based prediction process to follow macroscopic propagation paths, mitigating the impact of spurious correlations and local noise\. - •We design the Structure\-Guided Spatiotemporal Attention Graph Neural Network \(SGSAN\) to achieve structural stability and temporal flexibility while improving training and inference efficiency\. Specifically, we employ a decoupled two\-stage training strategy alongside a soft\-coupling mechanism that anchors dynamic attention to the static dependency graph, which has been shown to benefit convergence and prediction performance\. - •To evaluate the trustworthiness of the proposed framework, we introduce a new set of metrics that quantify the mechanistic alignment between model reasoning and physical network topology\. Results demonstrate the alignment between learned dependency priors, attention maps, and physical road networks\. Experiments on several real\-world datasets demonstrate that SGSAN achieves state\-of\-the\-art predictive accuracy while providing built\-in interpretability\. ## IIRelated Works ### II\-AInterpretable Prediction Previous studies on interpretable prediction primarily fall into two categories\[[2](https://arxiv.org/html/2608.14177#bib.bib28)\]\. 1. 1\.Inherently interpretable models, such as linear regression and ARIMA\. Despite the clear physical implications, they often struggle to extract high\-dimensional nonlinear features and exhibit lower accuracy in complex traffic networks\. 2. 2\.Approaches focusing on the explainability of “black\-box” models\[[18](https://arxiv.org/html/2608.14177#bib.bib25)\], including post\-hoc diagnostic methods, physics\-informed methods, attention\-based methods, and causal analysis\. Post\-hoc diagnostic methods are frequently employed to illustrate prediction results\. Cui*et al\.*\[[7](https://arxiv.org/html/2608.14177#bib.bib12)\]visualized model representation weights in graph convolutional recurrent neural networks, analyzed the spatial features of traffic states, and provided explanations for specific results\. Zhai*et al\.*\[[36](https://arxiv.org/html/2608.14177#bib.bib13)\]introduced a post\-hoc explainability measurement method for traffic prediction issues based on sensitivity and partial dependence graph correlation tests\. Medrano*et al\.*\[[8](https://arxiv.org/html/2608.14177#bib.bib14)\]employed SHAP, which establishes a dense layer after the traffic state prediction model to offer diagnostics for prediction results\. Ribeiro*et al\.*\[[24](https://arxiv.org/html/2608.14177#bib.bib15)\]compared and analyzed the global and local explanatory capabilities of diagnostic methods such as SHAP and LIME for travel time prediction\. Although these methods are model\-agnostic, their reliance on local approximations limits understanding of the neural network’s prediction logic and thus constrains the reliability of their explainability\. The attention mechanism has been validated to identify the most important data features by allocating weights and considering contextual relevance, which enhances prediction accuracy\[[22](https://arxiv.org/html/2608.14177#bib.bib26)\]\. It is particularly effective for modeling long\-term dependencies in sequences\. Furthermore, the attention weights contribute to a better understanding of the model, thereby increasing its interpretability\. In the context of traffic flow prediction, these weights indicate the significance of various traffic flow features on the prediction outcomes within a specific traffic network structure\[[16](https://arxiv.org/html/2608.14177#bib.bib17),[4](https://arxiv.org/html/2608.14177#bib.bib16),[1](https://arxiv.org/html/2608.14177#bib.bib27)\]\. Li*et al\.*\[[17](https://arxiv.org/html/2608.14177#bib.bib18)\]introduced a dynamic spatiotemporal attention mechanism for traffic flow prediction, integrating it with classical traffic flow theory to analyze the speed of traffic wave propagation and to elucidate the correlations in traffic states\. However, the explanations derived from the attention mechanism are often limited to specific samples, as the attention weights are closely tied to the features of the input data\. Additionally, the mechanism primarily focuses on correlations, limiting its capacity to interpret the underlying causal mechanism of the predictions\. ### II\-BFrom Causal Analysis to Structural Discovery Traditional neural networks can effectively identify correlations in data samples, but these correlations often lack interpretability and are susceptible to spurious statistical associations\. In contrast, learning causal or structural relationships offers insights more aligned with the intrinsic mechanisms governing the prediction process\. This distinction has motivated studies on causal and structure\-aware modeling for traffic forecasting, which can be organized into two lines of work: causal discovery methods and causal\-constrained spatiotemporal models\. ##### Pure Causal Discovery Methods Early efforts to introduce causal reasoning into traffic modeling drew on classical techniques from the causal inference literature\. Zhang*et al\.*\[[37](https://arxiv.org/html/2608.14177#bib.bib20)\]conducted a nonlinear Granger causality analysis using a deep learning model for traffic speed prediction, providing a principled criterion for selecting informative features within the network and establishing that directional temporal dependencies yield more stable representations than symmetric correlations\. Concurrently, Yu*et al\.*\[[35](https://arxiv.org/html/2608.14177#bib.bib9)\]proposed DAG\-GNN, which integrates graph neural networks with variational autoencoders to learn implicit causal relationships as a continuous directed acyclic graph optimization problem, offering a scalable alternative to combinatorial structure search\. Building on this, Tygesen*et al\.*\[[26](https://arxiv.org/html/2608.14177#bib.bib19)\]utilized inference graphs to reveal the model’s focus areas and to explain how spatial correlations are leveraged for traffic prediction, demonstrating that structural graph representations can meaningfully improve the interpretability of deep learning models\. ##### Causal\-Constrained Spatiotemporal Models Motivated by the limitations of purely data\-driven attention mechanisms, recent works have incorporated explicit causal structures to mitigate spurious correlations in complex traffic networks\. He*et al\.*\[[12](https://arxiv.org/html/2608.14177#bib.bib45)\]introduced STGC\-GNNs, which detect a Spatial\-Temporal Granger Causality graph to replace static distance\-based dependencies, demonstrating that data\-driven causality provides a more stable representation of underlying traffic flow dynamics\. Zhao*et al\.*\[[42](https://arxiv.org/html/2608.14177#bib.bib35)\]proposed a Causal Conditional Hidden Markov Model \(CCHMM\) that disentangles the physical concepts affecting multi\-modal traffic generation through a structural causal model, effectively isolating causal representations from observational noise\. Yang*et al\.*\[[32](https://arxiv.org/html/2608.14177#bib.bib34)\]further proposed the Principal Spatio\-Temporal Causal Graph Convolutional Network \(PSTCGCN\), which employs causal convolutions and semi\-principal graph embeddings to capture spatio\-temporal causal dependencies in a unified framework\. More recently, Zhu*et al\.*\[[46](https://arxiv.org/html/2608.14177#bib.bib46)\]reinforced this paradigm by integrating causal inference with graph convolutional networks to filter spurious edges and enhance model robustness against noisy observations\. Despite their contributions, existing methods either pursue strict causal identification, which is unachievable from observational traffic data alone without handling confounders and interventional experiments\[[23](https://arxiv.org/html/2608.14177#bib.bib29)\], or focus on isolated local causal features without capturing the global, time\-invariant propagation topology in the network\. Rather than claiming strict causal identification, SGSAN reframes the objective as structural dependency discovery\. Different from diffusion\-based graph formulations that propagate traffic states along pre\-defined directional road structures\[[39](https://arxiv.org/html/2608.14177#bib.bib39)\], we apply the continuous optimization techniques of causal discovery to learn a DDG that reflects the dominant propagation topology of the network without requiring interventional data\. Critically, existing methods have not resolved the fundamental tension between static global structural knowledge and the dynamic, real\-time flexibility required for accurate short\-term prediction\. While they have attempted to incorporate causal graphs into learning frameworks, they predominantly employ rigid fusion strategies\. Such hard fusion impedes the mechanistic clarity of the causal structure and sacrifices the dynamic flexibility required to capture non\-topological traffic anomalies as well\. To bridge this gap, SGSAN proposes a hybrid paradigm\. Structural discovery is employed to generate a global dependency graph and the spatiotemporal attention is used to capture dynamic, local fluctuations\. By softly coupling these two mechanisms, SGSAN effectively mitigates the influence of spurious correlations, yielding predictions that are both highly accurate and structurally interpretable\. ## IIIProblem Formulation A physical traffic network is mathematically defined as a graph𝒢=\(𝒱,ℰ\)\\mathcal\{G\}=\(\\mathcal\{V\},\\mathcal\{E\}\), where𝒱\\mathcal\{V\}is the set ofVVdetector nodes \(\|𝒱\|=V\|\\mathcal\{V\}\|=V\) andℰ\\mathcal\{E\}is the set of edges representing the physical road connections\. The underlying topological structure of this network is represented by the physical adjacency matrix𝐀∈ℝV×V\\mathbf\{A\}\\in\\mathbb\{R\}^\{V\\times V\}\. Letxti∈ℝx^\{i\}\_\{t\}\\in\\mathbb\{R\}denote the traffic state \(e\.g\., traffic flow\) of nodeiiat time steptt\. The collective traffic state of all nodes at timettis denoted as𝐗t=\[xt1,xt2,⋯,xtV\]\(𝐗t∈ℝV\)\\mathbf\{X\}\_\{t\}=\[x^\{1\}\_\{t\},x^\{2\}\_\{t\},\\cdots,x^\{V\}\_\{t\}\]\(\\mathbf\{X\}\_\{t\}\\in\\mathbb\{R\}^\{V\}\)\. The spatiotemporal traffic flow prediction problem aims to learn a mapping functionf\(⋅\)f\(\\cdot\)that leverages a historical sequence of traffic states overTTtime steps,𝐗t−T\+1:t∈ℝV×T\\mathbf\{X\}\_\{t\-T\+1:t\}\\in\\mathbb\{R\}^\{V\\times T\}, alongside the structural network information, to forecast the future traffic states over the nextHHtime steps,𝐗t\+1:t\+H∈ℝV×H\\mathbf\{X\}\_\{t\+1:t\+H\}\\in\\mathbb\{R\}^\{V\\times H\}\. This prediction task can be formally expressed as: 𝐗^t\+1:t\+H=f\(𝐗t−T\+1:t,𝐀\)\\hat\{\\mathbf\{X\}\}\_\{t\+1:t\+H\}=f\(\\mathbf\{X\}\_\{t\-T\+1:t\},\\mathbf\{A\}\)\(1\) In our proposed SGSAN framework, the functionf\(⋅\)f\(\\cdot\)operates by explicitly learning a DDG, denoted asG∈ℝV×VG\\in\\mathbb\{R\}^\{V\\times V\}, which serves as a structural prior to guide a dynamic spatiotemporal attention mechanism\. A comprehensive summary of the key notations used throughout this paper is provided in Table[I](https://arxiv.org/html/2608.14177#S3.T1)\. TABLE I:Summary of Key Notations ## IVMethodology Fig\. 1:Framework of Structure\-Guided Spatiotemporal Attention Graph Neural Network \(SGSAN\)In order to effectively fuse static structural knowledge with dynamic real\-time flexibility, we propose the Structure\-Guided Spatiotemporal Attention Graph Neural Network \(SGSAN\), shown in Figure[1](https://arxiv.org/html/2608.14177#S4.F1)\. It is a four\-module architecture designed to bridge structural discovery with spatiotemporal modeling\. First, the embedding module employs a temporal attention sub\-module to extract time\-series features and project the historical states into initial node embeddings\. Operating in parallel, the spatiotemporal attention module and structural discovery module are designed to extract spatiotemporal features at distinct scales\. The structural discovery module learns the DDGG∗G^\{\*\}to capture stable and time\-invariant dependencies among the nodes, and to identify the dominant dependency backbone, as detailed in Section[IV\-A](https://arxiv.org/html/2608.14177#S4.SS1)\. As detailed in Section[IV\-B](https://arxiv.org/html/2608.14177#S4.SS2), the spatiotemporal attention module stacks two spatial attention layers and one temporal attention layer to generate the dynamic hidden statehatth^\{att\}\. Specifically,GaG^\{a\}denotes the weight map derived from the final spatial attention layer, encapsulating the data\-driven local correlations\. The decoder’s output is then convolved to produce structural representationshstrh^\{str\}that capture these global topological relationships\. An inherent tension exists between these two parallel tracks,*i\.e\.*, the structural discovery module must filter out short\-term spurious correlations to distill the high\-level global topology, whereas the spatiotemporal attention module greedily captures localized temporal variations to maximize short\-term prediction accuracy\. To reconcile these divergent objectives and fuse the multi\-scale information, we introduce a two\-stage training framework equipped with InfoNCE contrastive learning\. As detailed in Section[IV\-C](https://arxiv.org/html/2608.14177#S4.SS3), this soft\-coupling mechanism resolves optimization conflicts by ensuring the dynamic attention is mechanically guided by the static structural prior\. Finally, the output module utilizes fully connected layers to generate the ultimate prediction\. Depending on the specific phase of our two\-stage framework, this prediction head dynamically routes the representations from either the spatiotemporal module or the structural discovery module to yield the final output\. ### IV\-AStructural Discovery Module The primary objective of the structural discovery module is to construct a directed dependency graph and generate a hidden structural representation \(hstrh^\{str\}\), enabling Structure\-Guided attention\. This module primarily consists of an encoder\-decoder structure that extracts topological information from node embeddings, enhanced by a graph convolution layer to further capture spatial relationships within the network\. Instead of processing traffic flow directly, the module utilizes node embeddings that are encoded through a temporal attention layer\. Each node embedding encapsulates the temporal dimension in the form of sequence information, allowing its shape to remain independent of the sequence length\. The main aim of learning the dependency graph is to provide the attention module with a stable structural prior\. Mathematically, the dependency graph is optimized as a directed acyclic graph \(DAG\)\[[23](https://arxiv.org/html/2608.14177#bib.bib29)\]\. Inspired by\[[35](https://arxiv.org/html/2608.14177#bib.bib9)\], we design a structural discovery module that employs the DAG\-GNN model, which is derived from structural equation models \(SEM\) and follows the architecture of variational autoencoders \(VAE\), consisting of an encoder and a decoder\. This module represents structural relationships through generative graphical models, transforming the creation of the dependency graph into a continuous optimization problem\. A linear SEM can be expressed as follows: h←BTh\+Zh\\leftarrow B^\{T\}h\+Z\(2\)whereB∈ℝV×VB\\in\\mathbb\{R\}^\{V\\times V\}represents the parameterized adjacency matrix of the graph\.hhis the input, andZZis a noise matrix\. Therefore, the mapping from the noise matrix to the original input is denoted as: h=\(𝐈−BT\)−1Zh=\(\\mathbf\{I\}\-B^\{T\}\)^\{\-1\}Z\(3\)where𝐈\\mathbf\{I\}is the identity matrix\. Based on this, the linear SEM can be transformed into a VAE structure: \{Z=MLP\[\(𝐈−GT\)⋅MLP\(hn\)\]h^str=MLP\[\(𝐈−GT\)−1⋅MLP\(Z\)\]\\begin\{cases\}Z=MLP\[\(\\mathbf\{I\}\-G^\{T\}\)\\cdot MLP\(h^\{n\}\)\]\\\\ \\hat\{h\}^\{str\}=MLP\[\(\\mathbf\{I\}\-G^\{T\}\)^\{\-1\}\\cdot MLP\(Z\)\]\\end\{cases\}\(4\) In this framework, transformations are applied through multi\-layer perceptrons \(MLPMLP\)\. The encoder utilizes the node embeddinghnh^\{n\}, while the decoder generates the intermediate outputh^str\\hat\{h\}^\{str\}\. The matrixGGrepresents the normalized dependency graph adjacency matrix that needs to be learned\. Following the VAE structure, a graph convolution layer is implemented to produce the final structural representation\. Graph convolution extracts spatial features by aggregating information from neighboring nodes\. The mathematical formulation is as follows: hstr=ReLU\(D~−12A~D~−12h^strW\)h^\{str\}=ReLU\(\\tilde\{D\}^\{\-\\frac\{1\}\{2\}\}\\tilde\{A\}\\tilde\{D\}^\{\-\\frac\{1\}\{2\}\}\\hat\{h\}^\{str\}W\)\(5\) wherehstrh^\{str\}denotes the structural representation,A~\\tilde\{A\}represents the normalized physical adjacency matrix after adding self\-loops, andD~\\tilde\{D\}denotes the degree matrix ofA~\\tilde\{A\}\.WWdenotes the learnable coefficient matrix\. The initialization of the structural adjacency matrixBBaims to improve the expression of nonlinear features\. Starting from a parameterized matrixB0B\_\{0\}, thesinh\(⋅\)sinh\(\\cdot\)function is introduced to amplify the significance of strong dependencies, modulated by a temperature coefficientτ\\tau\. To obtain the final adjacency matrixGGused in Equation \([4](https://arxiv.org/html/2608.14177#S4.E4)\), we apply a Softmax normalization, thereby incorporating the weights of directed dependencies into the model training process\. The Softmax function assigns the origin of influence for each node relative to others in the network: G=Softmax\(sinh\(τ⋅B0\)\)G=Softmax\(sinh\(\\tau\\cdot B\_\{0\}\)\)\(6\) ### IV\-BSpatiotemporal Attention Module To effectively model temporal dynamics in sequential traffic flow states, the temporal attention sub\-module utilizes a multi\-head self\-attention mechanism, comprising keys \(KK\), queries \(QQ\), and values \(VV\)\. They are generated through linear mapping of the inputhth^\{t\}, reflecting the underlying high\-dimensional characteristics of the data\. The structural equation of the attention module can be represented as follows: αij=Softmax\(Qi⋅KjTD\)\\alpha\_\{ij\}=\\text\{Softmax\}\(\\frac\{Q\_\{i\}\\cdot\{K\_\{j\}\}^\{T\}\}\{\\sqrt\{D\}\}\)\(7\) head=Att\(Qi,K,V\)=∑jαijVjhead=Att\(Q\_\{i\},K,V\)=\\sum\_\{j\}\\alpha\_\{ij\}V\_\{j\}\(8\)whereαij\\alpha\_\{ij\}represents the normalized attention weight coefficient\.Att\(⋅\)Att\(\\cdot\)is the weighted sum of coefficients multiplied by the value vector, incorporating temporal attention weights into the prediction process\. Assumingmmattention heads, the outputs are concatenated along their respective dimensions and undergo a linear mapping to produce the temporal attention\-based representation vectorhth^\{t\}\. To capture the complex spatial dependencies in traffic networks, we adopt a spatial attention module based on the graph attention network \(GAT\)\[[28](https://arxiv.org/html/2608.14177#bib.bib31)\]\. For any node in the graph, the attention scoreeije\_\{ij\}between its temporal attention representationhith^\{t\}\_\{i\}andhjth^\{t\}\_\{j\}is calculated as: eij=Softmaxj\[LeakyReLU\(\[W1hit∥W2hjt\]⋅W3\)\]e\_\{ij\}=\\text\{Softmax\}\_\{j\}\[LeakyReLU\(\[W\_\{1\}h^\{t\}\_\{i\}\\parallel W\_\{2\}h^\{t\}\_\{j\}\]\\cdot W\_\{3\}\)\]\(9\) whereeije\_\{ij\}denotes the attention scores, and the symbol∥\\parallelrepresents the vector concatenation operation\.W1W\_\{1\},W2W\_\{2\}, andW3W\_\{3\}represent learnable parameter matrices\. Finally, these scores are normalized with the Softmax function to produce the attention weight matrixGa=\[eij\]G^\{a\}=\[e\_\{ij\}\]\. Each element inGaG^\{a\}indicates the dynamic spatial correlation between nodeiiand nodejj\. We capture the weight matrix from the last spatial attention sub\-module, denoted as the "attention map", which is subsequently aligned with the structural representationhstrh^\{str\}to generate the final spatiotemporal representationhatth^\{att\}\. ### IV\-CLoss Function To resolve the inherent optimization conflict between discovering stable structural dependencies and minimizing dynamic prediction errors, we design a two\-stage training framework\. The overall objective function is composed of four components: prediction loss \(ℒA\\mathcal\{L\}\_\{A\}\), dependency structural loss \(ℒD\\mathcal\{L\}\_\{D\}\), sparsity regularizer \(ℒS\\mathcal\{L\}\_\{S\}\), and InfoNCE soft\-coupling loss \(ℒI\\mathcal\{L\}\_\{I\}\)\. \(1\) Prediction Loss \(ℒA\\mathcal\{L\}\_\{A\}\):We employ Mean Squared Error \(MSE\) to optimize the predictive accuracy of the model: ℒA=1N∑i=1N\(y^ti−yti\)2\\mathcal\{L\}\_\{A\}=\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}\(\\hat\{y\}\_\{t\}^\{i\}\-y\_\{t\}^\{i\}\)^\{2\}\(10\)wherey^ti\\hat\{y\}\_\{t\}^\{i\}denotes the predicted traffic state,ytiy\_\{t\}^\{i\}is the ground truth, andNNis the number of samples in the batch\. \(2\) Dependency Structural Loss \(ℒD\\mathcal\{L\}\_\{D\}\):To ensure the learned dependency graph forms a valid directed acyclic structure, we enforce a continuous NOTEARS trace exponential penalty\[[44](https://arxiv.org/html/2608.14177#bib.bib1)\]: ℒD=c\(V\)⋅\[tr\(eG⊙G\)−V\]\\mathcal\{L\}\_\{D\}=c\(V\)\\cdot\[\\text\{tr\}\(e^\{G\\odot G\}\)\-V\]\(11\)whereG∈ℝV×VG\\in\\mathbb\{R\}^\{V\\times V\}is the adjacency matrix of the dependency graph,VVis the number of nodes in the physical network,tr\(⋅\)\\text\{tr\}\(\\cdot\)represents the trace of a matrix,⊙\\odotdenotes the Hadamard product, ande\(⋅\)e^\{\(\\cdot\)\}denotes the matrix exponential\. Based on the properties of the matrix exponential,tr\(eG⊙G\)=V\\text\{tr\}\(e^\{G\\odot G\}\)=Vholds strictly true if and only ifGGis an acyclic structure\. The termc\(V\)c\(V\)is a normalization coefficient set to1×10−\(V//10\)1\\times 10^\{\-\(V//10\)\}that can easily stabilize gradients across different graph scales\. \(3\) Sparsity Regularizer \(ℒS\\mathcal\{L\}\_\{S\}\):To prevent over\-smoothing in spatial aggregators and eliminate redundant edges, anL1L\_\{1\}regularization term is applied: ℒS=‖G‖1=∑i=1V∑j=1V\|Gij\|\\mathcal\{L\}\_\{S\}=\\\|G\\\|\_\{1\}=\\sum\_\{i=1\}^\{V\}\\sum\_\{j=1\}^\{V\}\|G\_\{ij\}\|\(12\)This strict structural sparsity serves as a crucial inductive bias, aiding the model in identifying the dominant dependency backbone while reducing the influence of spurious correlations\. \(4\) InfoNCE Soft\-Coupling Loss \(ℒI\\mathcal\{L\}\_\{I\}\):Instead of directly enforcing similarity via KL divergence—which often leads to rigid structural constraints and eliminates temporal flexibility—we utilize contrastive learning to enhance the spatiotemporal attention mechanism\[[27](https://arxiv.org/html/2608.14177#bib.bib8)\]: ℒI=−1N∑i=1Nlogexp\(sim\(histr,hiatt\)/τ0\)∑j=1Nexp\(sim\(histr,hjatt\)/τ0\)\\mathcal\{L\}\_\{I\}=\-\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}\\log\\frac\{\\exp\(\\text\{sim\}\(h\_\{i\}^\{str\},h\_\{i\}^\{att\}\)/\\tau\_\{0\}\)\}\{\\sum\_\{j=1\}^\{N\}\\exp\(\\text\{sim\}\(h\_\{i\}^\{str\},h\_\{j\}^\{att\}\)/\\tau\_\{0\}\)\}\(13\)wherehistrh\_\{i\}^\{str\}denotes the structural representation derived from the dependency graph, andhiatth\_\{i\}^\{att\}denotes the dynamic spatiotemporal attention representation\.sim\(⋅\)\\text\{sim\}\(\\cdot\)is the cosine similarity function, andτ0\\tau\_\{0\}is the temperature for InfoNCE loss\. This coupling mechanism operates as a soft alignment strategy, effectively anchoring the attention to the dependency skeleton while preserving the necessary representational freedom for the attention mechanism to capture real\-time local dependencies\. ### IV\-DTwo\-Stage Training Strategy Training the directed dependency structure and the attention mechanism simultaneously forces them to optimize fundamentally different objectives concurrently, leading to mutual interference and degraded performance\. To address this, we introduce an explicitly decoupled two\-stage learning process, outlined in Algorithm[1](https://arxiv.org/html/2608.14177#alg1)\. Stage I \(DDG Generation\):The main objective is to learn a global dependency graph that incorporates time\-invariant macroscopic topology\. The dynamic attention module is excluded, and the structural discovery module is optimized using the following joint loss: ℒStage\-I=ℒA\+γD⋅ℒD\+γS⋅ℒS\\mathcal\{L\}\_\{\\text\{Stage\-I\}\}=\\mathcal\{L\}\_\{A\}\+\\gamma\_\{D\}\\cdot\\mathcal\{L\}\_\{D\}\+\\gamma\_\{S\}\\cdot\\mathcal\{L\}\_\{S\}\(14\) Stage II \(Soft Alignment\):The structural discovery module is frozen, providing the learned dependency graph \(G∗G^\{\*\}\) as a stable structural prior\. The spatiotemporal attention module is then activated and optimized\. The core objective in this stage is to softly couple the multi\-scale representations, mitigating spurious correlations while preserving the attention mechanism’s flexibility to adapt to real\-time inputs\. The total loss function is defined as: ℒStage\-II=ℒA\+γI⋅ℒI\\mathcal\{L\}\_\{\\text\{Stage\-II\}\}=\\mathcal\{L\}\_\{A\}\+\\gamma\_\{I\}\\cdot\\mathcal\{L\}\_\{I\}\(15\)whereγD\\gamma\_\{D\},γS\\gamma\_\{S\}, andγI\\gamma\_\{I\}are balancing coefficients determined empirically to achieve an optimal balance between directed dependency graph convergence and contrastive learning\. Algorithm 1Two\-Stage Training Framework of SGSAN0:Input sequences 𝐗t−T\+1:t\\mathbf\{X\}\_\{t\-T\+1:t\}, Adjacency matrix 𝐀\\mathbf\{A\}, Balancing hyperparameters γD,γS,γI\\gamma\_\{D\},\\gamma\_\{S\},\\gamma\_\{I\} 0:Predicted traffic states 𝐗^t\+1:t\+H\\hat\{\\mathbf\{X\}\}\_\{t\+1:t\+H\} 1:Initialize parameters for Temporal Module ℳt\\mathcal\{M\}\_\{t\}, Spatial Attention Module ℳs\\mathcal\{M\}\_\{s\}, Structural Discovery Module ℳstr\\mathcal\{M\}\_\{str\}, and Output Module foutf\_\{out\}\. 2: 3:Stage I: Generate the Directed Dependency Graph \(DDG\) 4:whileStage I not convergeddo 5: ht=ℳt\(𝐗t−T\+1:t\)h^\{t\}=\\mathcal\{M\}\_\{t\}\(\\mathbf\{X\}\_\{t\-T\+1:t\}\) 6: hstr,G=ℳstr\(ht,𝐀\)h^\{str\},G=\\mathcal\{M\}\_\{str\}\(h^\{t\},\\mathbf\{A\}\) 7: 𝐗^t\+1:t\+H=fout\(hstr\)\\hat\{\\mathbf\{X\}\}\_\{t\+1:t\+H\}=f\_\{out\}\(h^\{str\}\) 8:Compute ℒStage\-I\\mathcal\{L\}\_\{\\text\{Stage\-I\}\}via Eq\. \([14](https://arxiv.org/html/2608.14177#S4.E14)\) 9:Update ℳt,ℳstr,fout\\mathcal\{M\}\_\{t\},\\mathcal\{M\}\_\{str\},f\_\{out\}by minimizing ℒStage\-I\\mathcal\{L\}\_\{\\text\{Stage\-I\}\} 10:endwhile 11:Extract and freeze the optimized DDG matrix G∗G^\{\*\} 12: 13:Stage II: Soft Alignment of Spatiotemporal Attention 14:whileStage II not convergeddo 15: ht=ℳt\(𝐗t−T\+1:t\)h^\{t\}=\\mathcal\{M\}\_\{t\}\(\\mathbf\{X\}\_\{t\-T\+1:t\}\) 16: hatt=ℳs\(ht,G∗\)h^\{att\}=\\mathcal\{M\}\_\{s\}\(h^\{t\},G^\{\*\}\)\{Guided by the stable structural prior\} 17: 𝐗^t\+1:t\+H=fout\(hatt\)\\hat\{\\mathbf\{X\}\}\_\{t\+1:t\+H\}=f\_\{out\}\(h^\{att\}\) 18:Compute ℒStage\-II\\mathcal\{L\}\_\{\\text\{Stage\-II\}\}via Eq\. \([15](https://arxiv.org/html/2608.14177#S4.E15)\) 19:Update ℳt,ℳs,fout\\mathcal\{M\}\_\{t\},\\mathcal\{M\}\_\{s\},f\_\{out\}by minimizing ℒStage\-II\\mathcal\{L\}\_\{\\text\{Stage\-II\}\} 20:endwhile The training complexity of our model is reduced through its decoupled design\. In Stage I, generating the DDG involves continuous DAG optimization, which carries anO\(N3\)O\(N^\{3\}\)complexity\. However, this functions strictly as an offline pre\-training process\. In Stage II, the standard spatial attention complexity ofO\(T⋅N2⋅D\)O\(T\\cdot N^\{2\}\\cdot D\)is significantly reduced\. By masking the attention map with the learned sparse dependency graph, the complexity drops toO\(T⋅\|E\|⋅D\)O\(T\\cdot\|E\|\\cdot D\), where\|E\|\|E\|is the number of retained edges \(\|E\|≪N2\|E\|\\ll N^\{2\}\)\. During the validation and online testing stages, the structural discovery module is bypassed entirely\. The future traffic states are predicted by feeding the dynamic inputs through the spatiotemporal attention module, which is guided purely by the frozen, pre\-computed sparse DDG mask\. Therefore, the online inference complexity remains strictly bounded atO\(T⋅\|E\|⋅D\)O\(T\\cdot\|E\|\\cdot D\), bypassing the heavy structural generation overhead entirely\. ## VExperiment and Results To validate our proposed model, we implement and train the model on several real\-world traffic flow datasets, compare prediction results with baseline models, and conduct ablation studies on the structural discovery module and the two\-stage learning framework\. In addition, we compare the training and inference efficiency of these models theoretically and empirically\. ### V\-ADatasets and Experiment Setup We adopt four open\-source traffic datasets for evaluations, which are provided by the Performance Measurement System \(PeMS\) of the California Department of Transportation: PeMS03, PeMS07, PeMS08, and PeMS\-Bay\. Detailed descriptions of the datasets are provided in Table[II](https://arxiv.org/html/2608.14177#S5.T2)\. TABLE II:Descriptive Analysis of DatasetsDatasetPeMS03PeMS07PeMS08PeMS\-BayTimesteps26,20828,22417,85652,116Number of nodes358883170325Number of edges5498652762,369Predicted stateVolumeVolumeVolumeMean SpeedThe length of the input sequence is 15 minutes, and the prediction horizon is set to 15, 30, and 60 minutes\. The training, validation, and test sets were split in a ratio of 7:1:2\. The Adam optimizer is adopted, and the learning rate is4×10−44\\times 10^\{\-4\}with a dropout rate of 0\.1\. The model was trained on an NVIDIA Tesla A800 GPU for 100 epochs, with the first 50 epochs for Stage I and 50 epochs for Stage II to balance training efficiency and the sufficiency of dependency structure learning\. Through hyperparameter tuning, we determined the optimal settings: the hidden layer dimension in our SGSAN model is set to 16 for every module, and each temporal attention module has 4 heads\. The values forγD\\gamma\_\{D\},γS\\gamma\_\{S\}andγI\\gamma\_\{I\}in Equations \([14](https://arxiv.org/html/2608.14177#S4.E14)\) and \([15](https://arxiv.org/html/2608.14177#S4.E15)\) are 0\.1,1×10−61\\times 10^\{\-6\}, and1×10−31\\times 10^\{\-3\}, respectively\. To validate the predictive performance of the interpretable model proposed in this paper, we conduct comparative experiments with other baseline models on the same dataset\. To clarify, SGSAN \(Ours\) denotes the proposed model trained with the two\-stage framework\. - •Temporal Graph Convolutional Network \(T\-GCN\)\[[41](https://arxiv.org/html/2608.14177#bib.bib7)\]: Combines GCNs for spatial topology with GRUs for temporal dynamics\. - •Spatio\-Temporal Graph Convolutional Network \(STGCN\)\[[34](https://arxiv.org/html/2608.14177#bib.bib10)\]: Integrates 1D causal convolutions and graph convolutions without relying on RNNs\. - •Graph Multi\-Attention Network \(GMAN\)\[[43](https://arxiv.org/html/2608.14177#bib.bib5)\]: Employs multiple spatial and temporal attention mechanisms with a transform attention layer\. - •Attention\-based Spatiotemporal Graph Convolutional Network \(ASTGCN\)\[[11](https://arxiv.org/html/2608.14177#bib.bib3)\]: Incorporates spatial and temporal attention mechanisms within a GCN framework\. - •Spatiotemporal Transformer Network \(STTN\)\[[5](https://arxiv.org/html/2608.14177#bib.bib11)\]: Dynamically models dependencies utilizing self\-attention mechanisms across spatial and temporal domains\. - •Dynamic Spatial\-Temporal Trend Transformer \(DST2former\)\[[6](https://arxiv.org/html/2608.14177#bib.bib32)\]: Captures spatio\-temporal correlations through adaptive embedding and fuses dynamic trends with static graph attributes via Cross Spatial\-Temporal Attention\. - •Dual Cross\-Scale Transformer \(DCST\)\[[45](https://arxiv.org/html/2608.14177#bib.bib33)\]: Utilizes a dual\-path architecture to capture dependencies across micro and macro temporal scales\. - •Causal Conditional Hidden Markov Model \(CCHMM\)\[[42](https://arxiv.org/html/2608.14177#bib.bib35)\]: Employs mutually supervised prior and posterior networks to disentangle causal representations of physical concepts in multimodal traffic\. - •Principal Spatio\-Temporal Causal Graph Convolutional Network \(PSTCGCN\)\[[32](https://arxiv.org/html/2608.14177#bib.bib34)\]: Leverages causal discovery algorithms to generate a causal graph prior for spatio\-temporal forecasting\. ### V\-BComparative Analysis of Prediction Accuracy TABLE III:Performance Comparison: Prediction AccuracyAs shown in Table[III](https://arxiv.org/html/2608.14177#S5.T3), the proposed SGSAN \(Ours\) method achieves state\-of\-the\-art predictive accuracy on all four datasets\. Compared to models with Transformer structures, such as STTN, DST2Former, and DCST, SGSAN \(Ours\) outperforms them, especially when the prediction horizon is not so long\. An interesting phenomenon is that these models with more complicated structures fail to demonstrate their high capacity when the prediction horizon is 15 minutes\. Nevertheless, when the prediction horizon increases, the advantages of capturing long sequence dependency are fully realized\. For the proposed model SGSAN \(Ours\), the structural discovery module corrects the potential spurious correlations introduced by unconstrained attention and finds sparser and more global feature significance, further improving the prediction accuracy\. This highlights that the Structure\-Guided spatiotemporal attention mechanism demonstrates a strong capacity for prediction by identifying the dominant propagation paths and interpreting the built\-in mechanism of traffic flow dynamics\. ### V\-CAblation Studies The ablation studies examine the effectiveness of the DDG and the two\-stage training framework\. Table[IV](https://arxiv.org/html/2608.14177#S5.T4)shows the prediction accuracy in the ablation studies, where baseline models used for comparison are - •STA\-GNN\(Spatiotemporal Attention\-based Graph Neural Network\) – The structural discovery module has been entirely removed, and the prediction results are only derived from the attention module\. - •SGSAN \(DAG\-Relaxed\):The model architecture and two\-stage training framework remain identical to the proposed SGSAN\. We introduce a tolerance marginϵ=0\.1\\epsilon=0\.1into the dependency structural lossℒD\\mathcal\{L\}\_\{D\}to relax the strict acyclicity constraint\. This can address the concern that strict DAG assumption may over\-constrain the structural learning process\. - •SGSAN \(Random\-DDG\):The model architecture and two\-stage training framework remain identical to the proposed SGSAN\. However, rather than employing the DDG𝒢∗\\mathcal\{G\}^\{\*\}learned through the structural discovery module in Stage I, we substitute it with a randomly generated sparse DAG𝒢rand\\mathcal\{G\}^\{\\text\{rand\}\}of equivalent edge density, whose non\-zero entries are drawn from a uniform distribution and subsequently normalized\. - •SGSAN \(Joint\)– A single\-stage joint training framework\. The architecture is the same as the proposed model but trained end\-to\-end simultaneously with all losses active\. The comprehensive ablation results presented in Table[IV](https://arxiv.org/html/2608.14177#S5.T4)demonstrate the advantages of the proposed SGSAN and validate the contributions of its individual components and the two\-stage training framework\. TABLE IV:Prediction Results in the Ablation StudiesCompared to the proposed two\-stage framework, SGSAN \(Joint\) struggles to converge on complex networks\. For example, its MAE on PeMS07 at the 60\-min horizon increased sharply to 70\.26\. This indicates that simultaneously learning macroscopic priors and local correlations leads to severe optimization conflicts, a bottleneck our decoupled framework effectively resolves\. To rule out that improvements stem solely from sparsity penalties, we evaluate SGSAN \(Random\-DDG\)\. Applying a random sparse prior without structural guidance sometimes leads to worse performance than the unconstrained STA\-GNN \(e\.g\., PeMS07 at the 15\-min horizon\)\. Furthermore, the degradation of SGSAN \(DAG\-Relaxed\) shows that relaxing strict acyclic constraints introduces spurious cyclic noise\. The marked advantage of SGSAN \(Ours\) over these baselines validates that our framework successfully captures genuine macroscopic dependencies\. Among coupling mechanisms, InfoNCE outperforms MSE, cosine, and KL divergence in many cases\. Hard constraints force the dynamic attention matrix to rigidly replicate the static DDG, restricting its capability to adapt to real\-time, non\-topological local fluctuations\. In contrast, InfoNCE anchors the attention mechanism without forcing absolute equality, granting the numerical freedom to capture dynamic local variances\. Admittedly, strict numerical regularization provides tight bounds under specific conditions, occasionally giving alternative metrics a slight edge\. However, InfoNCE still holds the advantage across MAE, MAPE, and RMSE in general\. ### V\-DComputational Efficiency In terms of computational efficiency, the proposed two\-stage framework excels in both the training and deployment phases\. We evaluate its performance from two perspectives: training speed and online inference latency\. #### V\-D1Training Efficiency As shown in Table[V](https://arxiv.org/html/2608.14177#S5.T5), this two\-stage decoupled approach SGSAN \(Ours\) reduces the average training time per epoch by approximately 31\.7% across all datasets compared to the joint\-learning baseline SGSAN \(Joint\), effectively mitigating the computational bottleneck of simultaneous graph generation and prediction\. TABLE V:Average Training Time Per Epoch #### V\-D2Inference Efficiency For real\-world urban computing deployments, inference efficiency is a crucial performance metric\. Because our global dependency graph is statically learned offline, it introduces zero structural generation overhead during the online inference phase\. The online data flow is comparable to standard GNNs, requiring only the application of the pre\-learned sparse graph mask\. Table[VI](https://arxiv.org/html/2608.14177#S5.T6)compares the average inference time per sample on the PeMS03 dataset\. SGSAN \(Ours\) achieves a low latency of 0\.096 ms/sample\. Notably, it is vastly more efficient than the recent causal baseline PSTCGCN, which relies on heavier online dependency structure generation\. While ASTGCN and CCHMM are marginally faster, our framework offers a significantly superior trade\-off by achieving much higher predictive accuracy, making it highly suitable for real\-time, safety\-critical traffic management systems\. Additionally, the proposed SGSAN \(Ours\) is considerably faster than the baseline SGSAN \(Joint\)\. TABLE VI:Inference Efficiency Comparison ### V\-EInterpretability Analysis Fig\. 2:Sensitivity Analysis of Interpretability Metrics \(ASC, SPC, and APC\) across varying sparsity levels \(Top\-K%K\\%\)\(a\)Example 1 \(b\)Example 2 \(c\)Example 3 \(d\)Example 4 \(e\)Example 5 \(f\)Example 6 Fig\. 3:Example Nodes in the Subgraphs illustrating consistency between the DDG and the Attention Map\.To comprehensively demonstrate that SGSAN provides trustworthy and interpretable prediction, we conduct both qualitative and quantitative analyses on its interpretability\. We evaluate internal consistency to show that the dynamic attention is properly anchored to the learned structural backbone, and we evaluate external physical alignment to verify that the learned components naturally reflect the real\-world road network topology\. Additionally, we examine dynamic flexibility to ensure the model adaptively balances global structural reliance with local stochasticity\. #### V\-E1Consistency Metrics for Structure\-Guided Interpretability To quantitatively validate the structure\-guided mechanisms of SGSAN, we evaluate the alignment between the structural dependency prior and the dynamic spatiotemporal attention\. A foundational assumption of our framework is that a truly interpretable and trustworthy model should implicitly capture the physical macroscopic backbone of the road network, rather than relying on spurious statistical noise\. \(i\) Attention\-Structural Consistency \(ASC\)\. This metric measures the internal alignment between the static DDG and the dynamic spatiotemporal attention map\. The rationale is that a trustworthy model should anchor its attention weights to the underlying structural backbone identified in Stage I\. A high ASC indicates the effectiveness of the InfoNCE contrastive learning loss\. ASC=1B∑b=1B1K\|\{𝐓𝐨𝐩𝐊\(Ga\(b\)\)\}∩\{𝐓𝐨𝐩𝐊\(G∗\)\}\|ASC=\\frac\{1\}\{B\}\\sum\_\{b=1\}^\{B\}\\frac\{1\}\{K\}\|\\\{\\mathbf\{TopK\}\(G^\{a\}\(b\)\)\\\}\\cap\\\{\\mathbf\{TopK\}\(G^\{\*\}\)\\\}\|\(16\) where𝐓𝐨𝐩𝐊\(⋅\)\\mathbf\{TopK\}\(\\cdot\)denotes the operation of selecting the topK%K\\%of node pairs with the highest weight values\.Ga\(b\)G^\{a\}\(b\)denotes the attention map associated with batchbb, andBBdenotes the total number of batches\. While the dependency graph \(G∗G^\{\*\}\) remains static, the attention map dynamically adapts to real\-time inputs in each batch\. A higherASCASCvalue indicates a stronger structural prior guiding the attention mechanism\. \(ii\) Structural\-Physical Consistency \(SPC\)andAttention\-Physical Consistency \(APC\)\. While ASC measures internal alignment, there is a risk that the metric is self\-referential, as Stage II explicitly integrates the dependency graph and attention maps\. To provide an external evaluation, we introduce SPC and APC\. SPC measures the overlap between the learned DDG and the actual physical road network adjacency matrix, while APC measures the overlap between the dynamic attention map and the physical network\. #### V\-E2Quantitative Analysis of Structural Consistency This section presents the quantitative results of interpretability using the metrics introduced in Section[V\-E1](https://arxiv.org/html/2608.14177#S5.SS5.SSS1)\. Figure[2](https://arxiv.org/html/2608.14177#S5.F2)presents a sensitivity analysis of these metrics across varying sparsity levels \(from Top\-10% to Top\-50% retained capacity\) for all four datasets\. The results yield three crucial insights regarding the model’s interpretability\. First, the high SPC scores across datasets demonstrate that our learned dependency graph organically aligns with the physical topology, successfully capturing the true macroscopic structure of the traffic network without any geographic supervision\. Moreover, the APC and SPC curves exhibit closely matched values and parallel trajectories across all sparsity levels \(e\.g\., at the Top\-30% threshold on PeMS\-Bay, SPC and APC reach 0\.88 and 0\.85, respectively\)\. This proves that the dynamic attention mechanism faithfully inherits the physical alignment of the structural prior\. Finally, the ASC metric proves highly robust across varying network densities\. The InfoNCE coupling effectively anchors the attention to the core structural skeleton while retaining the numerical freedom required for the attention mechanism to capture real\-time, non\-topological dependencies\. #### V\-E3Visualization of Graph Alignment This section offers a qualitative analysis of the model’s interpretability, highlighting the visual alignment between the structural dependencies and the attention mechanism\. We utilize the sample\-specific attention mapGaG^\{a\}along with the static dependency graphG∗G^\{\*\}to identify and filter significant node pairs, creating "key subgraphs" for visualization\. While the dependency graph remains uniform across all inputs, the attention map varies dynamically\. For this visualization, we average the attention weights across the test set and juxtapose them with the dependency graph\. The edges in the key subgraphs represent the most significant node\-to\-node dependencies\. Figure[3](https://arxiv.org/html/2608.14177#S5.F3)demonstrates the relationship dynamics for six typical nodes\. A strong consistency between the directed dependencies and the attention\-based correlations is evident, with the width of each arrow indicating the weight of the relationship\. A key observation is that while the dependency graph is sparser and highly focused, the majority of the dominant paths it identifies are faithfully mirrored in the attention map\. Because the dependency graph learns from the macroscopic structure of the entire dataset, it provides the model with a global perspective to identify the true propagation paths of traffic flow\. When comparing this Structure\-Guided attention map with the baseline STA\-GNN, a critical difference emerges\. Without structural constraints, standard attention weights tend to be symmetric and undirected, often producing bidirectional arrows that merely reflect statistical correlation rather than physical influence\. In contrast, because our dependency graph is constrained to be directed and acyclic, the Structure\-Guided attention map adopts these asymmetric relationships\. Bidirectional arrows rarely appear, demonstrating that the InfoNCE contrastive learning successfully transfers the directional logic of the physical network into the attention mechanism\. SGSAN aligns its prediction process with the actual physical features governing traffic state propagation, thereby making it trustworthy and robust\. ## VIConclusion In this paper, we proposed the Structure\-Guided Spatiotemporal Attention Graph Neural Network \(SGSAN\) to bridge the gap between high\-accuracy deep learning and trustworthy traffic flow prediction\. Traditional attention mechanisms are fundamentally driven by observational correlations, making them susceptible to local noise and spurious correlations\. To address this limitation, our framework explicitly decouples structural discovery from representation learning via a two\-stage training strategy\. By learning a time\-invariant Directed Dependency Graph \(DDG\) and employing an InfoNCE\-based soft\-coupling mechanism, SGSAN successfully anchors dynamic spatiotemporal attention to a stable structural prior\. Extensive experiments on four real\-world datasets demonstrate that SGSAN achieves state\-of\-the\-art predictive performance\. In terms of computational efficiency, SGSAN \(Ours\) outperforms most baselines in inference efficiency, while the two\-stage training framework enhances the training efficiency\. Furthermore, through newly introduced structural consistency metrics, we verify that the model provides built\-in interpretability\. The learned DDG achieves an 88% alignment with the physical structure of real networks, without relying on any geographic constraints\. By shifting the focus from unconstrained statistical correlations to directed structural dependencies, this work provides a trustworthy, highly accurate, and deployable modeling framework for transportation systems\. ## Acknowledgment This research was supported by \[2024YFB4303100, National Key R&D Program of China\] and \[52402407, the National Natural Science Foundation of China\]\. ## References - \[1\]A\. Ali, Y\. M\. Zhu, and M\. Zakarya\(2021\)Exploiting dynamic spatio\-temporal correlations for citywide traffic flow prediction using attention based neural networks\.Information Sciences577,pp\. 852–870\.External Links:ISSN 0020\-0255Cited by:[§II\-A](https://arxiv.org/html/2608.14177#S2.SS1.p4.1)\. - \[2\]A\. B\. Arrieta, N\. Díaz\-Rodríguez, J\. Del Ser, A\. Bennetot, S\. Tabik, A\. Barbado, S\. García, S\. Gil\-López, D\. Molina, R\. Benjamins, R\. Chatila, and F\. Herrera\(2020\)Explainable artificial intelligence \(xai\): concepts, taxonomies, opportunities and challenges toward responsible ai\.Information Fusion58,pp\. 82–115\.External Links:ISSN 1566\-2535Cited by:[§II\-A](https://arxiv.org/html/2608.14177#S2.SS1.p1.1)\. - \[3\]S\. Bach, A\. Binder, G\. Montavon, F\. Klauschen, K\. Müller, and W\. Samek\(2015\)On pixel\-wise explanations for non\-linear classifier decisions by layer\-wise relevance propagation\.PloS one10\(7\),pp\. e0130140\.Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p3.1)\. - \[4\]J\. D\. Bai, J\. W\. Zhu, Y\. J\. Song, L\. Zhao, Z\. X\. Hou, R\. H\. Du, and H\. F\. Li\(2021\)A3T\-gcn: attention temporal graph convolutional network for traffic forecasting\.Isprs International Journal of Geo\-Information10\(7\)\.Cited by:[§II\-A](https://arxiv.org/html/2608.14177#S2.SS1.p4.1)\. - \[5\]C\. L\. Chen, Y\. B\. Liu, L\. Chen, and C\. Q\. Zhang\(2023\)Bidirectional spatial\-temporal adaptive transformer for urban traffic flow forecasting\.Ieee Transactions on Neural Networks and Learning Systems34\(10\),pp\. 6913–6925\.External Links:ISSN 2162\-237xCited by:[5th item](https://arxiv.org/html/2608.14177#S5.I1.i5.p1.1)\. - \[6\]J\. Chen, H\. Ye, Z\. Ying, Y\. Sun, and W\. Xu\(2025\)Dynamic trend fusion module for traffic flow prediction\.Applied Soft Computing174,pp\. 112979\.External Links:ISSN 1568\-4946Cited by:[6th item](https://arxiv.org/html/2608.14177#S5.I1.i6.p1.1)\. - \[7\]Z\. Y\. Cui, K\. Henrickson, R\. M\. Ke, and Y\. H\. Wang\(2020\)Traffic graph convolutional recurrent neural network: a deep learning framework for network\-scale traffic learning and forecasting\.Ieee Transactions on Intelligent Transportation Systems21\(11\),pp\. 4883–4894\.External Links:ISSN 1524\-9050Cited by:[§II\-A](https://arxiv.org/html/2608.14177#S2.SS1.p3.1)\. - \[8\]R\. de Medrano and J\. L\. Aznarte\(2020\)A spatio\-temporal attention\-based spot\-forecasting framework for urban traffic prediction\.Applied Soft Computing96\.External Links:ISSN 1568\-4946Cited by:[§II\-A](https://arxiv.org/html/2608.14177#S2.SS1.p3.1)\. - \[9\]L\. N\. N\. Do, H\. L\. Vu, B\. Q\. Vo, Z\. Y\. Liu, and D\. Phung\(2019\)An effective spatial\-temporal attention based neural network for traffic flow prediction\.Transportation Research Part C\-Emerging Technologies108,pp\. 12–28\.External Links:ISSN 0968\-090xCited by:[§I](https://arxiv.org/html/2608.14177#S1.p3.1)\. - \[10\]L\. Franceschi, M\. Niepert, M\. Pontil, and X\. He\(2019\)Learning discrete structures for graph neural networks\.InInternational conference on machine learning,pp\. 1972–1982\.Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p5.1)\. - \[11\]S\. N\. Guo, Y\. F\. Lin, N\. Feng, C\. Song, and H\. Y\. Wan\(2019\)Attention based spatial\-temporal graph convolutional networks for traffic flow forecasting\.Thirty\-Third Aaai Conference on Artificial Intelligence / Thirty\-First Innovative Applications of Artificial Intelligence Conference / Ninth Aaai Symposium on Educational Advances in Artificial Intelligence,pp\. 922–929\.External Links:ISSN 2159\-5399Cited by:[4th item](https://arxiv.org/html/2608.14177#S5.I1.i4.p1.1)\. - \[12\]S\. He, Q\. Luo, R\. Du, L\. Zhao, G\. He, H\. Fu, and H\. Li\(2023\)STGC\-gnns: a gnn\-based traffic prediction framework with a spatial–temporal granger causality graph\.Physica A: Statistical Mechanics and its Applications623,pp\. 128913\.Cited by:[§II\-B](https://arxiv.org/html/2608.14177#S2.SS2.SSS0.Px2.p1.1)\. - \[13\]D\. Janzing\(2019\)Causal regularization\.Advances in Neural Information Processing Systems 32 \(Nips 2019\)32\.External Links:ISSN 1049\-5258Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p4.1)\. - \[14\]W\. Jiang and J\. Luo\(2022\)Graph neural network for traffic forecasting: a survey\.Expert systems with applications207,pp\. 117921\.Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p5.1)\. - \[15\]W\. Jin, Y\. Ma, X\. Liu, X\. Tang, S\. Wang, and J\. Tang\(2020\)Graph structure learning for robust graph neural networks\.InProceedings of the 26th ACM SIGKDD international conference on knowledge discovery & data mining,pp\. 66–74\.Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p6.1)\. - \[16\]S\. Y\. Lan, Y\. T\. Ma, W\. K\. Huang, W\. W\. Wang, H\. Y\. Yang, and P\. Y\. Li\(2022\)DSTAGNN: dynamic spatial\-temporal aware graph neural network for traffic flow forecasting\.International Conference on Machine Learning, Vol 162\.External Links:ISSN 2640\-3498Cited by:[§II\-A](https://arxiv.org/html/2608.14177#S2.SS1.p4.1)\. - \[17\]G\. P\. Li, V\. L\. Knoop, and H\. van Lint\(2021\)Multistep traffic forecasting by dynamic graph convolution: interpretations of real\-time spatial correlations\.Transportation Research Part C\-Emerging Technologies128\.External Links:ISSN 0968\-090xCited by:[§II\-A](https://arxiv.org/html/2608.14177#S2.SS1.p4.1)\. - \[18\]Y\. Liang, S\. G\. Li, C\. G\. Yan, M\. Z\. Li, and C\. J\. Jiang\(2021\)Explaining the black\-box model: a survey of local interpretation methods for deep neural networks\.Neurocomputing419,pp\. 168–182\.External Links:ISSN 0925\-2312Cited by:[item 2](https://arxiv.org/html/2608.14177#S2.I1.i2.p1.1)\. - \[19\]S\. M\. Lundberg and S\. Lee\(2017\)A unified approach to interpreting model predictions\.Advances in neural information processing systems30\.Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p3.1)\. - \[20\]Y\. Lv, Y\. Duan, W\. Kang, Z\. Li, and F\. Wang\(2015\)Traffic flow prediction with big data: a deep learning approach\.IEEE Transactions on Intelligent Transportation Systems16\(2\),pp\. 865–873\.Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p1.1)\. - \[21\]W\. J\. Murdoch, C\. Singh, K\. Kumbier, R\. Abbasi\-Asl, and B\. Yu\(2019\)Definitions, methods, and applications in interpretable machine learning\.Proceedings of the National Academy of Sciences116\(44\),pp\. 22071–22080\.Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p4.1)\. - \[22\]Z\. Y\. Niu, G\. Q\. Zhong, and H\. Yu\(2021\)A review on the attention mechanism of deep learning\.Neurocomputing452,pp\. 48–62\.External Links:ISSN 0925\-2312Cited by:[§II\-A](https://arxiv.org/html/2608.14177#S2.SS1.p4.1)\. - \[23\]J\. Pearl\(2000\)Causality: models, reasoning, and inference\.Cambridge University Press,USA\.External Links:ISBN 0521773628Cited by:[§II\-B](https://arxiv.org/html/2608.14177#S2.SS2.SSS0.Px2.p2.1),[§IV\-A](https://arxiv.org/html/2608.14177#S4.SS1.p1.1)\. - \[24\]M\. T\. Ribeiro, S\. Singh, and C\. Guestrin\(2016\)"Why should i trust you?": explaining the predictions of any classifier\.ACM\.Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p3.1),[§II\-A](https://arxiv.org/html/2608.14177#S2.SS1.p3.1)\. - \[25\]Y\. X\. Tian and L\. Pan\(2015\)Predicting short\-term traffic flow by long short\-term memory recurrent neural network\.2015 Ieee International Conference on Smart City/Socialcom/Sustaincom \(Smartcity\),pp\. 153–158\.Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p1.1)\. - \[26\]M\. N\. Tygesen, F\. C\. Pereira, and F\. Rodrigues\(2023\)Unboxing the graph: towards interpretable graph neural networks for transport prediction through neural relational inference\.Transportation Research Part C\-Emerging Technologies146\.External Links:ISSN 0968\-090xCited by:[§II\-B](https://arxiv.org/html/2608.14177#S2.SS2.SSS0.Px1.p1.1)\. - \[27\]A\. van den Oord, Y\. Li, and O\. Vinyals\(2018\)Representation Learning with Contrastive Predictive Coding\.arXiv e\-prints,pp\. arXiv:1807\.03748\.Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p6.1),[§IV\-C](https://arxiv.org/html/2608.14177#S4.SS3.p5.1)\. - \[28\]P\. Velickovic, G\. Cucurull, A\. Casanova, A\. Romero, P\. Lio, Y\. Bengio,et al\.\(2017\)Graph attention networks\.stat1050\(20\),pp\. 10–48550\.Cited by:[§IV\-B](https://arxiv.org/html/2608.14177#S4.SS2.p4.1)\. - \[29\]E\. I\. Vlahogianni, M\. G\. Karlaftis, and J\. C\. Golias\(2014\)Short\-term traffic forecasting: where we are and where we’re going\.Transportation Research Part C\-Emerging Technologies43,pp\. 3–19\.External Links:ISSN 0968\-090xCited by:[§I](https://arxiv.org/html/2608.14177#S1.p1.1)\. - \[30\]C\. X\. Wang, Y\. X\. Liang, and G\. R\. Tan\(2024\)WCityCAN: causal attention network for citywide spatio\-temporal forecasting\.Proceedings of the 17th Acm International Conference on Web Search and Data Mining, Wsdm 2024,pp\. 702–711\.Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p1.1)\. - \[31\]S\. Wiegreffe and Y\. Pinter\(2019\)Attention is not not explanation\.InProceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing \(EMNLP\-IJCNLP\),K\. Inui, J\. Jiang, V\. Ng, and X\. Wan \(Eds\.\),Hong Kong, China,pp\. 11–20\.External Links:[Document](https://dx.doi.org/10.18653/v1/D19-1002)Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p3.1)\. - \[32\]S\. Yang, Q\. Wu, Z\. Li, and K\. Wang\(2024\)PSTCGCN: principal spatio\-temporal causal graph convolutional network for traffic flow prediction\.Neural Computing and Applications,pp\. 1–14\.Cited by:[§II\-B](https://arxiv.org/html/2608.14177#S2.SS2.SSS0.Px2.p1.1),[9th item](https://arxiv.org/html/2608.14177#S5.I1.i9.p1.1)\. - \[33\]X\. Yin, G\. Wu, J\. Wei, Y\. Shen, H\. Qi, and B\. Yin\(2021\)Deep learning on traffic prediction: methods, analysis, and future directions\.IEEE Transactions on Intelligent Transportation Systems23\(6\),pp\. 4927–4943\.Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p1.1)\. - \[34\]B\. Yu, H\. Yin, and Z\. Zhu\(2018\)Spatio\-temporal graph convolutional networks: a deep learning framework for traffic forecasting\.InProceedings of the 27th International Joint Conference on Artificial Intelligence \(IJCAI\),pp\. 3634–3640\.Cited by:[2nd item](https://arxiv.org/html/2608.14177#S5.I1.i2.p1.1)\. - \[35\]Y\. Yu, J\. Chen, T\. Gao, and M\. Yu\(2019\)DAG\-GNN: DAG structure learning with graph neural networks\.InProceedings of the 36th International Conference on Machine Learning,K\. Chaudhuri and R\. Salakhutdinov \(Eds\.\),Proceedings of Machine Learning Research, Vol\.97,pp\. 7154–7163\.Cited by:[§II\-B](https://arxiv.org/html/2608.14177#S2.SS2.SSS0.Px1.p1.1),[§IV\-A](https://arxiv.org/html/2608.14177#S4.SS1.p1.1)\. - \[36\]X\. Zhai, F\. Guo, and A\. Sivakumar\(2022\)A novel interpretability evaluation framework to understand deep learning traffic prediction models\.SSRN Electronic Journal\.Cited by:[§II\-A](https://arxiv.org/html/2608.14177#S2.SS1.p3.1)\. - \[37\]K\. P\. Zhang, L\. Zheng, Z\. J\. Liu, and N\. Jia\(2020\)A deep learning based multitask model for network\-wide traffic speed prediction\.Neurocomputing396,pp\. 438–450\.External Links:ISSN 0925\-2312Cited by:[§II\-B](https://arxiv.org/html/2608.14177#S2.SS2.SSS0.Px1.p1.1)\. - \[38\]Q\. Zhang, C\. Huang, L\. Xia, Z\. Wang, Z\. Li, and S\. Yiu\(2023\)Automated spatio\-temporal graph contrastive learning\.InProceedings of the ACM web conference 2023,pp\. 295–305\.Cited by:[§I](https://arxiv.org/html/2608.14177#S1.p6.1)\. - \[39\]X\. Zhang, C\. Huang, Y\. Xu, L\. Xia, P\. Dai, L\. Bo, J\. Zhang, and Y\. Zheng\(2021\)Traffic flow forecasting with spatial\-temporal graph diffusion network\.InProceedings of the AAAI conference on artificial intelligence,Vol\.35,pp\. 15008–15015\.Cited by:[§II\-B](https://arxiv.org/html/2608.14177#S2.SS2.SSS0.Px2.p2.1)\. - \[40\]Y\. Zhang, P\. Tino, A\. Leonardis, and K\. Tang\(2021\)A survey on neural network interpretability\.Ieee Transactions on Emerging Topics in Computational Intelligence5\(5\),pp\. 726–742\.External Links:ISSN 2471\-285xCited by:[§I](https://arxiv.org/html/2608.14177#S1.p2.1)\. - \[41\]L\. Zhao, Y\. J\. Song, C\. Zhang, Y\. Liu, P\. Wang, T\. Lin, M\. Deng, and H\. F\. Li\(2020\)T\-gcn: a temporal graph convolutional network for traffic prediction\.Ieee Transactions on Intelligent Transportation Systems21\(9\),pp\. 3848–3858\.External Links:ISSN 1524\-9050Cited by:[1st item](https://arxiv.org/html/2608.14177#S5.I1.i1.p1.1)\. - \[42\]Y\. Zhao, P\. Deng, J\. Liu, X\. Jia, and M\. Wang\(2023\)Causal conditional hidden markov model for multimodal traffic prediction\.InProceedings of the AAAI Conference on Artificial Intelligence,Cited by:[§II\-B](https://arxiv.org/html/2608.14177#S2.SS2.SSS0.Px2.p1.1),[8th item](https://arxiv.org/html/2608.14177#S5.I1.i8.p1.1)\. - \[43\]C\. Zheng, X\. Fan, C\. Wang, and J\. Qi\(2020\)Gman: a graph multi\-attention network for traffic prediction\.InProceedings of the AAAI conference on artificial intelligence,Vol\.34,pp\. 1234–1241\.Cited by:[3rd item](https://arxiv.org/html/2608.14177#S5.I1.i3.p1.1)\. - \[44\]X\. Zheng, B\. Aragam, P\. K\. Ravikumar, and E\. P\. Xing\(2018\)DAGs with no tears: continuous optimization for structure learning\.InAdvances in Neural Information Processing Systems,S\. Bengio, H\. Wallach, H\. Larochelle, K\. Grauman, N\. Cesa\-Bianchi, and R\. Garnett \(Eds\.\),Vol\.31,pp\.\.Cited by:[§IV\-C](https://arxiv.org/html/2608.14177#S4.SS3.p3.1)\. - \[45\]Y\. Zhou, P\. Wang, H\. Dong, D\. Zhang, D\. Yang, Y\. Fu, and P\. Wang\(2024\)Make graph neural networks great again: a generic integration paradigm of topology\-free patterns for traffic speed prediction\.InProceedings of the Thirty\-Third International Joint Conference on Artificial Intelligence,IJCAI ’24\.External Links:ISBN 978\-1\-956792\-04\-1Cited by:[7th item](https://arxiv.org/html/2608.14177#S5.I1.i7.p1.1)\. - \[46\]J\. Zhu, J\. Yuan, T\. Nguyen, R\. Wang, and W\. Zeng\(2025\)Traffic prediction using an active causality recurrent graph convolutional network\.Expert Systems with Applications,pp\. 129506\.Cited by:[§II\-B](https://arxiv.org/html/2608.14177#S2.SS2.SSS0.Px2.p1.1)\. ![[Uncaptioned image]](https://arxiv.org/html/2608.14177v1/He.jpg)Xuanmian Heis currently pursuing a master’s degree in Transportation Engineering at University of California, Berkeley\. He received the bachelor’s degree in Traffic Engineering from Tongji University in 2025\. His research interests include the intersection of artificial intelligence with traffic flow modeling and control, connected and automated vehicles, as well as trustworthy and interpretable decision\-making in transportation\.![[Uncaptioned image]](https://arxiv.org/html/2608.14177v1/Li.jpg)Can LiCan Li received the M\.S\. degree in the Department of Electrical and Computer Engineering from Rutgers University and PhD degree in the School of Computer Science and Engineering from the University of New South Wales\. She is currently an Associate Professor in the college of Transportation at Tongji University\. Her research focuses on urban big data analytics, deep learning modeling, and transportation foundation models\.![[Uncaptioned image]](https://arxiv.org/html/2608.14177v1/Ma.jpg)Wanjing Mareceived the B\.S\. degree in architecture engineering from Chang’an University, Xi’an, China, in 2001, and the M\.S\. and Ph\.D\. degrees in traffic information engineering and control from Tongji University, Shanghai, China, in 2004 and 2007, respectively\. He is currently a Professor with the College of Transportation, Tongji University\. He has published more than 100 articles in Transportation Research Part B: Methodological and other domestic or foreign core journals and academic conferences\. His research interests include traffic and control, vehicle\-road coordination, and shared mobility\.
Similar Articles
A Global-Local Graph Attention Network for Traffic Forecasting
Proposes a Global-Local Graph Attention Network (GLGAT) with pairwise encoding and event-based adjacency matrix for traffic forecasting, effectively capturing spatio-temporal correlations and achieving competitive performance on real-world datasets.
Spatiotemporal Graph Transformer for Traffic Intelligence in Edge Computing
This paper proposes a spatiotemporal graph Transformer framework for traffic forecasting in edge computing, combining graph neural networks for spatial correlations and Transformer self-attention for long-range temporal dependencies. Experiments on real-world cellular data show it outperforms recurrent graph-based baselines like GCN-LSTM and GCN-GRU.
hia-gat: A Heterogeneous Interaction-Aware Graph Attention Network For Frame-Level Traffic Conflict Risk Prediction On Freeways
This paper proposes HIA-GAT, a dual-stream heterogeneous graph attention network that integrates longitudinal and lateral vehicle interactions with a conflict-type-aware gating mechanism for frame-level traffic conflict risk prediction on freeways. Experiments on NGSIM datasets show improved risk-ranking performance, particularly for lateral conflicts, and provide interpretable per-vehicle conflict attribution.
Neural Architecture Search for Traffic Prediction: A Survey of Methods, Challenges, and Future Directions
This survey reviews neural architecture search (NAS) methods applied to traffic prediction, organizing them by search strategy (gradient-based, evolutionary, one-shot weight-sharing) and discussing challenges such as computational scalability, cross-city generalization, and future directions.
General Semantic Knowledge Infusion for Spatio-Temporal Traffic Forecasting
This paper presents a framework for integrating semantic knowledge from general-purpose knowledge graphs into spatio-temporal traffic forecasting models to improve prediction accuracy and interpretability by providing contextual information beyond physical connectivity.