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 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 b1db340b-978d-4f6f-a404-47330ba0483bCited by top-tier papers3
- 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
- Region-Point Joint Representation for Effective Trajectory Similarity LearningHao Long, Silin Zhou, Lisi Chen, Shuo ShangAAAI 2026
- 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
- A Graph-based Approach for Trajectory Similarity Computation in Spatial NetworksPeng Han, Jin Wang, Di Yao, Shuo Shang et al.KDD 2021 · 119 citations
- Fast Large-Scale Trajectory ClusteringSheng Wang, Zhifeng Bao, J. Shane Culpepper, Timos Sellis et al.VLDB 2020 · 83 citations
- 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
- Spatio-Temporal Trajectory Similarity Learning in Road NetworksZiquan Fang, Yuntao Du, Xinjun Zhu, Danlei Hu et al.KDD 2022 · 68 citations
- Fast Subtrajectory Similarity Search in Road Networks under Weighted Edit Distance ConstraintsSatoshi Koide, Chuan Xiao, Yoshiharu IshikawaVLDB 2020 · 32 citations
Related papers
- Trajectory Similarity Measurement: An Efficiency PerspectiveYanchuan Chang, Egemen Tanin, Gao Cong, Christian S. Jensen et al.VLDB 2024 · 28 citations
- Having It Both Ways: Single Trajectory Embedding for Similarity Computation with Pairwise LearningJianing Si, Haitao Yuan, Xiang Li, Nan Jiang et al.ICDE 2025
- TMN: Trajectory Matching Networks for Predicting SimilarityPeilun Yang, Hanchen Wang, Defu Lian, Ying Zhang et al.ICDE 2022 · 32 citations
- Contrastive Trajectory Similarity Learning with Dual-Feature AttentionYanchuan Chang, Jianzhong Qi, Yuxuan Liang, Egemen TaninICDE 2023 · 77 citations
- Learning to Hash for Trajectory Similarity Computation and SearchLiwei Deng, Yan Zhao, Jin Chen, Shuncheng Liu et al.ICDE 2024 · 18 citations
