TrajGenAgent: A Hierarchical LLM Agent for Human Mobility Trajectory Generation
About
Human mobility data is important for transportation, urban planning, and epidemic control, but large-scale trajectory collection is often costly and privacy-constrained, motivating realistic synthetic trajectory generation. Existing LLM-based generators typically rely on either prompt engineering, which preserves zero-shot reasoning but lacks fine-grained spatiotemporal grounding, or trajectory-level fine-tuning, which improves statistical precision but incurs substantial computational cost and may weaken general reasoning. We propose TrajGenAgent, a semantic-aware hierarchical LLM-agent framework for human mobility trajectory generation without model fine-tuning. TrajGenAgent uses a two-stage orchestrator-worker design: an LLM first synthesizes an individual- and weekday-conditioned activity chain from historical evidence via in-context learning, and a deterministic workflow then grounds each activity into a complete visit using personalized POI retrieval, distance-aware location selection, kinematics-aware travel-time propagation, and LLM-based duration estimation. To evaluate realism beyond aggregate spatiotemporal statistics, we introduce an anomaly-detection-based evaluation framework using two complementary detectors to assess behavioral and semantic plausibility. Experiments on benchmark and large-scale simulation datasets show that TrajGenAgent improves spatiotemporal fidelity, semantic coherence, and individual-specific behavioral realism over representative neural and LLM-based baselines, while avoiding parameter updates.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Behavioral Anomaly Detection | NumoSim | AUROC77.3 | 27 | |
| Behavioral Anomaly Detection | Geolife | AUROC0.5903 | 27 | |
| Trajectory Generation | NumoSim | Distance6.00e-4 | 7 | |
| Trajectory Generation | MobilitySyn | Distance0.00e+0 | 7 | |
| Trajectory Generation | Trajectory Generation Workload Average across NumoSim and MobilitySyn 34,000 trajectories | GPU Hours1.67 | 7 | |
| Trajectory Generation | NumoSim (balanced split) | BeSTAD AUROC50.08 | 3 | |
| Trajectory Generation | MobilitySyn (balanced split) | BeSTAD AUROC0.6817 | 3 |