A Foundational individual Mobility Prediction Model based on Open-Source Large Language Models

Zhenlin Qin, Leizhen Wang, Francisco Câmara Pereira, Zhenlinag MaarXiv 2025 · DOI

Introduction

Predicting individual human movement is crucial for urban planning, personalized recommendations, and traffic management. However, traditional data-driven models, such as Recurrent Neural Networks (RNNs) and Transformers, often encounter a "transferability wall," where models trained on one city's data fail to generalize to another due to differing spatial layouts and underlying distributions. Conversely, commercial Large Language Models (LLMs) like GPT-4, while capable of general reasoning, often struggle with the structured and repetitive nature of mobility data, leading to hallucinations when used in zero-shot scenarios.

MoBLLM (Mobility-based Large Language Model) addresses these issues by creating a foundational mobility model. It adapts open-source LLMs to learn the universal "grammar" of human behavior across heterogeneous cities and data sources, offering a reusable framework that overcomes the limitations of city-specific models and general-purpose LLMs.

Methodology

The MoBLLM framework employs a three-step "Teacher-Student" pipeline designed to specialize an open-source model for mobility tasks while maintaining cost-efficiency.

The three-step MoBLLM training pipeline: instruction generation, data abstraction, and parameter-efficient fine-tuning.
  1. Instruction Generation: A high-tier commercial model (GPT-4o mini) serves as a "teacher" to generate diverse, multi-style instruction templates. This ensures the model can handle various ways a user might request a prediction.
  2. Data Abstraction: To ensure the model learns behavioral patterns rather than specific map layouts, location labels are normalized into a universal integer index (0 to $M-1$). This abstraction allows the model to focus on temporal regularities and sequential dependencies, facilitating cross-city transferability.
  3. Parameter-Efficient Fine-Tuning (PEFT): Instead of full retraining, the authors use Low-Rank Adaptation (LoRA) to fine-tune a Llama-3.1-8B model. This approach makes the training process accessible and significantly more cost-effective than using commercial APIs.

Experimental Setup and Datasets

The study evaluates MoBLLM across six diverse real-world datasets representing different mobility patterns and densities:

  • GPS Trajectories: Geolife (Beijing).
  • Check-in Data: Foursquare datasets for New York City, Tokyo, and a global set covering 415 cities in 77 countries.
  • Metro Records: Smart card data from Hong Kong (HK AFC) and Hangzhou (HZ AFC).

Results and Comparative Analysis

MoBLLM demonstrates superior performance in accuracy, transferability, and robustness compared to both specialized deep learning models and general-purpose LLMs.

Comparison of MoBLLM with existing LLM-based mobility models highlighting its foundational capabilities and multi-source data support.

Key Findings

  • State-of-the-Art Accuracy: MoBLLM achieved the highest F1 scores and accuracy across all test sets. For instance, on the Geolife dataset, it reached 58.51% accuracy, significantly outperforming the DeepMove baseline's 26.10%.
  • Superior Transferability: When tested on unseen cities, MoBLLM outperformed zero-shot LLM methods by a wide margin. In the Hangzhou metro test, it achieved 89.24% accuracy, compared to 74.03% for the commercial LLM baseline.
  • Cost Efficiency: The MoBLLM pipeline for inference was approximately 60 times cheaper ($0.70 vs $43.80) than using commercial LLM APIs for the same volume of predictions.
  • Robustness to Irregularity: The model maintained high performance during irregular scenarios, such as metro network changes, policy interventions (fare discounts), and special events, proving more adaptable than traditional deep learning methods.

Conclusion and Future Work

MoBLLM establishes a robust foundation for individual mobility prediction by combining the reasoning capabilities of LLMs with domain-specific abstraction and fine-tuning. While the model shows some vulnerability to errors in early steps of Chain-of-Thought reasoning, future iterations aim to incorporate broader contextual data—such as weather and real-time incident logs—to further enhance its predictive power. The ultimate goal is to expand MoBLLM into a universal transportation foundation model capable of analyzing complex trip patterns and durations across any urban environment.

Summary updated

BibTeX
@misc{qin2025foundational,
  author = {Zhenlin Qin and Leizhen Wang and Francisco Câmara Pereira and Zhenlinag Ma},
  title = {{A Foundational individual Mobility Prediction Model based on Open-Source Large Language Models}},
  year = {2025},
  eprint = {2503.16553},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.16553},
}
Figure