Large Language Models are Zero-Shot Next Location Predictors
Ciro Beneduce, Bruno Lepri, Massimiliano Luca
TL;DR
This paper tackles zero-shot next-location prediction by leveraging large language models to overcome the geographic transferability limitations of traditional DL approaches. By evaluating 15 LLMs across three mobility datasets, the authors show that zero-shot predictions can reach up to $ACC@5$ of about 0.362, substantially outperforming DL baselines and suggesting strong language-based generalization for mobility tasks. They also analyze in-context learning, the role of contextual and historical visits, data contamination, and the ability of LLMs to provide textual explanations for their predictions, finding that larger models generally perform best, prompt strategy effects vary, and data leakage is not driving results. The work highlights potential policy and urban-planning implications of deployable LLM-based mobility predictors while calling attention to ethical considerations such as bias and privacy. Overall, the study demonstrates that LLMs can serve as effective zero-shot next-location predictors in data-scarce scenarios, with explainability capabilities and practical impact for transportation and public policy.
Abstract
Predicting the locations an individual will visit in the future is crucial for solving many societal issues like disease diffusion and reduction of pollution. However, next-location predictors require a significant amount of individual-level information that may be scarce or unavailable in some scenarios (e.g., cold-start). Large Language Models (LLMs) have shown good generalization and reasoning capabilities and are rich in geographical knowledge, allowing us to believe that these models can act as zero-shot next-location predictors. We tested more than 15 LLMs on three real-world mobility datasets and we found that LLMs can obtain accuracies up to 36.2%, a significant relative improvement of almost 640% when compared to other models specifically designed for human mobility. We also test for data contamination and explored the possibility of using LLMs as text-based explainers for next-location prediction, showing that, regardless of the model size, LLMs can explain their decision.
