Introduction
Accurate traffic forecasting is a cornerstone of modern urban infrastructure, powering essential services from ride-hailing and logistics to emergency response. However, the most effective forecasting models are notoriously "data-hungry," typically requiring years of historical sensor data to achieve high accuracy. This creates a significant barrier for "data-scarce" cities—those with newly installed sensor networks or limited historical records.
While meta-learning has emerged as a potential solution by transferring knowledge from data-rich cities to data-poor ones, existing frameworks often rely on data from multiple source cities. This requirement introduces high costs for data collection and the risk of "negative transfer," where dissimilarities between multiple sources and the target city degrade performance. SSMT (Single Source Meta-Transfer) addresses these challenges by enabling effective knowledge transfer from just one data-rich source city to a target city with minimal data.
The Problem: Data Scarcity and Structural Mismatch
Existing cross-city transfer learning methods face two primary hurdles:
- Data Acquisition Costs: Aggregating and processing high-quality traffic data from a diverse array of cities is computationally and financially expensive.
- Structural Inconsistency: Cities vary significantly in their number of sensors (nodes) and their underlying road network topologies. Traditional Graph Neural Networks (GNNs) are often tied to a specific graph structure, making it difficult to transfer a model trained on a 300-node city to a 100-node city.
The SSMT Framework
SSMT utilizes a Model-Agnostic Meta-Learning (MAML) framework to "learn how to learn" from a single source. The architecture introduces two primary innovations to bridge the gap between different urban environments:
1. Memory-based Spatial Knowledge Transfer
To solve the node-count mismatch, SSMT decouples the model from specific sensor identities. It employs a global memory module that stores generalized "topological patterns" rather than fixed sensor relationships. During the forecasting process, the model uses an attention mechanism to query this memory, recalling relevant spatial structures that apply to the target city regardless of its specific layout. This allows the model to act as a universal translator for spatial features across different city scales.
2. Meta-Positional Encoding (MPE)
Traffic patterns are inherently periodic, following daily, weekly, and monthly rhythms. While standard models use fixed sinusoidal waves to represent time, SSMT introduces a learnable Meta-Positional Encoding. During the meta-learning "outer loop," the model optimizes these temporal representations. This flexibility allows the model to quickly adapt to the specific temporal "heartbeat" of a new city, recognizing that peak hours or weekend patterns may shift between different geographic regions.
3. Task Partitioning
To maximize the utility of the single source city, the training data is partitioned into specific tasks based on periodic patterns. By exposing the model to diverse traffic behaviors (e.g., morning rush vs. holiday weekends) during pre-training, the framework ensures the model is robust enough to handle various scenarios in the target city.
Experimental Results
The researchers evaluated SSMT using five real-world benchmark datasets, including California highway data (PEMS-BAY, METR-LA, PEMSD4) and ride-hailing data from China (Didi-Shenzhen, Didi-Chengdu). In a "few-shot" scenario—where the target city had only one week of available data—SSMT consistently outperformed both non-transferable baselines and state-of-the-art multi-source models.
- Accuracy: On the METR-LA dataset, SSMT achieved a 2.84% improvement in Mean Absolute Error (MAE) over the strongest baseline. On the Didi-Chengdu dataset, the improvement was 3.14%.
- Ablation Studies: Removing either the spatial memory module or the meta-positional encoding led to a significant drop in performance, confirming that both generalized spatial memory and temporal flexibility are essential for single-source success.
Key Insights
SSMT demonstrates that quality of architecture outweighs quantity of data sources. By focusing on capturing generalized spatial and temporal features rather than city-specific details, the model avoids the pitfalls of negative transfer and the high costs of multi-city data collection. The decoupling of nodes from knowledge via memory-augmented attention represents a significant step forward for transferable Graph Neural Networks.
Limitations and Future Directions
While SSMT mitigates many transfer learning issues, the choice of the source city remains relevant. The current research focused on cities within the same country to minimize extreme distribution shifts. Future work may explore the limits of "single source" transfer across international boundaries (e.g., transferring patterns from New York to Mumbai) and investigate how to capture even more diverse temporal tasks to further refine the model's adaptability.
Summary updated