TrajGPT: Controlled Synthetic Trajectory Generation Using a Multitask Transformer-Based Spatiotemporal Model
Not on the map. Why?
Abstract (arXiv)
Human mobility modeling from GPS-trajectories and synthetic trajectory generation are crucial for various applications, such as urban planning, disaster management and epidemiology. Both of these tasks often require filling gaps in a partially specified sequence of visits - a new problem that we call "controlled" synthetic trajectory generation. Existing methods for next-location prediction or synthetic trajectory generation cannot solve this problem as they lack the mechanisms needed to constrain the generated sequences of visits. Moreover, existing approaches (1) frequently treat space and time as independent factors, an assumption that fails to hold true in real-world scenarios, and (2) suffer from challenges in accuracy of temporal prediction as they fail to deal with mixed distributions and the inter-relationships of different modes with latent variables (e.g., day-of-the-week). These limitations become even more pronounced when the task involves filling gaps within sequences instead of solely predicting the next visit. We introduce TrajGPT, a transformer-based, multi-task, joint spatiotemporal generative model to address these issues. Taking inspiration from large language models, TrajGPT poses the problem of controlled trajectory generation as that of text infilling in natural language. TrajGPT integrates the spatial and temporal models in a transformer architecture through a Bayesian probability model that ensures that the gaps in a visit sequence are filled in a spatiotemporally consistent manner. Our experiments on public and private datasets demonstrate that TrajGPT not only excels in controlled synthetic visit generation but also outperforms competing models in next-location prediction tasks - Relatively, TrajGPT achieves a 26-fold improvement in temporal accuracy while retaining more than 98% of spatial accuracy on average.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 19 of its 44 references that are in the map. First posted on arXiv 7 Nov 2024.
Builds on
19 of 44 references.
References · 19
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,031
- 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 670
- 2019Time2Vec: Learning a Vector Representation of Timecited by 213
- 2020Enabling Language Models to Fill in the Blankscited by 122
- 2021STAN: Spatio-Temporal Attention Network for Next Location Recommendationcited by 102
7 more
- 2023Where Would I Go Next? Large Language Models as Human Mobility Predictorscited by 93
- 2020Multi-Scale Representation Learning for Spatial Feature Distributions using Grid Cellscited by 90
- 2023GETNext: Trajectory Flow Map Enhanced Transformer for Next POI Recommendationcited by 58
- 2021MobTCast: Leveraging Auxiliary Trajectory Forecasting for Human Mobility Predictioncited by 48
- 2020Blank Language Modelscited by 43
- 2023A Hierarchical Spatial Transformer for Massive Point Samples in Continuous Spacecited by 10
- 2022Hierarchical Transformer with Spatio-Temporal Context Aggregation for Next Point-of-Interest Recommendationcited by 6
Built on by
Citing papers per year: 2024: 1; 2025: 6; 2026: 6.
13 papers.
Sort:
By area:
- 2026TrajFlow: Nation-wide Pseudo GPS Trajectory Generation with Flow Matching Modelscited by 5
- 2026Mobility-Embedded POIs: Learning What A Place Is and How It Is Used from Human Movementcited by 3
- 2024Forecasting Unseen Points of Interest Visits Using Context and Proximity Priorscited by 1
- 2025MoveGPT: Scaling Mobility Foundation Models with Spatially-Aware Mixture of Expertscited by 1
- 2025SVBRD-LLM: Self-Verifying Behavioral Rule Discovery for Autonomous Vehicle Identificationcited by 1
- 2025Building a Foundation Model for Trajectory from Scratchcited by 1
- 2025POIFormer: A Transformer-Based Framework for Accurate and Scalable Point-of-Interest Attributioncited by 0
- 2025Efficient Temporal Tokenization for Mobility Prediction with Large Language Modelscited by 0
- 2025GPS-MTM: Capturing Pattern of Normalcy in GPS-Trajectories with self-supervised learningcited by 0
- 2026TrajGPT-R: Generating Urban Mobility Trajectory with Reinforcement Learning-Enhanced Generative Pre-trained Transformercited by 0
- 2026Learning Demographic-Conditioned Mobility Trajectories with Aggregate Supervisioncited by 0
- 2026TraXion: Rethinking Pre-training Frameworks for Mobility and Beyondcited by 0
1 more
- 2026diffGHOST: Diffusion based Generative Hedged Oblivious Synthetic Trajectories11 May 2026
- 2026TraXion: Rethinking Pre-training Frameworks for Mobility and Beyond7 May 2026
- 2026TrajFlow: Nation-wide Pseudo GPS Trajectory Generation with Flow Matching Models16 Mar 2026
- 2026Learning Demographic-Conditioned Mobility Trajectories with Aggregate Supervision3 Mar 2026
- 2026TrajGPT-R: Generating Urban Mobility Trajectory with Reinforcement Learning-Enhanced Generative Pre-trained Transformer24 Feb 2026
- 2026Mobility-Embedded POIs: Learning What A Place Is and How It Is Used from Human Movement29 Jan 2026
- 2025Building a Foundation Model for Trajectory from Scratch25 Nov 2025
- 2025SVBRD-LLM: Self-Verifying Behavioral Rule Discovery for Autonomous Vehicle Identification18 Nov 2025
- 2025GPS-MTM: Capturing Pattern of Normalcy in GPS-Trajectories with self-supervised learning28 Sep 2025
- 2025Efficient Temporal Tokenization for Mobility Prediction with Large Language Models18 Jul 2025
- 2025POIFormer: A Transformer-Based Framework for Accurate and Scalable Point-of-Interest Attribution12 Jul 2025
- 2025MoveGPT: Scaling Mobility Foundation Models with Spatially-Aware Mixture of Experts24 May 2025
1 more
- 2026TrajFlow: Nation-wide Pseudo GPS Trajectory Generation with Flow Matching Modelscited by 5
- 2026Mobility-Embedded POIs: Learning What A Place Is and How It Is Used from Human Movementcited by 3
- 2024Forecasting Unseen Points of Interest Visits Using Context and Proximity Priorscited by 1
- 2025Building a Foundation Model for Trajectory from Scratchcited by 1
- 2025POIFormer: A Transformer-Based Framework for Accurate and Scalable Point-of-Interest Attributioncited by 0
- 2025Efficient Temporal Tokenization for Mobility Prediction with Large Language Modelscited by 0
- 2025GPS-MTM: Capturing Pattern of Normalcy in GPS-Trajectories with self-supervised learningcited by 0
- 2026Learning Demographic-Conditioned Mobility Trajectories with Aggregate Supervisioncited by 0
- 2026TrajFlow: Nation-wide Pseudo GPS Trajectory Generation with Flow Matching Models16 Mar 2026
- 2026Learning Demographic-Conditioned Mobility Trajectories with Aggregate Supervision3 Mar 2026
- 2026Mobility-Embedded POIs: Learning What A Place Is and How It Is Used from Human Movement29 Jan 2026
- 2025Building a Foundation Model for Trajectory from Scratch25 Nov 2025
- 2025GPS-MTM: Capturing Pattern of Normalcy in GPS-Trajectories with self-supervised learning28 Sep 2025
- 2025Efficient Temporal Tokenization for Mobility Prediction with Large Language Models18 Jul 2025
- 2025POIFormer: A Transformer-Based Framework for Accurate and Scalable Point-of-Interest Attribution12 Jul 2025
- 2024Forecasting Unseen Points of Interest Visits Using Context and Proximity Priors22 Nov 2024