Abstract
Next-location prediction is a fundamental task in urban mobility with applications ranging from traffic management to epidemic modeling. Traditional deep learning approaches often struggle with the "cold-start" problem and lack geographic transferability. This study investigates the zero-shot capabilities of Large Language Models (LLMs) in predicting human movement. We find that models like GPT-4o and Llama 3, without any task-specific fine-tuning, can outperform specialized state-of-the-art models by up to 640% in transfer scenarios. Furthermore, LLMs provide human-readable justifications for their predictions, offering a level of interpretability previously unavailable in "black-box" mobility models.
Introduction
Predicting an individual's next destination is a cornerstone of modern urban planning and disease control. Historically, this task has been dominated by specialized Deep Learning (DL) architectures, such as LSTMs and Transformers, trained on massive datasets of individual mobility. However, these models face two critical hurdles: the cold-start problem, where extensive historical data is required for a new user, and geographic non-transferability, where a model trained on one city (e.g., New York) fails when applied to another (e.g., Tokyo).
Researchers have recently turned to Large Language Models (LLMs) to address these challenges. By leveraging the vast world knowledge and reasoning capabilities acquired during pre-training, LLMs can act as "zero-shot" predictors, requiring no fine-tuning on specific mobility datasets to understand human movement patterns.
Methods
The evaluation involved over 15 LLMs, including the Llama series, Mistral, and GPT-3.5/4/4o, compared against six state-of-the-art deep learning baselines like MobTCast and STAN. The core methodology relies on structured prompting.
As shown in the figure above, the model is provided with a user's "Historical Stays" (long-term patterns) and "Contextual Stays" (recent movements), including timestamps and days of the week. The task is to predict the top 5 most likely next location IDs and return them in a JSON object along with a concise reason for the prediction. The researchers also conducted ablation studies to determine the impact of historical data volume and tested different in-context learning (ICL) strategies, including zero-shot, one-shot, and few-shot prompting.
Datasets
The study utilized three diverse real-world mobility datasets:
- Foursquare NYC: Public check-in data from New York City.
- Foursquare Tokyo: Public check-in data from Tokyo.
- Ferrara (Private): GPS trajectories from cyclists in Ferrara, Italy.
The private Ferrara dataset was specifically included to mitigate concerns regarding data contamination, ensuring the LLMs were reasoning based on patterns rather than memorizing public internet data.
Key Results
The experimental results demonstrate a significant performance leap for LLMs in zero-shot settings. The best-performing model, Llama 3 70B Instruct, achieved an Accuracy@5 of 36.2% in New York City.
As illustrated in the performance chart, larger models (70B+ parameters) consistently outperform smaller ones. In zero-shot/transfer settings, LLMs showed a relative improvement of nearly 640% in NYC and over 750% in Tokyo compared to traditional DL models. Notably, performance on the private Ferrara dataset remained comparable to public datasets, reinforcing the hypothesis that these models are performing genuine spatial-temporal reasoning.
Key Insights and Discussion
- The Transferability Gap: Traditional DL models are highly "brittle." A model trained in NYC and tested in Tokyo typically achieves an Accuracy@5 of only ~4%, whereas LLMs maintain high performance across geographies.
- LLMs as "World Models": LLMs appear to possess latent geographical and social knowledge. They recognize temporal rhythms—such as typical times for going home or visiting a cafe—rather than treating location IDs as arbitrary strings.
- History vs. Context: Ablation studies revealed that providing more long-term historical visits (H) is more beneficial for prediction accuracy than increasing the number of recent contextual visits (C).
- Explainability: Unlike traditional "black-box" models, LLMs can articulate the logic behind their predictions, such as identifying a user's weekend routine.
Limitations and Future Work
While LLMs represent a breakthrough in zero-shot mobility prediction, several challenges remain. An accuracy of ~36% is impressive for a zero-shot task but may not yet meet the requirements for high-stakes safety applications. Additionally, LLMs occasionally "hallucinate" non-existent location IDs and incur higher computational costs and latency compared to specialized local models.
Future research may explore Retrieval-Augmented Generation (RAG) to provide LLMs with external semantic data about locations (e.g., "ID 123 is a grocery store"), which could further enhance accuracy and reduce hallucinations.
Summary updated