Abstract
Large Language Models (LLMs) have demonstrated remarkable reasoning capabilities across diverse domains, yet their application in generating realistic human mobility patterns remains a challenge. This difficulty stems from the fact that human behavior is not merely a product of abstract logic but is deeply influenced by personal preferences, social norms, and situational constraints. In this paper, we present Chain-of-Planned-Behaviour (CoPB), a novel workflow that structures LLM reasoning through the lens of the Theory of Planned Behaviour (TPB). By decomposing the decision-making process into cognitive pillars—Attitude, Subjective Norms, and Perceived Behavioral Control—CoPB significantly enhances the accuracy of mobility intention generation. Furthermore, we introduce a hybrid strategy that integrates LLMs with mechanistic gravity models to map intentions to physical locations, reducing token costs by 97.7% while improving performance. Our results demonstrate that CoPB can achieve state-of-the-art performance with few-shot learning and can be effectively distilled into smaller, open-source models like LLaMA 3-8B.
Introduction
Simulating human mobility—the "where, when, and why" of urban movement—is a cornerstone of urban planning, public health, and transportation engineering. Historically, researchers have relied on mechanistic models, which are mathematically robust but often fail to capture the semantic nuances of human life, or deep generative models, which require vast amounts of training data and often lack interpretability.
While LLMs possess the common-sense reasoning required to understand human activity, they often struggle with the spatial and temporal constraints inherent in mobility. Human movement is driven by a complex interplay of internal desires and external pressures. To bridge this gap, we propose a framework that guides LLMs to simulate the underlying cognitive processes that precede physical movement.
The CoPB Framework
The core of our approach is the Chain-of-Planned-Behaviour (CoPB) workflow. Rather than asking an LLM to directly predict a user's next coordinate, we prompt the model to follow a structured reasoning path based on the Theory of Planned Behaviour (TPB).
The workflow consists of three primary cognitive modules:
- Attitude: The model infers the preferred activities of a specific persona (e.g., identifying that a high-income manager might prefer shopping or sports).
- Subjective Norms: The model establishes the typical routines and social expectations for that profile (e.g., a standard 9-to-5 work schedule).
- Perceived Behavioral Control: The model evaluates the practical likelihood of an intention based on the user's current state, time of day, and behavior history (e.g., assessing if a user is likely to go to the gym immediately after a long work shift).
Following this reasoning chain, the LLM generates a high-level Intention (e.g., "Eat") and a Duration. To ensure spatial accuracy and computational efficiency, we employ a hybrid approach: the LLM handles the semantic reasoning, while a mechanistic Gravity Model maps that intention to a specific Point of Interest (POI) based on distance and location density. This prevents the LLM from hallucinating impossible coordinates and drastically reduces the prompt size.
Experimental Results
We evaluated the CoPB workflow using two large-scale mobility datasets from Beijing: the Tencent Dataset (100,000 users) and the ChinaMobile Dataset (1,246 users). Unlike traditional deep learning models that require extensive training, CoPB operates in a few-shot environment, requiring only 200 sample trajectories to achieve high performance.
As shown in the performance table, CoPB significantly outperforms both vanilla LLM prompting (V-LLM) and specialized generative models like MoveSim and DiffTraj. Key highlights include:
- Semantic Accuracy: On the Tencent dataset, the intention error rate (
itdErr) dropped from 0.578 for the vanilla LLM to 0.194 with CoPB. - Cost Efficiency: By offloading spatial selection to the gravity model, we achieved a 97.7% reduction in token consumption compared to prompts that included full geospatial data.
- Model Distillation: We successfully used GPT-4-turbo to generate reasoning labels for fine-tuning LLaMA 3-8B. The fine-tuned smaller model achieved performance comparable to its larger counterpart, making high-quality mobility simulation significantly more accessible.
Conclusion
The Chain-of-Planned-Behaviour workflow demonstrates that psychological theory can serve as a powerful scaffolding for LLM reasoning. By mimicking the cognitive structures of human decision-making, CoPB generates more realistic and semantically coherent mobility patterns than previous methods. Future work will focus on incorporating social dynamics—such as group movements—and refining the "in-between" journey details, including transportation mode selection, to create even more comprehensive urban simulations.
Summary updated