Abstract
Human mobility behaviors are closely linked to various important societal problems such as traffic congestion and epidemic control. However, collecting mobility data can be prohibitively expensive and involves serious privacy issues, posing a pressing need for high-quality generative mobility models. Previous efforts focus on learning the behavior distribution from training samples and generate new mobility data by sampling the learned distributions. They cannot effectively capture the coherent intentions that drive mobility behavior, leading to low sample efficiency and semantic-awareness. Inspired by the emergent reasoning ability in LLMs, we propose a radical perspective shift that reformulates mobility generation as a commonsense reasoning problem. In this paper, we design a novel Mobility Generation as Reasoning (MobiGeaR) framework, implemented as the Chain-of-Planned-Behaviour (CoPB), which prompts LLMs to recursively generate mobility behavior. Specifically, we design a context-aware chain-of-thoughts prompting technique to align LLMs with context-aware mobility behavior by few-shot in-context learning. Besides, CoPB employs a divide-and-coordinate mechanism to exploit the synergistic effect between LLM reasoning and mechanistic gravity models. Experiments on two real-world datasets show CoPB achieves state-of-the-art performance across all metrics and substantially reduces the size of training samples. CoPB also significantly improves the semantic-awareness of mobility generation by improving intention accuracy by 62.23%.
Introduction
Simulating how humans move through a city is vital for urban planning, epidemic control, and business site selection. Traditionally, this is achieved using mechanistic models (like the gravity model) or deep generative models (like GANs or Diffusion models). However, these methods face a "semantic gap." Mechanistic models are often too simple to capture complex human preferences, while deep learning models require massive amounts of data and act as "black boxes" that fail to explain the underlying intent behind a person's movement. Large Language Models (LLMs) offer a solution through their reasoning capabilities, but they struggle to handle the precise spatial-temporal constraints of physical geography on their own.
Methodology: The Chain-of-Planned-Behaviour (CoPB)
To bridge this gap, we introduce the Chain-of-Planned-Behaviour (CoPB) workflow. This framework structures LLM prompts based on the psychological Theory of Planned Behaviour (TPB). Instead of asking an LLM to generate a day of movement in a single step, the workflow decomposes the process into three cognitive pillars:
- Attitude: The LLM identifies personal preferences based on a user profile (e.g., a high-income manager might prefer sports over shopping).
- Subjective Norms: The LLM generates typical routines or "anchor points" (e.g., going to work at 9 AM).
- Perceived Behavioural Control: The LLM evaluates the feasibility of the next move based on the current time and previous activities.
Hybrid Reasoning and Spatial Mapping
A key innovation of CoPB is its divide-and-coordinate mechanism. LLMs are excellent at "why" (intent) but inefficient at "where" (spatial math). By offloading spatial selection to a classical Gravity Model, the system becomes more accurate. The LLM generates an abstract intention (e.g., "go to a restaurant"), and the Gravity Model maps that intention to a physical Point of Interest (POI) based on distance and density. This hybrid approach reduced token consumption by 97.7% compared to pure LLM approaches.
Experimental Evaluation
We evaluated CoPB using two large-scale, real-world mobility datasets: the Tencent Dataset (mobility trajectories and user profiles from Beijing) and the ChinaMobile Dataset (cellular base station records matched to POIs). Notably, while baseline deep learning models required 70% of the dataset for training, CoPB achieved superior results using only 200 trajectories through few-shot learning.
Key Results
- Accuracy and Semantic Awareness: CoPB significantly outperformed existing models. On the Tencent dataset, it reduced the error rate of mobility intention generation from 57.8% to 19.4%.
- Efficiency: Integrating the gravity model made the system 40 times cheaper in terms of token usage. Furthermore, the "Attitude" anchor was found to have the greatest impact on quality; without it, trajectories lost their unique agent "personality."
- Model Distillation: By using GPT-4-turbo to generate high-quality labels, we fine-tuned a smaller LLaMA 3-8B model. This distilled model achieved performance nearly identical to GPT-4-turbo, proving that complex behavioral reasoning can be run efficiently on smaller hardware.
Conclusion
CoPB represents a shift from simple imitation to context-aware reasoning in mobility generation. By combining psychological theory with the strengths of both LLMs and mechanistic models, we achieve high-fidelity, semantically rich mobility data with significantly lower data and computational requirements. Future work will explore incorporating transportation modes and social dynamics into the reasoning chain.
Summary updated