Time Series Foundation Models are Flow Predictors

Massimiliano Luca, Ciro Beneduce, Bruno LepriarXiv 2025 · DOI

Introduction

Predicting crowd flow—the movement of people across urban environments—is a cornerstone of modern urban planning, traffic management, and public safety. Traditionally, this task has been approached as a complex spatiotemporal problem requiring specialized deep learning (DL) architectures like ST-ResNet or Graph Neural Networks. These models, while powerful, are often data-hungry, city-specific, and computationally rigid.

This research explores a paradigm shift: can general-purpose Time Series Foundation Models (TSFMs), pre-trained on massive, diverse datasets, outperform these specialized architectures? By reframing crowd flow as a collection of independent time series, the authors demonstrate that models like Google’s TimesFM and Salesforce’s Moirai achieve state-of-the-art results in a strict zero-shot setting—without any fine-tuning or explicit spatial information.

Methodology: Decomposing Crowd Flow

The core innovation lies in treating crowd flow prediction not as a joint spatiotemporal task, but as Per-Location Time Series Prediction. For every region or "tile" in a city, the sequence of outgoing flows to all other regions is treated as a multivariate time series.

Overview of the TSFM-based prediction framework, treating historical flow data as independent time series sequences.

Two primary TSFMs were evaluated in a zero-shot fashion:

  • Moirai (Salesforce): A transformer-based model trained on the LOTSA dataset containing billions of observations.
  • TimesFM (Google): A decoder-only transformer trained on a vast corpus of diverse time series data.

By treating flows as sequences rather than images or grids, these models naturally handle irregular administrative boundaries that often challenge traditional Convolutional Neural Network (CNN) based mobility models.

Experimental Evaluation

The models were tested against three diverse real-world datasets:

  1. Bike NYC: Trip data from New York's bike-sharing system (2014).
  2. Taxi Beijing: GPS trajectories from over 10,000 taxis (T-Drive dataset).
  3. Spain OD: A large-scale dataset covering nationwide mobility at the district level, featuring irregular spatial tessellation.

Results: Foundation Models Outperform Specialized Architectures

The experimental results reveal a significant performance gap between TSFMs and traditional baselines. Despite having no explicit access to spatial context (such as the distance between regions), TSFMs consistently outperformed models specifically designed for spatiotemporal modeling.

Performance comparison of TSFMs against statistical and deep learning baselines across three datasets.

Key findings include:

  • Superior Accuracy: Moirai and TimesFM achieved up to a 33% reduction in RMSE and a 39% reduction in MAE compared to the best DL baselines like MSAGGN.
  • Structural Fidelity: The models showed up to a 49% improvement in Common Parts of Commuters (CPC), a metric measuring how well the model captures the actual structure of flow between regions.
  • Zero-Shot Generalization: Moirai-Large consistently provided the best results across almost every metric and dataset, demonstrating that pre-training on diverse data allows models to "understand" urban rhythms in cities they have never encountered.

Discussion and Future Directions

The success of TSFMs suggests that the temporal evolution of flow contains a dense predictive signal that general-purpose models can now harvest effectively. This suggests that the era of building hyper-specialized, city-specific models may be giving way to more flexible foundation model approaches that are more accurate and require zero local training.

However, limitations remain. The current approach ignores explicit spatial relationships, which could potentially be integrated to further boost performance. Additionally, the computational cost of running large models for every origin-destination pair is a factor for real-time applications. Future research will likely focus on fine-tuning these models on small amounts of local mobility data to explore further performance gains.

Summary updated

BibTeX
@misc{luca2025time,
  author = {Massimiliano Luca and Ciro Beneduce and Bruno Lepri},
  title = {{Time Series Foundation Models are Flow Predictors}},
  year = {2025},
  eprint = {2507.00945},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.00945},
}
Figure