Instruction-Tuning Llama-3-8B Excels in City-Scale Mobility Prediction

Peizhi Tang, Chuang Yang, Tong Xing, Xiaohang Xu, Renhe Jiang +1 more
10/31/2024
cs.CLcs.CY

Official code: TANGHULU6/Llama3-8B-Mob (22 stars, last commit 2026-03-08).

Abstract

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 Llama-3-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 Llama-3-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. Source codes are available at https://github.com/TANGHULU6/Llama3-8B-Mob.

View on arXivView PDF

Code Implementations(1)

HuMob'24 SIGSPATIAL

222Shell, PythonJul 14, 20247 months ago

Similar Papers

Cite this paper

@article{tang2024instructiontuning,
  title  = {Instruction-Tuning Llama-3-8B Excels in City-Scale Mobility Prediction},
  author = {Peizhi Tang and Chuang Yang and Tong Xing and Xiaohang Xu and Renhe Jiang and Kaoru Sezaki},
  year   = {2024},
  eprint = {2410.23692},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.23692v1}
}

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/2410.23692.svg)](https://codeofpaper.com/paper/2410.23692)

Discussion