Lune

VLDB2025Top-tier venue

SIMformer: Single-Layer Vanilla Transformer Can Learn Free-Space Trajectory Similarity

Chuang Yang, Renhe Jiang, Xiaohang Xu, Chuan Xiao, Kaoru Sezaki

Abstract

Free-space trajectory similarity calculation, e.g., DTW, Hausdorff, and Fréchet, often incur quadratic time complexity, thus learning-based methods have been proposed to accelerate the computation. The core idea is to train an encoder to transform trajectories into representation vectors and then compute vector similarity to approximate the ground truth. However, existing methods face dual challenges of effectiveness and efficiency: 1) they all utilize Euclidean distance to compute representation similarity, which leads to the severe curse of dimensionality issue - reducing the distinguishability among representations and significantly affecting the accuracy of subsequent similarity search tasks; 2) most of them are trained in triplets manner and often necessitate additional information which downgrades the efficiency; 3) previous studies, while emphasizing the scalability in terms of efficiency, overlooked the deterioration of effectiveness when the dataset size grows. To cope with these issues, we propose a simple, yet accurate, fast, scalable model that only uses a single-layer vanilla transformer encoder as the feature extractor and employs tailored representation similarity functions to approximate various ground truth similarity measures. Extensive experiments demonstrate our model significantly mitigates the curse of dimensionality issue and outperforms the state-of-the-arts in effectiveness, efficiency, and scalability.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Spatio-Temporal Trajectory Similarity Learning in Road Networks cites Fast Subtrajectory Similarity Search in Road Networks under Weighted Edit Distance Constraints
  • Spatio-Temporal Trajectory Similarity Learning in Road Networks cites Fast Large-Scale Trajectory Clustering
  • Spatio-Temporal Trajectory Similarity Learning in Road Networks cites A Graph-based Approach for Trajectory Similarity Computation in Spatial Networks
  • Region-Point Joint Representation for Effective Trajectory Similarity Learning cites TrajGAT: A Graph-based Long-term Dependency Modeling Approach for Trajectory Similarity Computation
  • Region-Point Joint Representation for Effective Trajectory Similarity Learning cites A Graph-based Approach for Trajectory Similarity Computation in Spatial Networks
  • TrajAgg: Dual-Scale Feature Aggregation with Hybrid Training for Trajectory Similarity Computation in Free Space cites Spatio-Temporal Trajectory Similarity Learning in Road Networks
  • TrajAgg: Dual-Scale Feature Aggregation with Hybrid Training for Trajectory Similarity Computation in Free Space cites TrajGAT: A Graph-based Long-term Dependency Modeling Approach for Trajectory Similarity Computation
  • TrajAgg: Dual-Scale Feature Aggregation with Hybrid Training for Trajectory Similarity Computation in Free Space cites Fast Large-Scale Trajectory Clustering
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. From GPS Points to Travel Patterns: Flexible and Semantic Trajectory Generation with LLMsSilin Zhou, Chenhao Wang, Yuntao Wen, Shuo Shang et al.KDD 2026 · 2 citations
  2. Region-Point Joint Representation for Effective Trajectory Similarity LearningHao Long, Silin Zhou, Lisi Chen, Shuo ShangAAAI 2026
  3. TrajAgg: Dual-Scale Feature Aggregation with Hybrid Training for Trajectory Similarity Computation in Free SpaceXiao Zhang, Xingyu Zhao, Yuan Cao, Bin Wang et al.AAAI 2026

Builds on7

  1. A Graph-based Approach for Trajectory Similarity Computation in Spatial NetworksPeng Han, Jin Wang, Di Yao, Shuo Shang et al.KDD 2021 · 119 citations
  2. Fast Large-Scale Trajectory ClusteringSheng Wang, Zhifeng Bao, J. Shane Culpepper, Timos Sellis et al.VLDB 2020 · 83 citations
  3. TrajGAT: A Graph-based Long-term Dependency Modeling Approach for Trajectory Similarity ComputationDi Yao, Haonan Hu, Lun Du, Gao Cong et al.KDD 2022 · 74 citations
  4. Spatio-Temporal Trajectory Similarity Learning in Road NetworksZiquan Fang, Yuntao Du, Xinjun Zhu, Danlei Hu et al.KDD 2022 · 68 citations
  5. Fast Subtrajectory Similarity Search in Road Networks under Weighted Edit Distance ConstraintsSatoshi Koide, Chuan Xiao, Yoshiharu IshikawaVLDB 2020 · 32 citations

Related papers

  1. Trajectory Similarity Measurement: An Efficiency PerspectiveYanchuan Chang, Egemen Tanin, Gao Cong, Christian S. Jensen et al.VLDB 2024 · 28 citations
  2. Having It Both Ways: Single Trajectory Embedding for Similarity Computation with Pairwise LearningJianing Si, Haitao Yuan, Xiang Li, Nan Jiang et al.ICDE 2025
  3. TMN: Trajectory Matching Networks for Predicting SimilarityPeilun Yang, Hanchen Wang, Defu Lian, Ying Zhang et al.ICDE 2022 · 32 citations
  4. Contrastive Trajectory Similarity Learning with Dual-Feature AttentionYanchuan Chang, Jianzhong Qi, Yuxuan Liang, Egemen TaninICDE 2023 · 77 citations
  5. Learning to Hash for Trajectory Similarity Computation and SearchLiwei Deng, Yan Zhao, Jin Chen, Shuncheng Liu et al.ICDE 2024 · 18 citations
Dusk over the sea between two cliffs drawn in fine vertical lines