Abstract
Traffic flow prediction is a critical part of the intelligent transportation system, and many schemes have been proposed for accurate flow prediction based on traffic sensors. However, existing approaches mainly capture spatial-temporal (ST) dependencies from the traffic graph and train their models using randomly ordered data. This approach ignores the fact that the modeling difficulty of each sensor/node from the traffic graph can vary significantly due to its spatial dependencies and temporal trends, leading to unreliable and unstable predictions for each traffic sensor in real-world applications. These issues motivated us to design a more effective training process for sensors with different levels of difficulty. The ST modeling difficulty stems from two factors: (I) deviations between the normal component and abnormal component in the time sequences; and (II) deviations between the learned relation and the explicit relation of a predetermined graph in the spatial dependencies. In this case, we argue that a well-designed curriculum with an easy-to-difficult order can benefit the training of ST models. This paper proposes a method to measure the ST difficulty at the node level of traffic graphs from both spatial and temporal aspects. Then, it conducts a curriculum during the ST model training procedure. Specifically, based on the ST difficulty score, the model training starts from a subgraph whose nodes are considered ”easy” because of their relatively consistent spatial relationships and regular temporal patterns. After that, more difficult nodes are gradually added to the subgraph and participate in the following training stages. We have conducted extensive experiments on two public traffic datasets, which show the superiority of our proposed curriculum scheduler over multiple state-of-the-art ST models.
Introduction
Traffic forecasting is a cornerstone of intelligent transportation systems, but it is notoriously difficult because traffic data is "noisy" in both space and time. Most current models use Graph Neural Networks (GNNs) to capture relationships between sensors, but they treat every sensor as equally important from the start of training. This paper introduces a node-level curriculum learning strategy that identifies which traffic sensors are "easy" or "hard" to model. By training the system on a gradually increasing scale of difficulty, the proposed method significantly improves the accuracy and stability of several state-of-the-art Spatio-Temporal (ST) graph neural networks.
The Challenge of Heterogeneous Traffic Data
A major flaw in traditional "random order" training is the assumption that all sensors are created equal. In reality, some sensors follow predictable, rhythmic patterns, while others exhibit "spatial inconsistency" (behaving differently than their geographic neighbors) or "temporal irregularity" (unpredictable spikes or dips).
As shown in Figure 1, the central node (blue) may exhibit a sudden drop in traffic flow while its neighbors (orange and green) maintain high flow, creating a spatial inconsistency. Similarly, temporal irregularities—where the signal deviates from the expected periodic trend—make certain time periods much harder to forecast. Forcing a model to learn from these "hard" outliers early on can lead to unstable training and poor generalization.
The Node-level Curriculum Learning Framework
The researchers propose a Node-level Curriculum Scheduler that acts like a teacher, starting with simple concepts before moving to complex ones. The framework consists of three main components:
- ST Difficulty Measurer: This phase calculates a difficulty score for each sensor. Spatial Difficulty is determined by comparing a standard distance-based graph to a "learned" graph; if a sensor's actual flow contradicts its geographic neighbors, it is marked as difficult. Temporal Difficulty uses a "Normal Component Estimator" to find predictable trends; the more a sensor deviates from this norm, the higher its score.
- Curriculum Scheduler: Using an exponential "smooth-step" function, the scheduler determines a "retention ratio." It begins training using only the easiest nodes (a subgraph) and gradually adds more difficult nodes as training progresses.
- ST Model Trainer: This is a "plug-and-play" component. The curriculum strategy can be applied to almost any existing ST graph model (such as STGCN or Graph WaveNet) to improve its training process.
Experimental Evaluation
The method was evaluated on two widely recognized public benchmarks: PeMS03 (358 sensors in North Central California) and PeMS04 (307 sensors in the San Francisco Bay Area). Both datasets collect traffic flow data at 5-minute intervals.
Key Results
Curriculum-enhanced models consistently outperformed their "vanilla" counterparts across all metrics (MAE, RMSE, and MAPE):
- Significant Gains: On the PeMS03 dataset, the strategy improved the Mean Absolute Error (MAE) of the STGCN model by 1.56 points and the ST-GDN model by 1.67 points.
- Stability: Models trained with the curriculum showed lower standard deviations in performance, indicating the training process is more reliable and less sensitive to random initialization.
- Ablation Success: The researchers proved that using both spatial and temporal difficulty scores yielded better results than using either one in isolation.
Insights and Future Work
A key takeaway is the importance of addressing heterophily in traffic graphs. While GNNs typically assume connected nodes are similar, traffic graphs often violate this. By using curriculum learning, the model masters the "homophily" nodes first, building a stable foundation before reconciling the "rebellious" outlier nodes. Furthermore, the strategy's effectiveness across five different state-of-the-art architectures suggests that how we train these models is just as important as the architecture itself.
Future work may address the computational overhead of measuring difficulty and explore "dynamic" difficulty measurers that update as traffic patterns change over time (e.g., due to long-term road construction).
Summary updated