GTR: A General, Multi-View, and Dynamic Framework for Trajectory Representation Learning

Abstract

Trajectory representation learning aims to transform raw trajectory data into compact and low-dimensional vectors that are suitable for downstream analysis. However, most existing methods adopt either a free-space view or a road-network view during the learning process, which limits their ability to capture the complex, multi-view spatiotemporal features inherent in trajectory data. Moreover, these approaches rely on task-specific model training, restricting their generalizability and effectiveness for diverse analysis tasks. To this end, we propose GTR, a general, multi-view, and dynamic Trajectory Representation framework built on a pre-train and fine-tune architecture. Specifically, GTR introduces a multi-view encoder that captures the intrinsic multi-view spatiotemporal features. Based on the pre-train and fine-tune architecture, we provide the spatio-temporal fusion pre-training with a spatio-temporal mixture of experts to dynamically combine spatial and temporal features, enabling seamless adaptation to diverse trajectory analysis tasks. Furthermore, we propose an online frozen-hot updating strategy to efficiently update the representation model, accommodating the dynamic nature of trajectory data. Extensive experiments on two real-world datasets demonstrate that GTR consistently outperforms 15 state-of-the-art methods across 6 mainstream trajectory analysis tasks. All source code and data are available at https://github.com/ZJU-DAILY/GTR.

Cite

Text

Wang et al. "GTR: A General, Multi-View, and Dynamic Framework for Trajectory Representation Learning." Proceedings of the 42nd International Conference on Machine Learning, 2025.

Markdown

[Wang et al. "GTR: A General, Multi-View, and Dynamic Framework for Trajectory Representation Learning." Proceedings of the 42nd International Conference on Machine Learning, 2025.](https://mlanthology.org/icml/2025/wang2025icml-gtr/)

BibTeX

@inproceedings{wang2025icml-gtr,
  title     = {{GTR: A General, Multi-View, and Dynamic Framework for Trajectory Representation Learning}},
  author    = {Wang, Xiangheng and Fang, Ziquan and Huang, Chenglong and Hu, Danlei and Chen, Lu and Gao, Yunjun},
  booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
  year      = {2025},
  pages     = {62825-62844},
  volume    = {267},
  url       = {https://mlanthology.org/icml/2025/wang2025icml-gtr/}
}