Abstract
Foundation models have achieved remarkable success in natural language processing and computer vision, demonstrating strong capabilities in modeling complex patterns. While recent efforts have explored adapting large language models (LLMs) for time-series forecasting, LLMs primarily capture one-dimensional sequential dependencies and struggle to model the richer spatio-temporal (ST) correlations essential for accurate ST forecasting. In this paper, we present ST-VFM, a novel framework that systematically reprograms Vision Foundation Models (VFMs) for general-purpose spatio-temporal forecasting. While VFMs offer powerful spatial priors, two key challenges arise when applying them to ST tasks: (1) the lack of inherent temporal modeling capacity and (2) the modality gap between visual and ST data. To address these, ST-VFM adopts a dual-branch architecture that integrates raw ST inputs with auxiliary ST flow inputs, where the flow encodes lightweight temporal difference signals interpretable as dynamic spatial cues. To effectively process these dual-branch inputs, ST-VFM introduces two dedicated reprogramming stages. The pre-VFM reprogramming stage applies a Temporal-Aware Token Adapter to embed temporal context and align both branches into VFM-compatible feature spaces. The post-VFM reprogramming stage introduces a Bilateral Cross-Prompt Coordination module, enabling dynamic interaction between branches through prompt-based conditioning, thus enriching joint representation learning without modifying the frozen VFM backbone. Extensive experiments on ten spatio-temporal datasets show that ST-VFM outperforms state-of-the-art baselines, demonstrating effectiveness and robustness across VFM backbones (e.g., DINO, CLIP, DEIT) and ablation studies, establishing it as a strong general framework for spatio-temporal forecasting.
Introduction
Spatio-temporal (ST) forecasting—predicting dynamic phenomena like traffic flow, cellular usage, or human mobility—requires a deep understanding of both complex spatial layouts and their evolution over time. Traditionally, researchers have relied on task-specific models that require extensive retraining or Large Language Models (LLMs) adapted for 1D sequences. However, LLMs often fail to capture the multi-dimensional spatial correlations inherent in grid-based data.
Vision Foundation Models (VFMs), such as DINO or CLIP, possess incredible spatial "priors" learned from millions of images. Yet, they are designed for static visual data and lack a native mechanism for temporal modeling. ST-VFM bridges this gap by "reprogramming" frozen vision models to perceive time without altering their internal weights, leveraging spatial intelligence for dynamic forecasting tasks.
Methodology
The ST-VFM framework utilizes a dual-branch architecture and a two-stage reprogramming strategy to adapt frozen VFMs for ST tasks.
Dual-Branch Input and Pre-VFM Reprogramming
The model processes raw ST data alongside an auxiliary ST Flow branch. This flow branch calculates temporal differences between consecutive frames, serving as a proxy for motion. In the Pre-VFM Reprogramming stage, a Temporal-Aware Token Adapter converts these inputs into tokens compatible with the VFM's feature space. A lightweight temporal Transformer is integrated here to embed temporal context directly into the tokens.
Post-VFM Reprogramming
After the frozen VFM backbone processes the tokens, the Bilateral Cross-Prompt Coordination module facilitates interaction between the spatial and motion branches. By using dynamic, data-driven prompts, the spatial branch provides context to the motion branch, while the motion branch informs the spatial branch about evolving dynamics. This allows the model to adapt its forecasting strategy based on real-time patterns, such as sudden traffic surges.
Experimental Evaluation
ST-VFM was evaluated across ten diverse spatio-temporal datasets, including crowd flow in Nanjing, traffic speeds in various Chinese cities, and taxi/bike demand in New York City. These datasets vary in resolution and temporal intervals, providing a rigorous test for a general-purpose framework.
As shown in the results table, ST-VFM consistently achieves superior accuracy, outperforming specialized baselines like UniST and LLM-based approaches like ST-LLM. Notably, the framework demonstrates robustness across different VFM backbones—including DINO (self-supervised), CLIP (contrastive), and DeiT (supervised)—consistently yielding state-of-the-art performance across all metrics (RMSE and MAE).
Conclusion
ST-VFM demonstrates that the spatial knowledge embedded in vision foundation models is a powerful asset for spatio-temporal forecasting. By treating temporal changes as dynamic spatial cues and using efficient reprogramming modules, the framework achieves high accuracy without the need for massive pre-training. Future work may extend this approach to graph-based road networks and explore more complex flow techniques to capture non-linear dynamics.
Summary updated