English

NextLocLLM: Location Semantics Modeling and Coordinate-Based Next Location Prediction with LLMs

Machine Learning 2025-09-30 v2 Artificial Intelligence Computation and Language

Abstract

Next location prediction is a critical task in human mobility analysis.Existing methods typically formulate it as a classification task based on discrete location IDs, which hinders spatial continuity modeling and limits generalization to new cities. In this paper, we propose NextLocLLM, a novel framework that reformulates next-location prediction as coordinate regression and integrates LLMs for both location semantics encoding and coordinate-level prediction. To model location functional semantics, it constructs LLM-enhanced POI embeddings by leveraging language understanding capabilities of LLMs to extract functional semantics from textual descriptions of POI categories. These POI embeddings are combined with spatiotemporal trajectory representation and fed into the same LLM, enabling unified semantic and predictive modeling. A lightweight regression head generates coordinate outputs, which are mapped to top-k candidate locations via post-prediction retrieval module, ensuring structured outputs. Experiments across diverse cities show that NextLocLLM outperforms existing baselines in both supervised and zero-shot settings. Code is available at: https://github.com/liuwj2000/NexelocLLM.

Keywords

Cite

@article{arxiv.2410.09129,
  title  = {NextLocLLM: Location Semantics Modeling and Coordinate-Based Next Location Prediction with LLMs},
  author = {Shuai Liu and Ning Cao and Yile Chen and Yue Jiang and George Rosario Jagadeesh and Gao Cong},
  journal= {arXiv preprint arXiv:2410.09129},
  year   = {2025}
}

Comments

STIntelligence in CIKM 2025

R2 v1 2026-06-28T19:18:18.999Z