TrajGPT-R: Generating Urban Mobility Trajectory with Reinforcement Learning-Enhanced Generative Pre-trained Transformer

Jiawei Wang, Chuang Yang, Jiawei Yong, Xiaohang Xu, Hongjun Wang +4 more
2/24/2026
cs.LGcs.AI

Official code: Wangjw6/TrajGPT_R (4 stars, last commit 2026-02-23).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Wangjw6/TrajGPT_ROfficial100%
40PythonFeb 23, 20267 months ago

Similar Papers

Cite this paper

@article{wang2026trajgptr,
  title  = {TrajGPT-R: Generating Urban Mobility Trajectory with Reinforcement Learning-Enhanced Generative Pre-trained Transformer},
  author = {Jiawei Wang and Chuang Yang and Jiawei Yong and Xiaohang Xu and Hongjun Wang and Noboru Koshizuka and Shintaro Fukushima and Ryosuke Shibasaki and Renhe Jiang},
  year   = {2026},
  eprint = {2602.20643},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.20643v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.20643.svg)](https://codeofpaper.com/paper/2602.20643)

Discussion