Traffic prediction, a critical component for intelligent transportation systems, endeavors to foresee future traffic at specific locations using historical data. Although existing traffic prediction models often emphasize developing complex neural network structures, their accuracy has not seen improvements accordingly. Recently, Large Language Models (LLMs) have shown outstanding capabilities in time series analysis. Differing from existing models, LLMs progress mainly through parameter expansion and extensive pre-training while maintaining their fundamental structures. In this paper, we propose a Spatial-Temporal Large Language Model (ST-LLM) for traffic prediction. Specifically, ST-LLM redefines the timesteps at each location as tokens and incorporates a spatial-temporal embedding module to learn the spatial location and global temporal representations of tokens. Then these representations are fused to provide each token with unified spatial and temporal information. Furthermore, we propose a novel partially frozen attention strategy of the LLM, which is designed to capture spatial-temporal dependencies for traffic prediction. Comprehensive experiments on real traffic datasets offer evidence that ST-LLM outperforms state-of-the-art models. Notably, the ST-LLM also exhibits robust performance in both few-shot and zero-shot prediction scenarios.
翻译:交通预测作为智能交通系统的关键组成部分,旨在利用历史数据预测特定位置的未来交通状况。尽管现有交通预测模型往往侧重于开发复杂的神经网络结构,但其准确性并未得到相应提升。近年来,大语言模型在时间序列分析中展现出卓越能力。不同于现有模型,大语言模型主要通过参数扩展和大规模预训练取得进展,同时保持其基本结构不变。本文提出一种用于交通预测的时空大语言模型(ST-LLM)。具体而言,ST-LLM将每个位置的时间步重新定义为令牌,并引入时空嵌入模块以学习令牌的空间位置和全局时间表示,随后融合这些表示为每个令牌提供统一的时空信息。此外,我们提出一种新颖的大语言模型部分冻结注意力策略,旨在捕捉交通预测所需的时空依赖性。在真实交通数据集上的综合实验表明,ST-LLM优于现有最先进模型。值得注意的是,ST-LLM在少样本和零样本预测场景中也表现出稳健性能。