[Paper Review] TrajGPT-R: Generating Urban Mobility Trajectory with Reinforcement Learning-Enhanced Generative Pre-trained Transformer
TrajGPT-R uses a two-phase framework that pre-trains a Transformer for urban trajectory generation and then fine-tunes it with a reward-model guided by inverse reinforcement learning to improve reliability and diversity of generated urban mobility trajectories.
Mobility trajectories are essential for understanding urban dynamics and enhancing urban planning, yet access to such data is frequently hindered by privacy concerns. This research introduces a transformative framework for generating large-scale urban mobility trajectories, employing a novel application of a transformer-based model pre-trained and fine-tuned through a two-phase process. Initially, trajectory generation is conceptualized as an offline reinforcement learning (RL) problem, with a significant reduction in vocabulary space achieved during tokenization. The integration of Inverse Reinforcement Learning (IRL) allows for the capture of trajectory-wise reward signals, leveraging historical data to infer individual mobility preferences. Subsequently, the pre-trained model is fine-tuned using the constructed reward model, effectively addressing the challenges inherent in traditional RL-based autoregressive methods, such as long-term credit assignment and handling of sparse reward environments. Comprehensive evaluations on multiple datasets illustrate that our framework markedly surpasses existing models in terms of reliability and diversity. Our findings not only advance the field of urban mobility modeling but also provide a robust methodology for simulating urban data, with significant implications for traffic management and urban development planning. The implementation is publicly available at https://github.com/Wangjw6/TrajGPT_R.
Motivation & Objective
- Address privacy constraints by generating large-scale urban mobility trajectories that resemble real urban dynamics.
- Leverage a Transformer-based model pretrained offline to learn trajectory generation as a sequential decision process.
- Introduce an inverse RL-based reward model to capture trajectory-wise preferences and guide fine-tuning.
- Fine-tune the pretrained model with reward-model guided objective to improve reliability and diversity of generated trajectories.
- Validate the approach on multiple large-scale urban mobility datasets and demonstrate superior performance over baselines.
Proposed method
- Model urban trajectory generation as a sequential decision problem using a Transformer-based autoregressive framework.
- Represent trajectories with state, action, and return-to-go tokens and train with offline RL using cross-entropy loss.
- Construct a trajectory-wise reward model via inverse reinforcement learning with a Basic Value Estimator and a Preference Value Estimator to capture general and individual preferences.
- Fine-tune the pretrained model with a reward-model guided objective combining policy gradient signals (GAE) and a supervised loss, with a conservative update through a small reward-weight parameter.
- Evaluate on Toyota, T-Drive, and Porto Taxi datasets using reliability and diversity metrics to show improved performance.

Experimental results
Research questions
- RQ1Can a transformer-based model generate diverse and reliable urban mobility trajectories while preserving privacy?
- RQ2Does incorporating an IRL-based reward model and RMFT improve trajectory generation quality versus offline RL alone?
- RQ3How well does TrajGPT-R generalize across different urban contexts and datasets?
Key findings
- TrajGPT-R achieves higher reliability and diversity than baselines across Toyota, T-Drive, and Porto Taxi datasets.
- On Toyota, it achieves Jac 0.524, Cos 0.575, BLEU 0.383, L-JSD 0.016, C-JSD 0.042, UE 14.85, BE 14.82.
- On T-Drive, it achieves Jac 0.635, Cos 0.570, BLEU 0.345, L-JSD 0.005, C-JSD 0.013, UE 8.57, BE 10.22.
- On Porto, it achieves Jac 0.522, Cos 0.470, BLEU 0.432, L-JSD 0.013, C-JSD 0.032, UE 10.13, BE 10.75.
- Fine-tuning with RMFT and explicit reward modeling substantially improves long-horizon trajectory generation and robustness in sparse regions.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.