From GPS Points to Travel Patterns: Flexible and Semantic Trajectory Generation with LLMs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhou, Silin, Wang, Chenhao, Wen, Yuntao, Shang, Shuo, Chen, Lisi, Kalnis, Panos
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916061506437120
author Zhou, Silin
Wang, Chenhao
Wen, Yuntao
Shang, Shuo
Chen, Lisi
Kalnis, Panos
author_facet Zhou, Silin
Wang, Chenhao
Wen, Yuntao
Shang, Shuo
Chen, Lisi
Kalnis, Panos
contents Urban trajectories play a crucial role in modeling urban dynamics and supporting various smart city applications. However, privacy concerns restrict access to large-scale and high-quality trajectory datasets. Trajectory generation provides a promising alternative by synthesizing realistic data to mitigate privacy risks. However, existing methods fail to explicitly capture travel patterns and can only generate fixed-length trajectories under a single condition. To address these limitations, we propose \textbf{HTP}, which \textbf{H}ierarchically generates \textbf{T}ravel patterns first and then generates GPS \textbf{P}oints by using large language models (LLMs), rather than directly generating GPS points. We first design a trajectory-specific residual quantization variational autoencoder (RQ-VAE) that quantizes micro-level GPS trajectories into compact, macro-level travel pattern tokens in a coarse-to-fine manner. These tokens capture rich segment spatial irregularities, such as point density variations caused by traffic conditions. Then, we extend the LLM vocabulary with travel pattern tokens to align trajectory representations with the LLM input, and apply supervised fine-tuning (SFT) to align the LLM with the trajectory generation task, enabling generation of travel pattern sequences under various conditions. Extensive experiments on two real-world datasets show that HTP outperforms the strongest baseline by an average of 29.78\% in terms of generation quality. Our code is available at https://github.com/slzhou-xy/HTP.
format Preprint
id arxiv_https___arxiv_org_abs_2605_30014
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle From GPS Points to Travel Patterns: Flexible and Semantic Trajectory Generation with LLMs
Zhou, Silin
Wang, Chenhao
Wen, Yuntao
Shang, Shuo
Chen, Lisi
Kalnis, Panos
Artificial Intelligence
Urban trajectories play a crucial role in modeling urban dynamics and supporting various smart city applications. However, privacy concerns restrict access to large-scale and high-quality trajectory datasets. Trajectory generation provides a promising alternative by synthesizing realistic data to mitigate privacy risks. However, existing methods fail to explicitly capture travel patterns and can only generate fixed-length trajectories under a single condition. To address these limitations, we propose \textbf{HTP}, which \textbf{H}ierarchically generates \textbf{T}ravel patterns first and then generates GPS \textbf{P}oints by using large language models (LLMs), rather than directly generating GPS points. We first design a trajectory-specific residual quantization variational autoencoder (RQ-VAE) that quantizes micro-level GPS trajectories into compact, macro-level travel pattern tokens in a coarse-to-fine manner. These tokens capture rich segment spatial irregularities, such as point density variations caused by traffic conditions. Then, we extend the LLM vocabulary with travel pattern tokens to align trajectory representations with the LLM input, and apply supervised fine-tuning (SFT) to align the LLM with the trajectory generation task, enabling generation of travel pattern sequences under various conditions. Extensive experiments on two real-world datasets show that HTP outperforms the strongest baseline by an average of 29.78\% in terms of generation quality. Our code is available at https://github.com/slzhou-xy/HTP.
title From GPS Points to Travel Patterns: Flexible and Semantic Trajectory Generation with LLMs
topic Artificial Intelligence
url https://arxiv.org/abs/2605.30014