ActivityEditor: Learning to Synthesize Physically Valid Human Mobility
Organizations: Southwest Jiaotong University · HKUST (Guangzhou) · Shanghai Jiao Tong University · Tsinghua University ·
Abstract
Human mobility modeling is indispensable for diverse urban applications. However, existing data-driven methods often suffer from data scarcity, limiting their applicability in regions where historical trajectories are unavailable or restricted. To bridge this gap, we propose ActivityEditor, a novel dual-LLM-agent framework designed for zero-shot cross-regional trajectory generation. Our framework decomposes the complex synthesis task into two collaborative stages. Specifically, an intention-based agent, which leverages demographic-driven priors to generate structured human intentions and coarse activity chains to ensure high-level socio-semantic coherence. These outputs are then refined by editor agent to obtain mobility trajectories through iteratively revisions that enforces human mobility law. This capability is acquired through reinforcement learning with multiple rewards grounded in real-world physical constraints, allowing the agent to internalize mobility regularities and ensure high-fidelity trajectory generation. Extensive experiments demonstrate that ActivityEditor achieves superior zero-shot performance when transferred across diverse urban contexts. It maintains high statistical fidelity and physical validity, providing a robust and highly generalizable solution for mobility simulation in data-scarce scenarios. Our code is available at: https://anonymous.4open.science/r/ActivityEditor-066B.
Figures & tables
| Method | California | Arizona | Georgia | Oklahoma | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Acc | Mint | Atype | Acc | Mint | Atype | Acc | Mint | Atype | Acc | Mint | Atype | |
| Traditional Baselines | ||||||||||||
| DeepMove | 0.554 | 0.660 | 0.229 | 0.521 | 0.666 | 0.252 | 0.448 | 0.657 | 0.264 | 0.472 | 0.676 | 0.281 |
| LSTPM | 0.402 | 0.705 | 0.290 | 0.420 | 0.691 | 0.300 | 0.379 | 0.693 | 0.288 | 0.376 | 0.697 | 0.287 |
| General LLM Baselines | ||||||||||||
| ChatGPT | 0.660 | 0.425 | 0.199 | 0.664 | 0.399 | 0.195 | 0.583 | 0.403 | 0.201 | 0.616 | 0.404 | 0.158 |
| Model | CA CA | CA AZ | CA GA | CA OK | AZ CA | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Acc | Mint | Atype | Acc | Mint | Atype | Acc | Mint | Atype | Acc | Mint | Atype | Acc | Mint | Atype | |
| SFT_CoPB | 0.743 | 0.289 | 0.154 | 0.682 | 0.420 | 0.127 | 0.642 | 0.303 | 0.153 | 0.711 | 0.325 | 0.114 | 0.654 | 0.371 | 0.109 |
| SFT_RAGHome | 0.691 | 0.349 | 0.176 | 0.671 | 0.322 | 0.183 | 0.643 | 0.324 | 0.134 | 0.672 | 0.246 | 0.120 | 0.636 | 0.287 | 0.151 |
| SFT_LLaMA | 0.724 | 0.214 | 0.110 | 0.689 | 0.256 | 0.158 | 0.632 | 0.253 | 0.195 | 0.650 | 0.227 | 0.165 | 0.653 | 0.228 | 0.141 |
| SFT_Qwen | 0.753 | 0.231 | 0.104 | 0.745 | 0.239 | 0.113 | 0.708 | 0.248 | 0.130 | 0.714 | 0.241 | 0.127 | 0.699 | 0.214 | 0.097 |
| GRPO_LLaMA | 0.732 | 0.248 | 0.122 | 0.720 | 0.260 | 0.131 | 0.681 | 0.276 | 0.147 | 0.690 | 0.268 | 0.142 | 0.671 | 0.233 | 0.118 |
| Category | Metrics |
|---|---|
| Sequence Similarity | accuracy ( Acc ), f1_score, edit_dist, bleu_score |
| Temporal Alignment | macro_hour, micro_hour, micro_int, macro_int ( Mint ) |
| Distributional Consistency | data_jsd, act_type ( Atype ), uni_act_type, traj_len |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | SFT Stage |
|---|---|
| Base Model | Qwen3-8B |
| LoRA Rank (r) | 32 |
| LoRA Alpha | 64 |
| LoRA Dropout | 0.05 |
| Training Epochs | 3 epochs |
| Peak Learning Rate | 5e-5 |
| Hyperparameter | GRPO Stage |
|---|---|
| Base Model | Qwen3-8B |
| LoRA Rank (r) | 32 |
| LoRA Alpha | 64 |
| LoRA Dropout | 0.05 |
| Training Steps | 1000 steps |
| Peak Learning Rate | 1e-5 |
| Initial Draft | Reasoning Cues | Edited Output | Ground Truth |
|---|---|---|---|
| [00:00–07:45] Home | [00:00–07:45] Home | [00:00–07:45] Home | |
| [07:45–16:45] Work | occupation Evening Work | [07:45–16:30] Work | [07:45–16:30] Work |
| [16:45–18:00] Home | relationship Shopping | [16:30–17:20] Shopping | [16:30–17:30] Shopping |
| [17:45–19:00] Work | constraint Fix overlap | [17:20–19:50] Work | [17:30–17:45] Service |
| [19:00–19:35] Shopping | short commute no extra Home stay | [19:50–24:00] Home | [17:45–20:30] Work |
| [19:35–24:00] Home | [20:30–24:00] Home |
Trajectory Generation
Trajectory generation creates plausible, goal-directed paths and motion sequences for people, vehicles, and robots.
See all 182 papers