[Paper Review] TPLLM: A Traffic Prediction Framework Based on Pretrained Large Language Models
TPLLM uses a pretrained large language model with a CNN-based sequence encoder and a GCN-based graph encoder, fine-tuned with LoRA, to perform traffic prediction in full-sample and few-shot scenarios.
Traffic prediction constitutes a pivotal facet within the purview of Intelligent Transportation Systems (ITS), and the attainment of highly precise predictions holds profound significance for efficacious traffic management. The precision of prevailing deep learning-driven traffic prediction models typically sees an upward trend with a rise in the volume of training data. However, the procurement of comprehensive spatiotemporal datasets for traffic is often fraught with challenges, primarily stemming from the substantial costs associated with data collection and retention. Consequently, developing a model that can achieve accurate predictions and good generalization ability in areas with limited historical traffic data is a challenging problem. It is noteworthy that the rapidly advancing pretrained Large Language Models (LLMs) of recent years have demonstrated exceptional proficiency in cross-modality knowledge transfer and few-shot learning. Recognizing the sequential nature of traffic data, similar to language, we introduce TPLLM, a novel traffic prediction framework leveraging LLMs. In this framework, we construct a sequence embedding layer based on Convolutional Neural Networks (CNNs) and a graph embedding layer based on Graph Convolutional Networks (GCNs) to extract sequence features and spatial features, respectively. These are subsequently integrated to form inputs that are suitable for LLMs. A Low-Rank Adaptation (LoRA) fine-tuning approach is applied to TPLLM, thereby facilitating efficient learning and minimizing computational demands. Experiments on two real-world datasets demonstrate that TPLLM exhibits commendable performance in both full-sample and few-shot prediction scenarios, effectively supporting the development of ITS in regions with scarce historical traffic data.
Motivation & Objective
- Motivate accurate traffic prediction in regions with limited historical data.
- Leverage pretrained LLMs to enable few-shot learning for spatio-temporal traffic data.
- Integrate temporal sequence features and graph-structured spatial features for LLM input.
- Demonstrate cost-efficient fine-tuning via LoRA without full model retraining.
- Validate performance on real-world datasets under full and few-shot settings.
Proposed method
- Construct a two-branch input embedding: a CNN-based sequence embedding for temporal patterns and a GCN-based graph embedding for spatial structure.
- Fuse embeddings and map to the LLM embedding size using linear layers and normalization, producing Emb(X).
- Fine-tune a pretrained Transformer-based LLM using Low-Rank Adaptation (LoRA) in each transformer block to achieve parameter-efficient learning.
- Use a linear layer to map LLM outputs to the forecast horizon T′ and apply ReLU activation to produce predictions.
- Train with robust MAE loss to handle outliers in sensor data.
Experimental results
Research questions
- RQ1Can a pretrained LLM, when equipped with sequence and graph embeddings, achieve accurate traffic predictions with limited historical data?
- RQ2How does LoRA-based fine-tuning perform for traffic prediction compared to full fine-tuning and traditional baselines in both full-sample and few-shot settings?
- RQ3What is the impact of varying LoRA rank on prediction accuracy and efficiency?
- RQ4Do spatio-temporal embeddings effectively enable cross-modal knowledge transfer from LLMs to traffic data?
Key findings
- TPLLM outperforms LSTM and other ST-GCN baselines in both full-sample and few-shot settings on PeMS04 and PeMS08.
- In full-sample predictions, TPLLM achieves the best MAE, RMSE, and MAPE across 15 min, 30 min, and 60 min horizons on both datasets.
- In few-shot predictions, TPLLM remains robust with smaller degradation than baselines—demonstrating effective few-shot learning from pretrained LLMs.
- LoRA enables about 0.95% of parameters to be trainable, delivering competitive performance with reduced computational cost.
- Visualizations show TPLLM captures typical traffic patterns (weekday peaks and smooth weekend days) in both datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.