Lune

ICDE2025Top-tier venue

Towards Robust Trajectory Embedding for Similarity Computation: When Triangle Inequality Violations in Distance Metrics Matter

Jianing Si, Haitao Yuan, Nan Jiang, Minxiao Chen, Xiao Ma, Shangguang Wang

Abstract

Trajectory similarity is a cornerstone of trajectory data management and analysis. Traditional similarity functions often suffer from high computational complexity and a reliance on specific distance metrics, prompting a shift towards deep representation learning in Euclidean space. However, existing Euclidean-based trajectory embeddings often face challenges due to the triangle inequality constraints that do not universally hold for trajectory data. To address this issue, this paper introduces a novel approach by incorporating non-Euclidean geometry, specifically hyperbolic space, into trajectory representation learning. We present the first-ever integration of hyperbolic space to resolve the inherent limitations of the triangle inequality in Euclidean embeddings. In particular, we achieve it by designing a Lorentz distance measure, which is proven to overcome triangle inequality constraints. Additionally, we design a model-agnostic framework LH-plugin to seamlessly integrate hyperbolic embeddings into existing representation learning pipelines. This includes a novel projection method optimized with the Cosh function to prevent the diminishment of distances, supported by a theoretical foundation. Furthermore, we propose a dynamic fusion distance that intelligently adapts to variations in triangle inequality constraints across different trajectory pairs, blending Lorentzian and Euclidean distances for more robust similarity calculations. Comprehensive experimental evaluations demonstrate that our approach effectively enhances the accuracy of trajectory similarity measures in state-of-the-art models across multiple real-world datasets. The LH-plugin not only addresses the triangle inequality issues but also significantly refines the precision of trajectory similarity computations, marking a substantial advancement in the field of trajectory representation learning.

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.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Contrastive Trajectory Similarity Learning with Dual-Feature Attention cites A Graph-based Approach for Trajectory Similarity Computation in Spatial Networks
  • Hyperbolic Vision Transformers: Combining Improvements in Metric Learning cites Hyperbolic Neural Networks++
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on20

  1. Hyperbolic Neural Networks++Ryohei Shimizu, Yusuke Mukuta, Tatsuya HaradaICLR 2021 · 791 citations
  2. A Graph-based Approach for Trajectory Similarity Computation in Spatial NetworksPeng Han, Jin Wang, Di Yao, Shuo Shang et al.KDD 2021 · 119 citations
  3. Effective Travel Time Estimation: When Historical Trajectories over Road Networks MatterHaitao Yuan, Guoliang Li, Zhifeng Bao, Ling FengSIGMOD 2020 · 113 citations
  4. Hyperbolic Vision Transformers: Combining Improvements in Metric LearningAleksandr Ermolov, Leyla Mirvakhabova, Valentin Khrulkov, Nicu Sebe et al.CVPR 2022 · 97 citations
  5. Contrastive Trajectory Similarity Learning with Dual-Feature AttentionYanchuan Chang, Jianzhong Qi, Yuxuan Liang, Egemen TaninICDE 2023 · 77 citations

Related papers

  1. Lorentzian Graph Convolutional NetworksYiding Zhang, Xiao Wang, Chuan Shi, Nian Liu et al.WWW 2021 · 119 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. Enhancing Hyperbolic Knowledge Graph Embeddings via Lorentz TransformationsXiran Fan, Minghua Xu, Huiyuan Chen, Yuzhong Chen et al.ACL Findings 2024 · 2 citations
  4. Learning Feature Interactions with Lorentzian Factorization MachineCanran Xu, Ming WuAAAI 2020 · 36 citations
  5. The Natural Geometry of Code: Hyperbolic Representation Learning for Program ReasoningWeilin ZhouICLR 2026
Dusk over the sea between two cliffs drawn in fine vertical lines