Embracing Large Language Models in Traffic Flow Forecasting

Yusheng Zhao, Xiao Luo, Haomin Wen, Zhiping Xiao, Wei Ju +1 more
12/15/2024
cs.LGcs.AI

No official code found. Best implementation: YushengZhao/LEAF (11 stars, last commit 2025-08-18).

Abstract

Traffic flow forecasting aims to predict future traffic flows based on the historical traffic conditions and the road network. It is an important problem in intelligent transportation systems, with a plethora of methods been proposed. Existing efforts mainly focus on capturing and utilizing spatio-temporal dependencies to predict future traffic flows. Though promising, they fall short in adapting to test-time environmental changes of traffic conditions. To tackle this challenge, we propose to introduce large language models (LLMs) to help traffic flow forecasting and design a novel method named Large Language Model Enhanced Traffic Flow Predictor (LEAF). LEAF adopts two branches, capturing different spatio-temporal relations using graph and hypergraph structures respectively. The two branches are first pre-trained individually, and during test-time, they yield different predictions. Based on these predictions, a large language model is used to select the most likely result. Then, a ranking loss is applied as the learning objective to enhance the prediction ability of the two branches. Extensive experiments on several datasets demonstrate the effectiveness of the proposed LEAF.

View on arXivView PDF

Code Implementations(1)

YushengZhao/LEAFCommunity78%

[ACL 2025] Embracing Large Language Models in Traffic Flow Forecasting

112PythonMay 24, 20251 years ago
distribution-shiftsllmtime-series-forecastingtraffic-flow-forecasting

Similar Papers

Cite this paper

@article{zhao2024embracing,
  title  = {Embracing Large Language Models in Traffic Flow Forecasting},
  author = {Yusheng Zhao and Xiao Luo and Haomin Wen and Zhiping Xiao and Wei Ju and Ming Zhang},
  year   = {2024},
  eprint = {2412.12201},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.12201v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.12201.svg)](https://codeofpaper.com/paper/2412.12201)

Discussion