STLLM-DF: A Spatial-Temporal Large Language Model with Diffusion for Enhanced Multi-Mode Traffic System Forecasting

Zhiqi Shao, Haoning Xi, Haohui Lu, Ze Wang, Michael G. H. Bell, Junbin GaoarXiv 2024 · DOI

Abstract

Intelligent Transportation Systems (ITS) are critical for modern urban management but are often hindered by poor data quality and system fragmentation. This paper introduces STLLM-DF (Spatial-Temporal Large Language Model with Diffusion), a novel framework that integrates Denoising Diffusion Probabilistic Models (DDPMs) with Large Language Models (LLMs) to forecast multi-modal traffic patterns. By leveraging a frozen Llama 2 model as a high-dimensional information filter and a DDPM for robust data recovery, STLLM-DF achieves state-of-the-art accuracy across diverse tasks, including bike demand, bus flow, and taxi arrivals. Experimental results on real-world datasets demonstrate significant performance gains, particularly in environments with high data missingness.

Introduction

Modern urban planning relies heavily on Intelligent Transportation Systems (ITS) to optimize resource allocation and manage congestion. However, these systems face two primary challenges: data unreliability and model specialization. Real-world traffic sensors frequently suffer from malfunctions, leading to noisy datasets with missing values. Furthermore, most existing models are designed for specific modes (e.g., highway speed) rather than serving as generalists capable of handling the diverse rhythms of buses, taxis, and metros simultaneously.

Conceptual framework of a Centralized Intelligent Transportation System (ITS) handling multi-modal data and diverse prediction tasks.

To address these hurdles, we propose a centralized framework that can process multi-modal data to provide comprehensive predictions for demand, flow, and arrival times, as illustrated in the centralized ITS architecture above.

Methodology

The STLLM-DF framework employs a three-stage pipeline designed for robustness and high-level feature extraction:

  1. Adaptive Embedding Layer: Raw traffic data is enriched with periodicity embeddings (capturing temporal patterns like time-of-day) and spatial-temporal adaptive embeddings that learn unique relationships between sensor locations.
  2. Frozen Denoising Block (DDPM): This stage utilizes a Denoising Diffusion Probabilistic Model to recover underlying data patterns from incomplete or noisy inputs. By reversing the "disorder" caused by missing sensor data, it ensures the model remains robust in real-world conditions.
  3. ST-LLM Block: The denoised data is fed into a frozen Llama 2 model. Rather than fine-tuning or using text prompts, the model treats the LLM's Transformer layers as a sophisticated information filter to identify long-range dependencies and salient spatial-temporal features.

Finally, a fully connected layer maps these features to specific prediction outputs, such as future bike demand or taxi arrival times.

Experiments and Results

Datasets

The model was evaluated on standard highway benchmarks (PeMS 03, 04, 07, 08) and a suite of multi-modal New York City datasets: NYC-BIKE, NYC-BUS, NYC-TAXI, and NYC-METRO. These datasets represent a complex testbed for centralized ITS forecasting.

Key Findings

STLLM-DF consistently outperformed established baselines such as GWNet and STAFormer across all metrics:

  • Global Performance: The model achieved an average reduction in Mean Absolute Error (MAE) of 2.40% and Root Mean Square Error (RMSE) of 4.50%.
  • Robustness to Noise: Ablation studies confirmed that the DDPM block is essential for maintaining accuracy as the ratio of missing data increases, effectively acting as a data recovery tool.
  • LLM Efficacy: The research demonstrates that pre-trained LLMs possess internal attention mechanisms capable of filtering non-textual sequential data effectively without the need for expensive fine-tuning.

In the NYC-TAXI dataset specifically, the model saw a 5.10% reduction in MAE, highlighting its superior ability to handle the high variability inherent in taxi demand forecasting.

Conclusion

STLLM-DF represents a significant step toward a unified, robust ITS. By combining the micro-level noise reduction of diffusion models with the macro-level pattern recognition of LLMs, the framework provides a scalable solution for multi-modal urban forecasting. Future work will focus on incorporating external variables like weather and social events, as well as improving the interpretability of the model's intermodal predictions.

Summary updated

BibTeX
@misc{shao2024stllm,
  author = {Zhiqi Shao and Haoning Xi and Haohui Lu and Ze Wang and Michael G. H. Bell and Junbin Gao},
  title = {{STLLM-DF: A Spatial-Temporal Large Language Model with Diffusion for Enhanced Multi-Mode Traffic System Forecasting}},
  year = {2024},
  eprint = {2409.05921},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.05921},
}
Figure