NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AgentMove: Predicting Human Mobility Anywhere Using Large Language Model based Agentic Framework

Jie Feng, Yuwei Du, Jie Zhao, Yong LiarXiv 2024 · OpenReview

Abstract

Human mobility prediction is a cornerstone of urban planning, traffic management, and personalized services. While deep learning (DL) models have dominated this field for a decade, they are often limited by their reliance on extensive private mobility data and their inability to perform zero-shot predictions in new environments. Large Language Models (LLMs) offer a potential solution, yet naive applications fail to capture complex mobility patterns or leverage global geospatial knowledge effectively. We introduce AgentMove, a systematic agentic framework designed for generalized mobility prediction across any city worldwide. By decomposing the task into individual memory mining, urban structure modeling, and collective pattern extraction, AgentMove achieves state-of-the-art results. Extensive evaluations across 12 global cities show that AgentMove outperforms top baselines by over 8%, demonstrating robust zero-shot capabilities and reduced geographical bias.

Introduction

Predicting a person's next location is a complex challenge that involves understanding individual habits, the physical layout of a city, and broader social trends. Traditional DL models, such as LSTMs and Graph Neural Networks, require massive, city-specific datasets to achieve high accuracy. This creates significant barriers to deployment in data-scarce regions and limits the models' ability to generalize to new cities without retraining. Furthermore, these models often treat locations as abstract IDs, ignoring the semantic context of urban life—such as the functional difference between a residential block and a commercial district.

While LLMs possess vast internal knowledge, simply prompting them with coordinate sequences (naive prompting) is insufficient. AgentMove addresses these limitations by treating mobility prediction as a multi-step reasoning task, utilizing an agentic workflow to synthesize diverse knowledge sources.

The AgentMove Framework

AgentMove is structured around five core modules that transform raw trajectory data into a reasoned prediction. The framework moves beyond simple sequence completion by incorporating external tools and structured geospatial knowledge.

The AgentMove framework architecture, illustrating the decomposition of mobility prediction into memory, world knowledge, and collective patterns.
  1. Task Decomposition: The agent breaks the prediction task into manageable sub-problems: analyzing individual patterns, understanding the urban environment, and identifying collective behaviors.
  2. Spatial-Temporal Memory: This module maintains a User Profile (textual summaries of preferences), Long-term Memory (recurring habits), and Short-term Memory (recent context). This allows the agent to distinguish between routine "return" behaviors and novel explorations.
  3. World Knowledge Generator: By converting GPS coordinates into hierarchical text addresses (District → Block → POI) using OpenStreetMap data, the agent can leverage the LLM's pre-trained understanding of urban hierarchies and functional zones.
  4. Collective Knowledge Extractor: Recognizing that humans often follow shared social patterns, this module uses the NetworkX tool to build a location transition graph from multiple users, providing the agent with a "wisdom of the crowd" perspective.
  5. Reasoning & Prediction: The final module synthesizes these inputs, conducting a reasoning step to generate a prediction accompanied by a concise justification.

Experimental Evaluation

The framework was rigorously tested using two distinct data sources: a global Foursquare check-in dataset covering 12 diverse cities (including Tokyo, Moscow, Nairobi, and Sao Paulo) and a dense ISP GPS trajectory dataset from Shanghai. AgentMove was compared against traditional DL baselines (e.g., DeepMove, FPMC) and existing LLM-based methods (e.g., LLM-Mob).

Key Results and Discussion

AgentMove demonstrated significant performance gains, outperforming the best baselines by 3.33% to 8.57% across various metrics. Notably, the framework's zero-shot performance often exceeded that of DL models specifically trained on local data, highlighting its potential for immediate global deployment.

Comparison of Accuracy@1 across 12 global cities, demonstrating AgentMove's robust performance and reduced geographical bias compared to other LLM-based methods.

As shown in the cross-city evaluation, AgentMove exhibits less geographical bias than previous LLM-based approaches. While standard prompts often struggle in non-Western cities due to training data imbalances, AgentMove's systematic use of world knowledge and hierarchical addressing provides a more consistent performance baseline globally. Ablation studies further confirmed that the combination of all three knowledge modules (Memory, World, and Collective) is essential, providing a 7% to 45% improvement over basic prompting.

Conclusion

AgentMove represents a shift from data-heavy, specialized mobility models toward generalized, agentic systems. By effectively bridging the gap between raw spatial data and the semantic reasoning of LLMs, it enables accurate next-location prediction anywhere in the world. While challenges remain regarding inference cost and speed, the framework's ability to operate without city-specific training data opens new possibilities for privacy-preserving and globally accessible mobility services.

Summary updated

BibTeX
@misc{feng2024agentmove,
  author = {Jie Feng and Yuwei Du and Jie Zhao and Yong Li},
  title = {{AgentMove: Predicting Human Mobility Anywhere Using Large Language Model based Agentic Framework}},
  year = {2024},
  eprint = {2408.13986},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.13986},
}
Figure