NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Context-Enhanced Multi-View Trajectory Representation Learning: Bridging the Gap through Self-Supervised Models

Tangwen Qian, Junhe Li, Yile Chen, Gao Cong, Tao Sun, Fei Wang, Yongjun XuarXiv 2024 · DOI

Abstract

Trajectory representation learning is fundamental to modern urban computing, yet existing methods often suffer from a "single-view" limitation, focusing exclusively on GPS coordinates, road networks, or semantic grids. We present MVTraj, a self-supervised framework that integrates these three distinct spatial perspectives. By utilizing GPS data as a central alignment "bridge" and employing a hierarchical cross-modal interaction module, MVTraj captures complex dependencies across modalities. Experimental results on large-scale datasets from Xi’an and Chengdu demonstrate that MVTraj significantly outperforms state-of-the-art baselines in downstream tasks, including a 60.04% reduction in error for travel time estimation.

Introduction

Trajectory data, the digital footprints of moving objects, provides critical insights for navigation, logistics, and urban planning. However, traditional representation models typically view trajectories through a single lens. Raw GPS data offers high resolution but lacks semantic context; road network sequences provide structural constraints but ignore off-road movement; and grid-based POI data offers functional context but lacks spatial precision.

The challenge in trajectory representation learning lies in multi-view alignment—synchronizing disparate data formats—and knowledge fusion—combining these insights into a unified, high-dimensional vector. MVTraj addresses these by treating a single trip as three distinct modalities and processing them through a unified self-supervised pipeline.

The MVTraj Framework

MVTraj employs a sophisticated architecture designed to encode and fuse multi-modal trajectory information. The framework consists of three specialized encoders:

  1. Route Encoder: Utilizes Graph Attention Networks (GAT) to capture road network topology and Transformers for sequence dependencies.
  2. GPS Encoder: Employs a hierarchical Bi-GRU to handle fine-grained kinematic attributes like speed and heading.
  3. Grid Encoder: Uses Transformers to integrate semantic Point-of-Interest (POI) information (e.g., land use density) into spatial cells.
The MVTraj architecture featuring specialized encoders, a GPS-based alignment bridge, and hierarchical interaction modules.

To synchronize these views, MVTraj uses GPS data as a "universal translator." Since both route and grid views are derived from GPS coordinates, the model employs contrastive learning to ensure the representation of a specific GPS trip is mathematically aligned with its corresponding road and grid sequences. Finally, a hierarchical multi-modal interaction module uses 12 dedicated attention streams to capture pairwise interactions between views, followed by a shared Transformer to model global context.

Experimental Evaluation

The model was evaluated using two real-world taxi trajectory datasets from Chengdu and Xi’an, each containing 100,000 trajectories enriched with OpenStreetMap and POI data. MVTraj was pre-trained using Masked Language Modeling (MLM), where parts of the trajectory are hidden to force the model to learn robust underlying patterns.

Performance comparison of MVTraj against state-of-the-art baselines across multiple downstream tasks in Xi'an and Chengdu.

As shown in the results table, MVTraj consistently outperforms all baselines, including JGRM and START. Notable achievements include:

  • Travel Time Estimation: In Xi’an, MVTraj reduced the Mean Absolute Error (MAE) by 60.04% compared to the previous best model.
  • Destination Grid Prediction: The model achieved high accuracy (Acc@1 of 0.79 in Chengdu), a task where single-view models often struggle.
  • Versatility: The representations proved effective for both segment-level tasks (road speed inference) and trajectory-level tasks (destination prediction).

Discussion and Conclusion

The success of MVTraj highlights the importance of multi-view fusion and self-supervised pre-training. Ablation studies indicate that the MLM task is the most critical component for performance, suggesting that learning the "grammar" of movement is essential for generalizable representations.

Despite its performance, MVTraj introduces higher computational overhead, with a model size of 207MB and longer training times compared to simpler models like JGRM. Future work will focus on optimizing the architecture for lower latency and exploring its performance in data-sparse regions where high-quality POI or road network data may be limited.

Summary updated

BibTeX
@misc{qian2024context,
  author = {Tangwen Qian and Junhe Li and Yile Chen and Gao Cong and Tao Sun and Fei Wang and Yongjun Xu},
  title = {{Context-Enhanced Multi-View Trajectory Representation Learning: Bridging the Gap through Self-Supervised Models}},
  year = {2024},
  eprint = {2410.13196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.13196},
}
Figure