TransferTraj: A Vehicle Trajectory Learning Model for Region and Task Transferability
Tonglong Wei, Yan Lin, Zeyu Zhou, Haomin Wen, Jilin Hu, Shengnan Guo, Youfang Lin, Gao Cong, Huaiyu Wan
Abstract
Vehicle GPS trajectories provide valuable movement information that supports various downstream tasks and applications. A desirable trajectory learning model should be able to transfer across regions and tasks without retraining, avoiding the need to maintain multiple specialized models and subpar performance with limited training data. However, each region has its unique spatial features and contexts, which are reflected in vehicle movement patterns and are difficult to generalize. Additionally, transferring across different tasks faces technical challenges due to the varying input-output structures required for each task. Existing efforts towards transferability primarily involve learning embedding vectors for trajectories, which perform poorly in region transfer and require retraining of prediction modules for task transfer. To address these challenges, we propose TransferTraj, a vehicle GPS trajectory learning model that excels in both region and task transferability. For region transferability, we introduce RTTE as the main learnable module within TransferTraj. It integrates spatial, temporal, POI, and road network modalities of trajectories to effectively manage variations in spatial context distribution across regions. It also introduces a TRIE module for incorporating relative information of spatial features and a spatial context MoE module for handling movement patterns in diverse contexts. For task transferability, we propose a task-transferable inputoutput scheme that unifies the input-output structure of different tasks into the masking and recovery of modalities and trajectory points. This approach allows TransferTraj to be pre-trained once and transferred to different tasks without retraining. We conduct extensive experiments on three real-world vehicle trajectory datasets under various transfer settings, including task transfer, zero-shot region transfer, and few-shot region transfer. Experimental results demonstrate that TransferTraj significantly outperforms state-of-the-art baselines in different scenarios, validating its effectiveness in region and task transfer. Code is available at https://github.com/wtl52656/TransferTraj.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext ec7b3a54-ddb0-424a-912c-9be0f95c880dBuilds on15
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Learnable Fourier Features for Multi-dimensional Spatial Positional EncodingYang Li, Si Si, Gang Li, Cho-Jui Hsieh et al.NeurIPS 2021 · 171 citations
- Pre-training Context and Time Aware Location Embeddings from Spatial-Temporal Trajectories for User Next Location PredictionYan Lin, Huaiyu Wan, Shengnan Guo, Youfang LinAAAI 2021 · 143 citations
- DiffTraj: Generating GPS Trajectory with Diffusion Probabilistic ModelYuanshao Zhu, Yongchao Ye, Shiyao Zhang, Xiangyu Zhao et al.NeurIPS 2023 · 134 citations
- Effective Travel Time Estimation: When Historical Trajectories over Road Networks MatterHaitao Yuan, Guoliang Li, Zhifeng Bao, Ling FengSIGMOD 2020 · 113 citations
Related papers
- UniTraj: Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide TracesYuanshao Zhu, James Jianqiao Yu, Xiangyu Zhao, Xun Zhou et al.NeurIPS 2025 · 27 citations
- TrajMamba: An Efficient and Semantic-rich Vehicle Trajectory Pre-training ModelYichen Liu, Yan Lin, Shengnan Guo, Zeyu Zhou et al.NeurIPS 2025 · 5 citations
- GTR: A General, Multi-View, and Dynamic Framework for Trajectory Representation LearningXiangheng Wang, Ziquan Fang, Chenglong Huang, Danlei Hu et al.ICML 2025
- Grid and Road Expressions Are Complementary for Trajectory Representation LearningSilin Zhou, Shuo Shang, Lisi Chen, Peng Han et al.KDD 2025 · 7 citations
- Region-Point Joint Representation for Effective Trajectory Similarity LearningHao Long, Silin Zhou, Lisi Chen, Shuo ShangAAAI 2026
