TL;DR
EncounterMob is a novel framework that uses Large Language Models (LLMs) to generate city-scale human mobility data that is "encounter-aware." Unlike previous models that focus solely on individual routines, EncounterMob ensures that generated trajectories accurately reflect how people interact and co-occur at the same place and time, significantly improving both social interaction fidelity and personal mobility realism.
What Problem Does This Paper Address?
Generating realistic human mobility data is vital for urban planning, transportation, and public health, especially when real-world data is restricted due to privacy or high collection costs. While recent LLM-based methods have become quite good at simulating individual routines (e.g., "Person A goes to work at 9 AM"), they are largely resident-centric.
The missing piece is the encounter: the co-presence of two or more people at a specific venue and time. If you generate trajectories for thousands of people independently, the resulting "encounters" are often accidental and fail to capture the underlying social structures and city-level rhythms found in real data. As shown in the figure below, independent generation often leads to mismatches in who meets where and when.
Methods
The authors propose EncounterMob, which moves away from independent generation toward a coordinated approach. The framework consists of two main pillars:
- Coarse-to-Fine Encounter Generator:
- City-Level Encounter Rhythms: The LLM first analyzes historical data to infer the "pulse" of the city—general patterns of when and in what types of venues encounters typically happen (e.g., rush hour at train stations or lunch at restaurants).
- Encounter Instantiation: It then translates these broad rhythms into specific "proposals" for encounters, identifying which specific residents are likely to meet at which venues and times, based on their historical social ties and profiles.
- Iterative Coupling Framework:
- This is the "brain" of the system. It generates initial individual trajectories and then uses a Joint Critic (another LLM agent) to compare these trajectories against the encounter proposals.
- If there’s a conflict—for example, if an encounter is proposed at a cafe but one participant’s routine makes them unavailable—the Critic provides feedback. The model then iteratively refines both the individual paths and the encounter proposals (up to $K$ rounds) until they align.
To measure success, the authors also introduced a new encounter recovery protocol that evaluates seven different distributions, including the complex "Full Joint" distribution of participants, time, and venue ($G \times T \times V$).
Datasets
The model was evaluated on two city-scale datasets derived from Foursquare check-ins:
- Japan: 1,049 residents over 30 test days.
- NYC: 226 residents over 61 test days. The data was discretized into 10-minute intervals, and the researchers focused on "fixed cohorts" of residents who had a history of interacting in the training period.
Key Insights and Ideas
- Interaction is a Signal for Quality: One of the most striking findings is that forcing the model to get encounters right actually improves the quality of individual trajectories. By coordinating residents, the model produces more realistic personal routines.
- The Power of Semantic Reasoning: Unlike traditional deep learning models (like LSTMs or GANs), LLMs can reason about why a conflict exists. The "Joint Critic" can suggest specific fixes, such as "A is missing from the 07:50 station stop; revise A's trajectory to include it while preserving their other stops."
- Rhythms Matter: Capturing the "vibe" of the city (the coarse rhythms) provides a necessary anchor. Without it, the model tends to over-generate or under-generate encounters at the wrong times, a common failure in baselines like ELLMob.
Key Results
EncounterMob outperformed all baselines, including state-of-the-art LLM-based models like ELLMob and various deep learning architectures (TrajGAIL, DiffTraj).
- Encounter Fidelity: On the most difficult metric (the $G \times T \times V$ joint error), EncounterMob reduced error by 40.4% in Japan and 41.7% in NYC compared to the previous best model (ELLMob).
- Personal Mobility: It also reduced mean personal mobility error by 58.8% (Japan) and 32.7% (NYC).
- Ablation Success: Removing the "Iterative Coupling" component caused the joint error to spike by over 74%, proving that the feedback loop is essential for coordination.
Limitations and Future Work
While powerful, EncounterMob has a few hurdles:
- Computational Cost: Using LLMs for iterative refinement is token-intensive. The paper notes that EncounterMob uses significantly more tokens per resident-day than simpler models.
- Data Specificity: The current study relies on Foursquare-style check-in data. Future work could explore more diverse mobility sources (like GPS pings or call detail records).
- Social Priors: The authors suggest incorporating even richer social and behavioral priors to make the generation more generalizable to different urban contexts.
Summary updated