Abstract
Spatio-temporal forecasting is a cornerstone of modern urban computing, yet its effectiveness is often hampered by the lack of historical data in many cities. We introduce ST-GFSL (Spatio-Temporal Graph Few-Shot Learning), a model-agnostic framework designed to transfer knowledge from data-rich "source" cities to data-scarce "target" cities. ST-GFSL utilizes a meta-learning approach that generates node-specific parameters and reconstructs graph structures to account for the irregular and varied nature of urban road networks. Our evaluations on four major traffic benchmarks show that ST-GFSL consistently outperforms state-of-the-art baselines, particularly in long-term forecasting and data-limited scenarios.
Introduction
Deep learning has revolutionized urban tasks such as traffic prediction and air quality monitoring. However, these models typically require vast amounts of historical data, which is often unavailable in developing urban areas or newly instrumented regions. Existing few-shot learning (FSL) methods often fail to address the irregular graph structures of road networks or the local variations within a city—for instance, a residential area in one city may behave more like a similar district in a distant city than a nearby business hub.
ST-GFSL addresses these gaps by learning to adapt to the unique spatial and temporal "fingerprints" of individual city nodes using minimal data (as little as three days). By treating cities as collections of patterns rather than monoliths, the framework enables effective cross-city knowledge transfer.
Methodology
The ST-GFSL framework is designed to be model-agnostic, enhancing base architectures like TCN or Graph WaveNet. It consists of three core components:
- ST-Meta Learner: This module extracts "meta-knowledge" from both time and space. It employs a Gated Recurrent Unit (GRU) to capture temporal dynamics and a Graph Attention Network (GAT) to model spatial relationships between nodes.
- Node-Level Parameter Generation: Instead of sharing weights globally, ST-GFSL uses a hypernetwork to generate unique parameters for each node's feature extractor based on its meta-knowledge. To maintain computational efficiency, a two-step generation process is used, reducing the parameter count by 37.5% compared to direct mapping.
- ST-Meta Graph Reconstruction: To ensure the model remains "structure-aware," it attempts to reconstruct the original road network adjacency matrix from the learned meta-knowledge. This acts as a regularizer, preventing the model from drifting during transfer between different city layouts.
The system is trained via a Model-Agnostic Meta-Learning (MAML) episode loop, allowing it to practice adaptation on small data batches from various source cities before being deployed to the target city.
Experimental Evaluation
The framework was evaluated on four major traffic speed benchmarks: METR-LA (Los Angeles), PEMS-BAY (Bay Area), Didi-Chengdu, and Didi-Shenzhen. In these experiments, one city was treated as data-scarce while the others served as data-rich sources for meta-training.
Results and Discussion
ST-GFSL consistently outperformed state-of-the-art baselines, including standard MAML and AdaRNN. On the METR-LA dataset, the framework achieved a Mean Absolute Error (MAE) of 2.355 for short-term predictions, significantly lower than the 2.740 achieved by a target-only baseline.
As shown in Figure 6, the inclusion of all available source datasets generally leads to the most stable and accurate predictions across different time horizons (Steps #1, #3, and #6). The framework showed particular strength in long-term forecasting, where traditional few-shot methods often struggle with cumulative error.
Conclusion
ST-GFSL provides a robust solution for urban forecasting in data-limited environments by leveraging node-level parameter matching and structural reconstruction. While the framework effectively handles structural deviations between cities, future research will focus on even more diverse urban architectures and the potential integration of auxiliary data, such as social media check-ins, to further refine the knowledge transfer process.
Summary updated