# TrajGAIL: Generating Urban Vehicle Trajectories using Generative Adversarial Imitation Learning

arXiv: https://arxiv.org/abs/2007.14189 · HTML: https://mlsanity.com/paper/2007.14189/

## Key facts

- Cited by 47 papers in the map (data through 14 Oct 2026).
- Placed in Imitation and offline RL for driving, one of 13 directions in Offline RL and imitation learning from data.
- Builds on 10 of its 59 references that are in the map.
- First posted on arXiv 28 Jul 2020.

## Placed in

- Offline RL and imitation learning from data / [Imitation and offline RL for driving](https://mlsanity.com/offlinerl/imitation-and-offline-rl-for-driving/)

## Builds on (most cited first, 10 of 10)

- [Conditional Generative Adversarial Nets](https://mlsanity.com/paper/1411.1784/) (2014)
- [Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks](https://mlsanity.com/paper/1511.06434/) (2015)
- [WaveNet: A Generative Model for Raw Audio](https://mlsanity.com/paper/1609.03499/) (2016)
- [Generative Adversarial Imitation Learning](https://mlsanity.com/paper/1606.03476/) (2016)
- [InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets](https://mlsanity.com/paper/1606.03657/) (2016)
- [MolGAN: An implicit generative model for small molecular graphs](https://mlsanity.com/paper/1805.11973/) (2018)
- [Adversarially Learned Inference](https://mlsanity.com/paper/1606.00704/) (2016)
- [PacGAN: The power of two samples in generative adversarial networks](https://mlsanity.com/paper/1712.04086/) (2017)
- [LSTM-TrajGAN: A Deep Learning Approach to Trajectory Privacy Protection](https://mlsanity.com/paper/2006.10521/) (2020)
- [Attention-based Recurrent Neural Network for Urban Vehicle Trajectory Prediction](https://mlsanity.com/paper/1812.07151/) (2018)

## Built on by (most cited first, 30 of 47)

- [Large Language Models as Urban Residents: An LLM Agent Framework for Personal Mobility Generation](https://mlsanity.com/paper/2402.14744/) (2024)
- [On the Opportunities and Challenges of Foundation Models for Geospatial Artificial Intelligence](https://mlsanity.com/paper/2304.06798/) (2023)
- [WcDT: World-centric Diffusion Transformer for Traffic Scene Generation](https://mlsanity.com/paper/2404.02082/) (2024)
- [Diff-RNTraj: A Structure-aware Diffusion Model for Road Network-constrained Trajectory Generation](https://mlsanity.com/paper/2402.07369/) (2024)
- [COLA: Cross-city Mobility Transformer for Human Trajectory Simulation](https://mlsanity.com/paper/2403.01801/) (2024)
- [Machine Learning for Autonomous Vehicle's Trajectory Prediction: A comprehensive survey, Challenges, and Future Research Directions](https://mlsanity.com/paper/2307.07527/) (2023)
- [Trajectory Prediction for Autonomous Driving: Progress, Limitations, and Future Directions](https://mlsanity.com/paper/2503.03262/) (2025)
- [Diffusion Imitation from Observation](https://mlsanity.com/paper/2410.05429/) (2024)
- [A deep inverse reinforcement learning approach to route choice modeling with context-dependent rewards](https://mlsanity.com/paper/2206.10598/) (2022)
- [PateGail: A Privacy-Preserving Mobility Trajectory Generator with Imitation Learning](https://mlsanity.com/paper/2407.16729/) (2024)
- [A novel method of predictive collision risk area estimation for proactive pedestrian accident prevention system in urban surveillance infrastructure](https://mlsanity.com/paper/2105.02572/) (2021)
- [OmniGeo: Towards a Multimodal Large Language Models for Geospatial Artificial Intelligence](https://mlsanity.com/paper/2503.16326/) (2025)
- [Seeking to Collide: Online Safety-Critical Scenario Generation for Autonomous Driving with Retrieval Augmented Large Language Models](https://mlsanity.com/paper/2505.00972/) (2025)
- [CBLab: Supporting the Training of Large-scale Traffic Control Policies with Scalable Traffic Simulation](https://mlsanity.com/paper/2210.00896/) (2022)
- [CATS: Conditional Adversarial Trajectory Synthesis for Privacy-Preserving Trajectory Data Publication Using Deep Learning Approaches](https://mlsanity.com/paper/2309.11587/) (2023)
- [A Gentle Introduction and Tutorial on Deep Generative Models in Transportation Research](https://mlsanity.com/paper/2410.07066/) (2024)
- [ELLMob: Event-Driven Human Mobility Generation with Self-Aligned LLM Framework](https://mlsanity.com/paper/2603.07946/) (2026)
- [Building Real-time Awareness of Out-of-distribution in Trajectory Prediction for Autonomous Vehicles](https://mlsanity.com/paper/2409.17277/) (2024)
- [Transformer-based Map Matching Model with Limited Ground-Truth Data using Transfer-Learning Approach](https://mlsanity.com/paper/2108.00439/) (2021)
- [Privacy-Aware Human Mobility Prediction via Adversarial Networks](https://mlsanity.com/paper/2201.07519/) (2022)
- [Privacy-Aware Adversarial Network in Human Mobility Prediction](https://mlsanity.com/paper/2208.05009/) (2022)
- [On-demand Quantization for Green Federated Generative Diffusion in Mobile Edge Networks](https://mlsanity.com/paper/2403.04430/) (2024)
- [Communication-Aware Reinforcement Learning for Cooperative Adaptive Cruise Control](https://mlsanity.com/paper/2407.08964/) (2024)
- [Towards Physics-informed Diffusion for Anomaly Detection in Trajectories](https://mlsanity.com/paper/2506.06999/) (2025)
- [PAIL: Performance based Adversarial Imitation Learning Engine for Carbon Neutral Optimization](https://mlsanity.com/paper/2407.08910/) (2024)
- [Deep Learning based Urban Vehicle Trajectory Analytics](https://mlsanity.com/paper/2111.07489/) (2021)
- [Deep Generative Models for Vehicle Speed Trajectories](https://mlsanity.com/paper/2112.08361/) (2021)
- [A Framework for Pedestrian Sub-classification and Arrival Time Prediction at Signalized Intersection Using Preprocessed Lidar Data](https://mlsanity.com/paper/2201.05877/) (2022)
- [Estimating Link Flows in Road Networks with Synthetic Trajectory Data Generation: Reinforcement Learning-based Approaches](https://mlsanity.com/paper/2206.12873/) (2022)
- [Synthetically Generating Human-like Data for Sequential Decision Making Tasks via Reward-Shaped Imitation Learning](https://mlsanity.com/paper/2304.07280/) (2023)

## Abstract (arXiv)

Recently, an abundant amount of urban vehicle trajectory data has been collected in road networks. Many studies have used machine learning algorithms to analyze patterns in vehicle trajectories to predict location sequences of individual travelers. Unlike the previous studies that used a discriminative modeling approach, this research suggests a generative modeling approach to learn the underlying distributions of urban vehicle trajectory data. A generative model for urban vehicle trajectories can better generalize from training data by learning the underlying distribution of the training data and, thus, produce synthetic vehicle trajectories similar to real vehicle trajectories with limited observations. Synthetic trajectories can provide solutions to data sparsity or data privacy issues in using location data. This research proposesTrajGAIL, a generative adversarial imitation learning framework for the urban vehicle trajectory generation. In TrajGAIL, learning location sequences in observed trajectories is formulated as an imitation learning problem in a partially observable Markov decision process. The model is trained by the generative adversarial framework, which uses the reward function from the adversarial discriminator. The model is tested with both simulation and real-world datasets, and the results show that the proposed model obtained significant performance gains compared to existing models in sequence modeling.
