Abstract
Extending current traffic forecasting systems to new cities is costly because existing spatiotemporal models are tightly coupled to the road topology they were trained on, meaning that the model must be re-trained for every new network topology. This topology-lock means that knowledge transfer across networks is not possible, making the fast, low-cost deployment of traffic forecasting models to unseen urban environments unachievable. We propose that the key problem is one of architecture-current models tightly fuse temporal pattern learning and spatiotemporal reasoning on graphs-which prevent easy knowledge transfer across cities. To overcome this, we present GATP (Graph-Agnostic Temporal Pretraining), a framework that naturally separates the two tasks. We rely on the observation that sensor time series share common temporal dynamics, such as morning/evening peaks, weekly cycles, trends across geographies and road network structures. We exploit this using a node-wise spatial disentanglement procedure that extracts temporally distinct but spatially decoupled graphs from datasets spanning multiple cities and learns a encoder that generates general temporal representations based on an aggregate multi-city corpus of this spatially decoupled data without prior graph-exposure to any city. The trained temporal encoder then freezes and we attach a light Graph Conditioning module to it. This module adapts the frozen temporal representation to the city’s specific topology at the time of deployment. GATP successfully transfers well to PEMS03, PEMS04, PEMS07, and PEMS08, yielding accuracy comparable to baseline models but with quick, transferable deployment to unseen road network topology. The code implementation is publicly available at: https://github.com/Jatin-Sharma-11/GATP/.