MobEvolve: An Agentic Self-Evolving Heuristic System for Interpretable Human Mobility Generation

Junlin He, Yihong Tang, Tong Nie, Ao Qu, Yuebing Liang, Hamzeh Alizadeh, Bang Liu, Wei Ma, Lijun SunarXiv 2026

TL;DR

MobEvolve is a novel agentic framework for human mobility generation that uses a Large Language Model (LLM) agent to iteratively optimize an interpretable, rule-based heuristic system. By shifting the LLM's role from direct data generation to code optimization, MobEvolve achieves state-of-the-art accuracy, population-level alignment, and behavioral plausibility while maintaining the lightning-fast inference speeds of traditional heuristic models.

What Problem Does This Paper Address?

Urban planners rely heavily on simulated daily "trip chains" (sequences of activities and locations throughout a day) to evaluate infrastructure changes and policy impacts. Generating these realistic schedules based purely on individual demographic features (like age, gender, and employment status) is a notoriously difficult balancing act.

Existing approaches suffer from a clear trilemma:

  1. Traditional Heuristics: Highly interpretable and fast, but rely on manually designed rules that fail to capture complex, real-world data distributions.
  2. Deep Generative Models (GANs, VAEs): Good at matching statistical distributions, but operate as black boxes and frequently generate behaviorally absurd trajectories (e.g., a student attending school at 2:00 AM on a Sunday).
  3. LLM-based Direct Generation: Excellent at semantic reasoning and behavioral plausibility, but prohibitively expensive and slow for population-scale simulations, while struggling to match aggregate population statistics.

MobEvolve bridges this gap by combining the best of all worlds: the interpretability and speed of heuristics with the evolutionary optimization capabilities of LLMs.

Overview of MobEvolve comparing paradigms

Methods

MobEvolve splits the mobility generation problem into two distinct parts: an Interpretable Mobility Heuristic System and an Agentic Self-Evolution Loop.

1. The Heuristic System

Instead of generating a 24-hour schedule all at once, MobEvolve factorizes the generation process into four behaviorally grounded steps implemented as modular Python code:

  • Travel Participation: Decides if an individual leaves the home at all.
  • Mobility Retrieval: Selects an empirical reference trip chain from a behaviorally similar sub-population in the training data.
  • Individual Adaptation: Adjusts the retrieved pattern to fit the individual's specific constraints.
  • Behavioral Refinement: Enforces structural consistency (e.g., ensuring travel states correctly bridge different activity locations).

2. The Self-Evolution Loop

Rather than using an LLM to generate trajectories directly, MobEvolve uses an LLM agent to write and refine the code of the four heuristic modules described above. The evolution happens iteratively over four stages:

  1. Mobility Rollout: The current heuristic code is run on the validation population to generate synthetic trip chains.
  2. Distributional-Behavioral Attribution: A frozen evaluator compares the synthetic data against real validation data, compiling specific failure modes and statistical misalignments into an "attribution record."
  3. Heuristic Evolution: The LLM agent inspects the code, reviews the attribution record, and proposes targeted code updates.
  4. Memory Evolution: The system tests the new code. If it improves performance, it is accepted; if not, it's rejected. The attempt is logged into an evolution memory so the agent learns from its mistakes.
Figure 2: Overview of MobEvolve. The upper panel illustrates the interpretable mobility heuristic system, which factorizes trip-chain generation into travel participation, mobility retrieval, mobility adaptation, and behavioral refinement. The lower panel shows the self-evolution process: the current generator is rolled out on the target population, distributional-behavioral attribution identifies empirical misalignments, the LLM agent proposes and verifies heuristic updates, and evolution memory accumulates attribution records and trials for subsequent evolutions.

Datasets

The authors evaluated MobEvolve on two real-world daily mobility benchmarks:

  • Singapore Dataset: An activity-only generation task derived from the Household Travel Survey (32,246 records). It maps out 24 hourly slots across five activity labels: Home, Work, School, Others, and Travel.
  • Montreal Dataset: A more challenging joint activity-location generation task derived from a 2023 regional household travel survey (19,715 records). It requires predicting both the activity and one of 40 discrete spatial sectors for every hour.

Key Insights and Ideas

  • LLM as a Meta-Optimizer, Not a Generator: The core "aha moment" is that LLMs are much better utilized as code optimizers during training than as data generators during inference. Running Python heuristics takes milliseconds; prompting an LLM for every single citizen in a city takes seconds per person and costs a fortune.
  • Structured Search Spaces Prevent Hallucinations: Unconstrained LLM code generation often fails. By forcing the LLM to operate within a strict 4-step behavioral framework, the agent has a meaningful, localized search space to diagnose and fix errors.
  • Auditable Evolution Trajectories: Because the LLM modifies explicit Python rules, the entire optimization history forms a human-readable audit trail. Researchers can look at the exact round where the agent realized "senior workers stay at work later on weekends" and see the corresponding code change.
Figure 3: Self-evolution trajectory on the Singapore validation set. Gray points represent attempted heuristic updates, while the solid line tracks the running best used for selection. Red markers highlight accepted updates that yield major performance improvements.

Key Results

MobEvolve was tested against traditional discrete choice models, deep generative models (like AIRL and CTGAN), and direct LLM prompting (LLMob).

  • Superior Accuracy: MobEvolve reduced overall generation error by 34.1% on the Singapore benchmark and 10.8% on the Montreal benchmark compared to the strongest baselines.
  • Exceptional Efficiency: MobEvolve achieved a generation latency of just 7.65 ms per sample. This is in the same order of magnitude as lightweight traditional models (3.05 ms) and thousands of times faster than few-shot LLM generation methods (which took up to 3,200 ms per sample).
  • High Behavioral Plausibility: Qualitatively, MobEvolve successfully avoided the structural errors common to deep learning models, preserving logical daily routines (like the home-school-home loop) without manual intervention.

Limitations and Future Work

Despite its strong performance, the authors note a few limitations:

  • Data Dependency: The initial heuristic system relies on template libraries built from training data. If the reference dataset under-represents certain rare travel patterns or demographics, the evolved heuristics will inherit those gaps.
  • Validation Overfitting: There is a risk that the LLM agent might overfit its heuristic modifications to the specific validation feedback loop.
  • Spatiotemporal Scaling: The current setup focuses on daily trip chains at an hourly resolution. Future work is required to scale the framework to finer temporal resolutions (e.g., minute-by-minute), longer horizons (multi-week simulations), and larger spatial scales.

Summary updated

BibTeX
@misc{he2026mobevolve,
  author = {Junlin He and Yihong Tang and Tong Nie and Ao Qu and Yuebing Liang and Hamzeh Alizadeh and Bang Liu and Wei Ma and Lijun Sun},
  title = {{MobEvolve: An Agentic Self-Evolving Heuristic System for Interpretable Human Mobility Generation}},
  year = {2026},
  eprint = {2606.01640},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.01640},
}
Figure