[Paper Review] Where Would I Go Next? Large Language Models as Human Mobility Predictors
The paper introduces LLM-Mob, a framework that uses large language models with data formatting and context-inclusive prompts to predict next locations in human mobility, achieving state-of-the-art results on two public datasets while providing interpretable predictions.
Accurate human mobility prediction underpins many important applications across a variety of domains, including epidemic modelling, transport planning, and emergency responses. Due to the sparsity of mobility data and the stochastic nature of people's daily activities, achieving precise predictions of people's locations remains a challenge. While recently developed large language models (LLMs) have demonstrated superior performance across numerous language-related tasks, their applicability to human mobility studies remains unexplored. Addressing this gap, this article delves into the potential of LLMs for human mobility prediction tasks. We introduce a novel method, LLM-Mob, which leverages the language understanding and reasoning capabilities of LLMs for analysing human mobility data. We present concepts of historical stays and context stays to capture both long-term and short-term dependencies in human movement and enable time-aware prediction by using time information of the prediction target. Additionally, we design context-inclusive prompts that enable LLMs to generate more accurate predictions. Comprehensive evaluations of our method reveal that LLM-Mob excels in providing accurate and interpretable predictions, highlighting the untapped potential of LLMs in advancing human mobility prediction techniques. We posit that our research marks a significant paradigm shift in human mobility modelling, transitioning from building complex domain-specific models to harnessing general-purpose LLMs that yield accurate predictions through language instructions. The code for this work is available at https://github.com/xlwang233/LLM-Mob.
Motivation & Objective
- Motivate the use of large language models for human mobility prediction and address data sparsity and stochasticity in mobility patterns.
- Propose a structured data formatting scheme (historical stays, context stays) to capture long- and short-term dependencies.
- Design context-inclusive prompts to empower LLMs to perform time-aware next-location prediction and provide explanations.
Proposed method
- Format mobility trajectories into historical stays and context stays to capture long- and short-term dependencies.
- Incorporate target stay time information to enable time-aware prediction.
- Develop context-inclusive prompts that describe data, guide reasoning, and request explanations alongside predictions.
- Use GPT-3.5 with a fixed temperature to generate top-k next-place predictions and reasons.
- Evaluate predictions using Acc@1, Acc@5, Acc@10, Weighted F1, and nDCG@10 on two public datasets (Geolife and FSQ-NYC).
Experimental results
Research questions
- RQ1Can an LLM, when properly prompted and fed with formatted mobility data, predict the next location more accurately than traditional models?
- RQ2Does including long-term history, short-term context, and target-time information improve LLM-based mobility prediction?
- RQ3What is the interpretability of LLM-generated explanations for mobility predictions?
- RQ4What are the limitations (e.g., hallucinations, efficiency) of using LLMs for mobility prediction?
- RQ5How robust are the results across prompts, temperatures, and a different LLM?
Key findings
- LLM-Mob outperforms classical and several deep learning baselines in Acc@1, Acc@5, Acc@10, Weighted F1, and nDCG@10 on Geolife and FSQ-NYC datasets.
- Incorporating target-time information (w t) improves performance over models without target-time information (wot).
- Providing the model with history, context, and target-time information yields the highest predictive accuracy among tested configurations.
- Ablation studies show that removing historical stays has a larger negative impact than removing context stays or target-time information, highlighting long-term dependencies.
- LLM-Mob offers interpretable predictions by returning reasoning/explanations along with predictions, though it may exhibit hallucinations and other limitations.
- Robustness tests suggest stability of performance under non-zero temperature, prompt variations, and using a different LLM, with caveats about real-world deployment.
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.