Llama-Mob: Instruction-Tuning Llama-3-8B Excels in City-Scale Mobility Prediction
About
Human mobility prediction plays a critical role in applications such as disaster response, urban planning, and epidemic forecasting. Traditional methods often rely on designing crafted, domain-specific models, and typically focus on short-term predictions, which struggle to generalize across diverse urban environments. In this study, we introduce Llama3-8B-Mob, a large language model fine-tuned with instruction tuning, for long-term citywide mobility prediction--in a Q&A manner. We validate our approach using large-scale human mobility data from four metropolitan areas in Japan, focusing on predicting individual trajectories over the next 15 days. The results demonstrate that Llama3-8B-Mob excels in modeling long-term human mobility--surpassing the state-of-the-art on multiple prediction metrics. It also displays strong zero-shot generalization capabilities--effectively generalizing to other cities even when fine-tuned only on limited samples from a single city. Moreover, our method is general and can be readily extended to the next POI prediction task. For brevity, we refer to our model as Llama-Mob, and the corresponding results are included in this paper. Source codes are available at https://github.com/TANGHULU6/Llama3-8B-Mob.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Next-POI Recommendation | TKY (test) | Accuracy@122.51 | 30 | |
| Next Location Prediction | NYC (test) | Acc@125.19 | 14 | |
| Next Location Prediction | CA (test) | Top-1 Accuracy14.46 | 14 | |
| Human mobility prediction | City C (test) | GEO-BLEU0.296 | 7 | |
| Trajectory Prediction | City C | Average DTW20.57 | 5 | |
| Trajectory Prediction | City D | Average DTW31.94 | 5 | |
| Trajectory Prediction | City B | Average DTW25.39 | 5 | |
| Human mobility prediction | HuMob Challenge City B 2024 (test) | GEO-BLEU35.4 | 3 | |
| Human mobility prediction | HuMob Challenge City D 2024 (test) | GEO-BLEU32.1 | 3 |