Abstract
As a crucial technique for developing a smart city, traffic forecasting has become a popular research focus in academic and industrial communities for decades. This task is highly challenging due to complex and dynamic spatial-temporal dependencies in traffic networks. Existing works ignore continuous temporal dependencies and spatial dependencies evolving over time. In this paper, we propose Continuously Evolving Graph Neural Controlled Differential Equations (CEGNCDE) to capture continuous temporal dependencies and spatial dependencies over time simultaneously. Specifically, a continuously evolving graph generator (CEGG) based on NCDE is introduced to generate the spatial dependencies graph that continuously evolves over time from discrete historical observations. Then, a graph neural controlled differential equations (GNCDE) framework is introduced to capture continuous temporal dependencies and spatial dependencies over time simultaneously. Extensive experiments demonstrate that CEGNCDE outperforms the SOTA methods by average 2.34% relative MAE reduction, 0.97% relative RMSE reduction, and 3.17% relative MAPE reduction.
Introduction
Traffic forecasting is traditionally treated as a sequence of discrete snapshots, but real-world traffic is a continuous process. Most modern traffic forecasting models rely on Spatial-Temporal Graph Neural Networks (STGNNs). While effective, these models suffer from two major conceptual gaps: they treat traffic data as discrete sequences (e.g., 5-minute intervals) and often assume a static or discretely changing topology. In reality, traffic conditions and the spatial dependencies between sensors—such as how a jam at one intersection affects another—evolve continuously.
This paper introduces CEGNCDE, a framework that uses Neural Controlled Differential Equations (NCDEs) to model both traffic flow and the underlying road network graph as continuously evolving entities, achieving state-of-the-art accuracy across multiple real-world datasets.
Methodology
The core of the proposed solution is the integration of two main innovations designed to capture continuous dynamics.
Continuously Evolving Graph Generator (CEGG)
Instead of pre-defining a graph, CEGG generates a continuous adjacency matrix $A_E(t)$. It uses an NCDE to create a hidden state path $H(t)$ from historical observations. An attention module then processes this path to determine how nodes relate to each other at any specific moment $t$. To ensure stability, this dynamic graph is fused with a learnable Static Adjacency Matrix ($A_S$) that captures permanent physical road connections.
Graph Neural Controlled Differential Equations (GNCDE)
The GNCDE framework integrates the evolving graph directly into the "vector field" of an NCDE. While a standard RNN updates its state in steps, the GNCDE defines how the system's state $Z(t)$ changes infinitesimally over time. This change is calculated using GNN operations that operate on the continuously updated graph from the CEGG.
To maintain computational efficiency, the authors use Geographic and Semantic Masks. These masks prune the graph so the model only focuses on physically nearby sensors or those with historically similar traffic patterns, rather than treating the entire city as a fully connected web.
Experiments and Results
The model was evaluated on six widely-used real-world traffic datasets from the California Performance of Transportation System (PeMS), including PeMS03, PeMS04, PeMS07, and PeMS08.
Key Performance Metrics
CEGNCDE consistently outperformed 12 baseline models, including classic methods (ARIMA), standard STGNNs (STGCN, WaveNet), and previous NDE-based models (STG-NCDE). On average, the model achieved a 2.34% reduction in MAE, a 0.97% reduction in RMSE, and a 3.17% reduction in MAPE compared to the best existing baselines.
Case Study: Dynamic Topology
Visualizations of the learned graph weights demonstrate the model's ability to capture real-time semantic shifts. As shown in the case study, when the traffic trends of two nodes become more similar, the corresponding connection strength in the evolved graph visibly darkens, confirming that the model successfully captures evolving spatial dependencies.
Conclusion
CEGNCDE represents a significant advancement by defining the graph itself as a differential equation, allowing the model to interpolate network structure between observation points. While the model achieves superior accuracy, future work will address the computational overhead associated with solving CDEs and explore the inclusion of external continuous variables like weather or social events to further refine predictions.
Summary updated