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

arXiv: https://arxiv.org/abs/2410.09129 · HTML: https://mlsanity.com/paper/2410.09129/

## Key facts

- Cited by 5 papers in the map (data through 14 Oct 2026).
- Builds on 15 of its 52 references that are in the map.
- First posted on arXiv 11 Oct 2024.

## Builds on (most cited first, 15 of 15)

- [LLaMA: Open and Efficient Foundation Language Models](https://mlsanity.com/paper/2302.13971/) (2023)
- [Llama 2: Open Foundation and Fine-Tuned Chat Models](https://mlsanity.com/paper/2307.09288/) (2023)
- [Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling](https://mlsanity.com/paper/1412.3555/) (2014)
- [One Fits All:Power General Time Series Analysis by Pretrained LM](https://mlsanity.com/paper/2302.11939/) (2023)
- [STAN: Spatio-Temporal Attention Network for Next Location Recommendation](https://mlsanity.com/paper/2102.04095/) (2021)
- [Large Language Models as Urban Residents: An LLM Agent Framework for Personal Mobility Generation](https://mlsanity.com/paper/2402.14744/) (2024)
- [Where Would I Go Next? Large Language Models as Human Mobility Predictors](https://mlsanity.com/paper/2308.15197/) (2023)
- [Spatial-Temporal Large Language Model for Traffic Prediction](https://mlsanity.com/paper/2401.10134/) (2024)
- [GETNext: Trajectory Flow Map Enhanced Transformer for Next POI Recommendation](https://mlsanity.com/paper/2303.04741/) (2023)
- [Exploring Large Language Models for Human Mobility Prediction under Public Events](https://mlsanity.com/paper/2311.17351/) (2023)
- [AgentMove: A Large Language Model based Agentic Framework for Zero-shot Next Location Prediction](https://mlsanity.com/paper/2408.13986/) (2024)
- [Large Language Models are Zero-Shot Next Location Predictors](https://mlsanity.com/paper/2405.20962/) (2024)
- [Context-aware multi-head self-attentional neural network model for next location prediction](https://mlsanity.com/paper/2212.01953/) (2022)
- [NLPMM: a Next Location Predictor with Markov Modeling](https://mlsanity.com/paper/2003.07037/) (2020)
- [SanMove: Next Location Recommendation via Self-Attention Network](https://mlsanity.com/paper/2112.09076/) (2021)

## Built on by (most cited first, 5 of 5)

- [The Role of Open-Source LLMs in Shaping the Future of GeoAI](https://mlsanity.com/paper/2504.17833/) (2025)
- [A Study on Individual Spatiotemporal Activity Generation Method Using MCP-Enhanced Chain-of-Thought Large Language Models](https://mlsanity.com/paper/2506.10853/) (2025)
- [Think2Go: Generative Next POI Recommendation with LLM Reasoning](https://mlsanity.com/paper/2607.28997/) (2026)
- [Dynamic Cross-Modal Alignment for Robust Semantic Location Prediction](https://mlsanity.com/paper/2412.09870/) (2024)
- [SemPOI-RL: Aligning LLM Semantic Reasoning for Interpretable Out-of-Town POI Sequential Generation](https://mlsanity.com/paper/2608.30399/) (2026)

## Abstract (arXiv)

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.
