Large Language Models are Zero-Shot Next Location Predictors

Ciro Beneduce, Bruno Lepri, Massimiliano Luca
5/31/2024
cs.CYcs.AIcs.CL

No official code found. Best implementation: tsinghua-fib-lab/AgentMove (52 stars, MIT, last commit 2025-07-26). 1 more below.

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.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Python code for the paper "LLMs are zero-shot next-location predictors" by Beneduce et al.

31Python, Jupyter NotebookMay 30, 20242 years agoApache-2.0
human-mobilityllmllm-benchmarkingllmsnext-location+1 more
MIT

[NAACL 2025] AgentMove: A Large Language Model based Agentic Framework for Zero-shot Next Location Prediction.

5214Shell, PythonAug 22, 20241 years agoMIT
agentic-workflowlarge-language-modelmobility-modeling

Similar Papers

Cite this paper

@article{beneduce2024large,
  title  = {Large Language Models are Zero-Shot Next Location Predictors},
  author = {Ciro Beneduce and Bruno Lepri and Massimiliano Luca},
  year   = {2024},
  eprint = {2405.20962},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.20962v3}
}

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

Discussion