TrajGAT: A Graph-based Long-term Dependency Modeling Approach for Trajectory Similarity Computation
Di Yao, Haonan Hu, Lun Du, Gao Cong, Shi Han, Jingping Bi
Abstract
Computing trajectory similarities is a critical and fundamental task for various spatial-temporal applications, such as clustering, prediction, and anomaly detection. Traditional similarity metrics, i.e. DTW and Hausdorff, suffer from quadratic computation complexity, leading to their inability on large-scale data. To solve this problem, many trajectory representation learning techniques are proposed to approximate the metric space while reducing the complexity of similarity computation. Nevertheless, these works are designed based on RNN backend, resulting in a serious performance decline on long trajectories. In this paper, we propose a novel graph-based method, namely TrajGAT, to explicitly model the hierarchical spatial structure and improve the performance of long trajectory similarity computation. TrajGAT consists of two main modules, i.e. , graph construction and trajectory encoding. For graph construction, TrajGAT first employs PR quadtree to build the hierarchical structure of the whole spatial area, and then constructs a graph for each trajectory based on the original records and the leaf nodes of the quadtree. For trajectory encoding, we replace the self-attention in Transformer with graph attention and design an encoder to represent the generated graph trajectory. With these two modules, TrajGAT can capture the long-term dependencies of trajectories while reducing the GPU memory usage of Transformer. Our experiments on two real-life datasets show that TrajGAT not only improves the performance on long trajectories but also outperforms the state-of-the-art methods on mixture trajectories significantly.
Ask Lune
Know where this paper stands in minutes, not an afternoon.
Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.
25 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
its abstract · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Trajectory Similarity Measurement: An Efficiency Perspective cites Contrastive Trajectory Similarity Learning with Dual-Feature Attention
- RED: Effective Trajectory Representation Learning with Comprehensive Information cites Contrastive Trajectory Similarity Learning with Dual-Feature Attention
Cited by top-tier papers25
- Contrastive Trajectory Similarity Learning with Dual-Feature AttentionYanchuan Chang, Jianzhong Qi, Yuxuan Liang, Egemen TaninICDE 2023 · 77 citations
- Trajectory Similarity Measurement: An Efficiency PerspectiveYanchuan Chang, Egemen Tanin, Gao Cong, Christian S. Jensen et al.VLDB 2024 · 28 citations
- Learning to Hash for Trajectory Similarity Computation and SearchLiwei Deng, Yan Zhao, Jin Chen, Shuncheng Liu et al.ICDE 2024 · 18 citations
- RED: Effective Trajectory Representation Learning with Comprehensive InformationSilin Zhou, Shuo Shang, Lisi Chen, Christian S. Jensen et al.VLDB 2025 · 17 citations
- CausalTAD: Causal Implicit Generative Model for Debiased Online Trajectory Anomaly DetectionWenbin Li, Di Yao, Chang Gong, Xiaokai Chu et al.ICDE 2024 · 9 citations
Related papers
- Structure and Position-Aware Graph Modeling for Trajectory Similarity Computation Over Road NetworksPeilun Yang, Hanchen Wang, Zhangyi Xu, Zhengping Qian et al.ICDE 2025 · 2 citations
- SIMformer: Single-Layer Vanilla Transformer Can Learn Free-Space Trajectory SimilarityChuang Yang, Renhe Jiang, Xiaohang Xu, Chuan Xiao et al.VLDB 2025 · 8 citations
- A Graph-based Approach for Trajectory Similarity Computation in Spatial NetworksPeng Han, Jin Wang, Di Yao, Shuo Shang et al.KDD 2021 · 119 citations
- Self-supervised Trajectory Representation Learning with Temporal Regularities and Travel SemanticsJiawei Jiang, Dayan Pan, Houxing Ren, Xiaohan Jiang et al.ICDE 2023 · 101 citations
- TMN: Trajectory Matching Networks for Predicting SimilarityPeilun Yang, Hanchen Wang, Defu Lian, Ying Zhang et al.ICDE 2022 · 32 citations
